/* Styling for policy.html only.
   These are plain static pages served straight from public/ — they are not part of the app
   bundle and cannot import the app's tokens. They also have no theme toggle, which is why
   `prefers-color-scheme` is the right mechanism HERE and is banned inside the app: there,
   `data-theme` is the single source of truth and a media query could disagree with it.
   Values are copied from src/styles/tokens.css; keep them in step by eye if the palette
   moves, or accept that these pages drift a shade. */

:root {
  --shell: #f2f4f6; --panel: #ffffff; --line: #dde2e8;
  --ink: #14181d; --ink-2: #3c454f; --muted: #6b7480;
  --accent: #1b5e9e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --shell: #16191d; --panel: #21252a; --line: #363c44;
    --ink: #e8ecf0; --ink-2: #c3cbd3; --muted: #8e99a4;
    --accent: #4a9eea;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; padding: 56px 24px 80px;
  background: var(--shell); color: var(--ink);
  font: 15px/1.6 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.wrap { max-width: 68ch; margin: 0 auto; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

.back { display: inline-block; margin-bottom: 28px; font-size: 13.5px; }
h1 { font-size: 28px; letter-spacing: -.025em; margin: 0 0 6px; }
.updated { color: var(--muted); font-size: 13px; margin: 0 0 30px; }

.toc { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; font-size: 13.5px; }

section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; margin-bottom: 18px; }
/* Anchor links land below the top edge rather than flush against it. */
section { scroll-margin-top: 20px; }
h2 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 14.5px; margin: 22px 0 6px; }
p, li { color: var(--ink-2); text-wrap: pretty; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 5px; }
code { font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; font-size: .9em; }
strong { color: var(--ink); }

.foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 34px; }

/* Code and tables, for the formula guide. */
pre {
  background: var(--shell); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.5;
}
pre code { font-size: inherit; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
td:first-child { white-space: nowrap; padding-right: 18px; }
