/* Shared styling for the legal pages (privacy, cookies, terms).
   Palette and type are lifted verbatim from index.html :root so the documents
   read as part of the app rather than as a bolted-on legal annexe. A separate
   file rather than three inline copies: these pages are static, cached by the
   [assets] handler, and never rendered during a push wake — none of the
   "one file, no build step" reasons that keep index.html monolithic apply. */
:root {
  --bg: #0e0f12; --panel: #16181d; --ink: #e8e6e1; --dim: #a29e94;
  --line: #262930; --accent: #d4a24e; --urgent: #c0564e;
  --focus: #d4a24e;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--bg);
  padding: 10px 14px; z-index: 10; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }
header {
  border-bottom: 1px solid var(--line); padding: 14px 16px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
header h1 { font-size: 15px; letter-spacing: .16em; margin: 0; font-weight: 700; }
header h1 a { color: var(--ink); text-decoration: none; }
header .back { font-size: 13px; color: var(--dim); }
main { max-width: 720px; margin: 0 auto; padding: 8px 16px 64px; }
h2 { font-size: 26px; line-height: 1.25; margin: 24px 0 4px; }
.sub { color: var(--dim); font-size: 14px; margin: 0 0 8px; }
.stamp { color: var(--dim); font-size: 13px; margin: 0 0 24px; }
h3 {
  font-size: 19px; margin: 34px 0 8px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
h4 { font-size: 16px; margin: 22px 0 6px; color: var(--ink); }
p, li { font-size: 16px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: #fff; }
/* The plain-language summary that opens each document. Not a substitute for
   the text below it, and it says so. */
.tldr {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 8px;
}
.tldr h3 {
  border: none; padding: 0; margin: 0 0 6px; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
}
.tldr ul { margin: 0; }
/* A claim that depends on a specific behaviour of the code, with the file that
   enforces it named. Used sparingly — only where "trust us" would otherwise be
   doing the work. */
.note {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin: 14px 0; color: var(--dim); font-size: 14px;
}
.note strong { color: var(--ink); }
.todo {
  background: #241d12; border: 1px solid var(--accent); border-radius: 10px;
  padding: 12px 16px; margin: 14px 0; font-size: 14px;
}
/* Wide tables scroll inside their own box; the page body never scrolls
   sideways on a phone. */
.tw { overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
td code, p code, li code {
  background: #0c0d10; border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 16px;
  text-align: center; color: var(--dim); font-size: 13px;
}
footer a { margin: 0 8px; }
/* #519 — cookies.html tells the reader the AI statement "stays in the footer of
   every page, permanently". It was in the footer of 1 of 4, and the page making
   the claim was one of the three without it. The paragraph is now in all four
   and v3/test/reader-ai-disclosure.test.ts fails the build if any page drops it,
   so the promise is enforced rather than declared. Constrained and left-aligned
   because it is a sentence to read, not a row of links to scan. */
footer .ai-disclosure {
  max-width: 62ch; margin: 0 auto 14px; text-align: left; line-height: 1.55;
}
@media (max-width: 480px) {
  h2 { font-size: 23px; }
  main { padding: 8px 14px 56px; }
}
