/* Styles of the legal and contact pages. Tokens, header and footer match
   index.html, so the pages read as one site. */

:root {
  --paper: #ffffff; --ink: #1c1c1e; --mute: #6e6e73; --rule: #e5e5ea; --wash: #f5f5f7; --accent: #2b5ea7; --accent-ink: #fff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem; --gutter: clamp(1rem, 4vw, 2rem); --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161618; --ink: #ececef; --mute: #9b9ba1; --rule: #2c2c30; --wash: #1e1e21; --accent: #8fb3ec; --accent-ink: #161618;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161618; --ink: #ececef; --mute: #9b9ba1; --rule: #2c2c30; --wash: #1e1e21; --accent: #8fb3ec; --accent-ink: #161618;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; }
.brand { font-weight: 700; letter-spacing: -0.03em; font-size: 1.1875rem; text-decoration: none; }
.top nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.9375rem; }
.top nav a { color: var(--mute); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 2.125rem; padding: 0 1.1rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; text-decoration: none; background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

.doc { max-width: 42rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.doc .updated { margin-top: 0.75rem; color: var(--mute); font-size: 0.9375rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.25rem; letter-spacing: -0.01em; font-weight: 650; }
.doc p, .doc ul { margin-top: 0.75rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.35rem; }
.doc .mail { font-size: 1.25rem; font-weight: 600; color: var(--accent); text-decoration: none; }

footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--mute); font-size: 0.875rem; }
footer .wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { color: var(--ink); }
