:root {
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #1B1F23;
  --muted: #5B626A;
  --line: #E4E1DA;
  --accent: #B93A1B;
  --accent-soft: #F6E7E1;
  --max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121416;
    --surface: #1A1D20;
    --ink: #ECEAE4;
    --muted: #A2A8AE;
    --line: #2A2E33;
    --accent: #F0764F;
    --accent-soft: #2A1C16;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); text-decoration: underline; }

.hero { padding-block: 4.5rem 3.5rem; }
.status {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.3rem 0.8rem; margin-bottom: 1.5rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1.25rem; max-width: 20ch; text-wrap: balance; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin: 0; }

section { padding: 3.25rem 0; border-top: 1px solid var(--line); }
h2 { font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.5rem; }
.sub { color: var(--muted); max-width: 44rem; margin: 0 0 2rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); font-size: 0.85rem; margin-bottom: 0.6rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.rules { display: grid; gap: 1.75rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.rules div { border-left: 3px solid var(--accent); padding-left: 1rem; }
.rules p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.plain { max-width: 46rem; }
.plain p { margin: 0 0 1rem; }
.plain p:last-child { margin-bottom: 0; }

footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
footer.site p { margin: 0 0 0.6rem; max-width: 52rem; }

/* Policy page */
.doc { padding: 3rem 0 4rem; }
.doc .wrap { max-width: 48rem; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); max-width: none; margin-bottom: 0.5rem; }
.doc .updated { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
