/* Word Links Journey: support and legal pages. Loaded after styles.css (the landing page's), so the top bar, the
   valley sky, the paper card and the footer are the game's own; only the document text swaps Manrope for a reading
   serif. The same split as the Toy Club and Word Arrow Escape pages. */

:root {
  --legal-font: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

.topbar nav a[aria-current="page"] { color: var(--pine); }
.footer a[aria-current="page"] { text-decoration: underline; }

/* ---------------------------------------------------------------- title band: the hero's sky */
.doc-head {
  padding: clamp(36px, 6vw, 64px) clamp(16px, 5vw, 56px);
  text-align: center;
  font-family: var(--legal-font);
}
.doc-head.sky {
  background:
    radial-gradient(circle at 86% 0%, rgba(247, 205, 112, .3), rgba(247, 205, 112, 0) 30%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--mist) 100%);
}
.doc-head h1 { margin: 0; font: 800 clamp(30px, 5vw, 44px)/1.15 var(--display); letter-spacing: -.01em; color: var(--navy); }
.doc-head .kicker { margin-bottom: 12px; letter-spacing: .22em; }
.doc-head .kicker::after { margin-left: -.22em; }
@media (max-width: 420px) { .doc-head .kicker::before, .doc-head .kicker::after { width: 16px; } }
.doc-head .meta { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------------------------------------------------------------- the document: a paper card in the fog */
.doc-board { padding-top: clamp(12px, 4vw, 40px); padding-bottom: clamp(40px, 7vw, 80px); }
.doc {
  max-width: 46rem; margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) clamp(20px, 5vw, 56px);
  font: 400 18px/1.65 var(--legal-font);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
.doc > :first-child { margin-top: 0; }
.doc > :last-child { margin-bottom: 0; }
.doc p, .doc ul, .doc ol, .doc address { margin: 0 0 .9em; }
.doc p { text-wrap: pretty; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc li::marker { color: var(--teal); }
.doc strong { font-weight: 700; color: var(--ink); }
.doc address { font-style: normal; }

.doc h2 {
  margin: 2em 0 .55em; padding-top: 1.1em;
  border-top: 2px solid var(--mist);
  font-size: 1.3em; font-weight: 700; line-height: 1.25; color: var(--navy);
}
.doc h3 { margin: 1.6em 0 .4em; font-size: 1.05em; font-weight: 700; line-height: 1.35; color: var(--navy); }

.doc a { color: var(--pine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc a strong { color: inherit; }
.doc a:hover { color: var(--teal); }
.doc a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 3px; }

/* Wide tables scroll inside their frame on phones rather than squeezing the columns. */
.doc .table-wrap { margin: 0 0 1.2em; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.doc table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .85em; line-height: 1.5; }
.doc th, .doc td { padding: .7em .9em; text-align: left; vertical-align: top; }
.doc th { background: var(--navy); color: #fff; font-weight: 700; }
.doc tbody tr + tr td { border-top: 1px solid var(--line); }
.doc tbody tr:nth-child(even) { background: rgba(238, 240, 247, .6); }
