:root {
  color-scheme: light;
  --page: #f6fafe;
  --surface: #ffffff;
  --text: #142638;
  --muted: #405866;
  --line: #b9cad7;
  --brand: #005ba1;
  --focus: #ffbf47;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #051424;
    --surface: #122131;
    --text: #edf6ff;
    --muted: #d1dbe5;
    --line: #60798c;
    --brand: #5eddf0;
    --focus: #ffd166;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}
main {
  width: min(860px, calc(100% - 2rem));
  margin: 2rem auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
h1 { margin: 0 0 0.25rem; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; }
h2 { margin: 1.8rem 0 0.45rem; font-size: 1.15rem; }
p, li { color: var(--muted); }
a { color: var(--brand); font-weight: 700; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.updated { margin-top: 0; font-size: 0.88rem; }
.notice { padding: 0.85rem 1rem; border-left: 4px solid var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

@media (max-width: 420px) {
  main { width: 100%; margin: 0; border: 0; border-radius: 0; min-height: 100vh; }
}
