/* Shared styles for terms.html, privacy.html, disclaimer.html — same tokens as the main dossier page. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #15202b;
  --muted: #586777;
  --line: #d8dfe7;
  --accent: #2346c4;
  --accent-soft: #e6ebfb;
  --code-bg: #eef1f5;
  --font-display: "Fira Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a;
    --surface: #161d26;
    --ink: #e2e8ef;
    --muted: #94a2b2;
    --line: #283342;
    --accent: #8ea8ff;
    --accent-soft: #1d2747;
    --code-bg: #1c2430;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a;
  --surface: #161d26;
  --ink: #e2e8ef;
  --muted: #94a2b2;
  --line: #283342;
  --accent: #8ea8ff;
  --accent-soft: #1d2747;
  --code-bg: #1c2430;
  color-scheme: dark;
}

* { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 64px;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 760px; margin: 0 auto; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.back { font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.brand img { width: 28px; height: 28px; display: block; }

main { padding-block: 40px 8px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.05; margin: 0 0 10px; text-wrap: balance; }
.updated { font-size: 0.875rem; color: var(--muted); margin: 0 0 28px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin: 34px 0 10px; text-wrap: balance; }
p, ul { max-width: 68ch; margin: 0 0 14px; }
ul { padding-left: 1.25em; }
li { margin-bottom: 6px; }
li::marker { color: var(--muted); }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 0 0 24px; max-width: 72ch; }
.note p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.875em; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: 0.8125rem; color: var(--muted); display: grid; gap: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); }
footer a:hover, footer a[aria-current="page"] { color: var(--accent); }
footer p { margin: 0; max-width: none; }
