/*
 * The legal pages.
 *
 * Same palette and type as the site, and nothing else from it: no canvas, no
 * aurora, no scroll machinery. These are documents someone reads once, usually
 * because something has gone wrong or because they are checking whether to
 * trust the rest — and a page that animates while they do that reads as though
 * it is trying to distract them.
 *
 * Wide measure is the enemy here. Everything is held to a reading column.
 */

:root {
  --canvas: #0E1017;
  --canvas-2: #141722;
  --glass: rgba(255, 255, 255, .075);
  --glass-line: rgba(255, 255, 255, .17);
  --gold: #F7CC74;
  --gold-dim: rgba(247, 204, 116, .16);
  --text: #F5F4F1;
  --text-2: #B0B1BE;
  --text-3: #7F8192;
  --line: rgba(255, 255, 255, .11);
  --gut: clamp(20px, 4.4vw, 64px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 300;
  background: var(--gold); color: #100c04; padding: 12px 20px;
  font-family: "IBM Plex Mono", monospace; font-size: 13px;
}
.skip:focus { inset-inline-start: 0; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gut); }

/* ── the bar ─────────────────────────────────────────────────────────── */

header.bar {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 16, 23, .86);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 40;
}
.bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px; max-width: 1180px;
}
.brand {
  display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text);
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  letter-spacing: .24em; text-transform: uppercase;
}
.brand img { display: block; width: 34px; height: auto; }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.bar nav a {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.bar nav a:hover, .bar nav a:focus-visible { color: var(--text); }
.bar nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ── the document ────────────────────────────────────────────────────── */

main { padding: clamp(40px, 7vw, 88px) 0 96px; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}

h1 {
  font-family: "Bricolage Grotesque", "Archivo", ui-sans-serif, sans-serif;
  font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(30px, 5.2vw, 46px); margin: 0 0 18px;
}

.updated {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--text-3);
  margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}

h2 {
  font-family: "Archivo", ui-sans-serif, sans-serif; font-weight: 700;
  font-size: clamp(19px, 2.6vw, 23px); letter-spacing: -.01em; line-height: 1.3;
  margin: 46px 0 14px; scroll-margin-top: 88px;
}
h3 {
  font-family: "Archivo", ui-sans-serif, sans-serif; font-weight: 600;
  font-size: 16.5px; margin: 30px 0 10px; color: var(--text);
}

p { margin: 0 0 18px; color: var(--text-2); }
p strong, li strong { color: var(--text); font-weight: 700; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }

ul, ol { margin: 0 0 20px; padding-inline-start: 22px; color: var(--text-2); }
li { margin-bottom: 9px; }
li::marker { color: var(--text-3); }

code {
  font-family: "IBM Plex Mono", monospace; font-size: .88em;
  background: var(--glass); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px; color: var(--gold);
  overflow-wrap: anywhere;
}

/* ── the box that carries the point ──────────────────────────────────── */

.note {
  border: 1px solid var(--glass-line); background: var(--glass);
  border-radius: 14px; padding: 20px 22px; margin: 26px 0;
}
.note.warn { border-color: rgba(247, 204, 116, .38); background: var(--gold-dim); }
.note > :last-child { margin-bottom: 0; }
.note b { display: block; color: var(--text); font-weight: 700; margin-bottom: 6px; }

/* ── tables ──────────────────────────────────────────────────────────── */

.tbl { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14.5px; }
th, td {
  text-align: start; vertical-align: top; padding: 11px 14px;
  border-bottom: 1px solid var(--line); color: var(--text-2);
}
th {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 500;
}

/* ── contents ────────────────────────────────────────────────────────── */

.toc {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin: 0 0 40px; background: var(--canvas-2);
}
.toc b {
  display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 10px; font-weight: 500;
}
.toc ol { margin: 0; padding-inline-start: 20px; font-size: 14.5px; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }

/* ── foot ────────────────────────────────────────────────────────────── */

footer.leg {
  border-top: 1px solid var(--line); padding: 30px 0 46px;
  font-size: 13.5px; color: var(--text-3);
}
footer.leg .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer.leg a { color: var(--text-3); text-decoration: none; }
footer.leg a:hover { color: var(--gold); }
footer.leg .sep { color: var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
