/* Word Arrow Escape: support and legal pages. Loaded after styles.css (the landing page's), so the top bar, felt board,
   cream card and footer are the game's own; only the document text swaps the playful Fredoka for a reading serif. */

:root {
  --legal-font: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --link: #1d5fa8; /* --blue is too light for body-text links on cream */
}

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

/* ---------------------------------------------------------------- title band: the hero's sky rays */
.doc-head {
  padding: clamp(36px, 6vw, 64px) clamp(16px, 5vw, 56px);
  text-align: center;
  background: var(--sky) url("assets/art/rays.webp") center / cover no-repeat;
  border-bottom: 4px solid var(--navy);
  font-family: var(--legal-font);
}
.doc-head h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); font-weight: 700; line-height: 1.15; color: var(--navy-deep); }
.doc-head .kicker { display: block; margin-bottom: 6px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.doc-head .meta { margin: 12px 0 0; font-size: 15px; color: var(--navy-deep); }

/* ---------------------------------------------------------------- the document: a cream card on the felt */
.doc-board { padding-top: clamp(28px, 6vw, 64px); 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(--felt-dark); }
.doc strong { font-weight: 700; color: var(--navy-deep); }
.doc address { font-style: normal; }

.doc h2 {
  margin: 2em 0 .55em; padding-top: 1.1em;
  border-top: 2px solid var(--lip);
  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(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc a strong { color: inherit; }
.doc a:hover { color: var(--pink); }
.doc a:focus-visible { outline: 3px solid var(--yellow); 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: 2px solid var(--navy); 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(--lip); }
.doc tbody tr:nth-child(even) { background: rgba(214, 196, 178, .18); }
