:root {
  color-scheme: light dark;
  --bg: #fafbf9; --panel: #ffffff; --ink: #242c27; --muted: #626e66;
  --line: #dce2dd; --accent: #326445; --soft: #eef2ee; --warn: #f4f0e6;
  --code: #f0f3f0; --code-ink: #293a2e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151b17; --panel: #1b231e; --ink: #e5ebe6; --muted: #a6b3aa;
    --line: #36433b; --accent: #a4c7ac; --soft: #26342b; --warn: #332f24;
    --code: #101713; --code-ink: #dce7df;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; top: -80px; left: 20px; background: var(--panel); padding: 8px 16px; z-index: 5; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1160px; margin: auto; padding: 18px 28px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 650; text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-nav a { font-size: 13px; text-decoration: none; color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.document { max-width: 816px; margin: 0 auto; padding: 44px 28px 24px; }
h1 { font-size: 30px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; margin: 0 0 18px; }
h2 { font-size: 21px; line-height: 1.4; font-weight: 650; margin: 32px 0 14px; }
h3 { font-size: 16px; line-height: 1.5; font-weight: 650; margin: 24px 0 10px; }
p { margin: 0 0 16px; }
li + li { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; margin: 24px 0; }
.card h2 { margin-top: 0; }
code { font: .86em/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--soft); border-radius: 3px; padding: 2px 4px; }
pre { background: var(--code); color: var(--code-ink); border: 1px solid var(--line); border-radius: 6px; margin: 18px 0; padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 500px; overflow: auto; }
pre code { font-size: 12px; background: none; padding: 0; color: inherit; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; text-align: left; width: 100%; font-size: 13px; }
th, td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 12px; font-weight: 650; color: var(--muted); }
th:first-child, td:first-child { padding-left: 0; }
caption { text-align: left; font-weight: 650; margin-bottom: 10px; }
.button, .secondary { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 600; text-decoration: none; }
.secondary { background: var(--panel); border-color: var(--line); color: var(--ink); }
.quiet { font-size: 12px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--accent); padding: 5px 8px; }
.quiet.selected { border-color: var(--line); background: var(--soft); }
.callout { font-size: 13px; border-left: 2px solid var(--line); padding: 12px 16px; margin: 20px 0; background: var(--soft); }
.callout p { margin: 4px 0 0; }
.site-footer { max-width: 1104px; margin: 24px auto 0; border-top: 1px solid var(--line); padding: 22px 0 36px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer a { text-decoration: none; }
@media (max-width: 720px) {
  .header-inner { padding: 16px 20px; }
  .site-nav { gap: 8px 18px; }
  .document { padding: 32px 20px 12px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .site-footer { margin: 24px 20px 0; }
  .card { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.legal-form { display: grid; gap: 1rem; max-width: 38rem; margin-block: 1.5rem; }
.legal-form label { display: grid; gap: .35rem; }
.legal-form input, .legal-form textarea, .legal-form button {
  font: inherit; color: inherit; background: transparent;
  border: 1px solid currentColor; border-radius: .4rem; padding: .6rem;
}
.legal-form .check { display: flex; align-items: baseline; }
.legal-form .check input { flex: 0 0 auto; }
.legal-form button { justify-self: start; font-weight: 600; cursor: pointer; }
.legal-form [role="status"] { margin: 0; }
