/* Legal pages — self-contained Warm Ledger styles.
   Static pages have no build step, so the handful of tokens they need are
   repeated here from src/styles/tokens.css. Keep the two in sync. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(96.5% 0.012 95);
  --surface: oklch(99.2% 0.006 95);
  --fg: oklch(26% 0.03 55);
  --fg-strong: oklch(20% 0.032 55);
  --muted: oklch(45% 0.022 70);
  --border: oklch(89% 0.012 90);
  --accent: oklch(43% 0.085 158);
  --accent-soft: oklch(94.5% 0.028 158);
  --focus: oklch(50% 0.1 158);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(19% 0.011 70);
    --surface: oklch(24% 0.014 70);
    --fg: oklch(93% 0.01 90);
    --fg-strong: oklch(97% 0.008 90);
    --muted: oklch(67% 0.015 80);
    --border: oklch(31% 0.016 75);
    --accent: oklch(63% 0.1 158);
    --accent-soft: oklch(27% 0.038 158);
    --focus: oklch(72% 0.1 158);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.62 var(--font-ui);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  text-decoration: none;
}

.top__back {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.top__back:hover {
  color: var(--fg-strong);
}

.eyebrow {
  display: block;
  margin: 64px 0 14px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

.meta {
  margin: 0 0 44px;
  font: 400 13px/1.5 var(--font-mono);
  color: var(--muted);
}

h2 {
  margin: 52px 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  scroll-margin-top: 24px;
}

h3 {
  margin: 30px 0 8px;
  font: 600 0.95rem/1.4 var(--font-ui);
  letter-spacing: 0.01em;
  color: var(--fg-strong);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 18px;
  padding-left: 1.15em;
}

li {
  margin: 0 0 8px;
  padding-left: 0.15em;
}

li::marker {
  color: var(--muted);
}

strong {
  color: var(--fg-strong);
  font-weight: 600;
}

table {
  width: 100%;
  margin: 6px 0 22px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font: 400 12px/1.6 var(--font-mono);
  color: var(--muted);
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--fg-strong);
}

@media print {
  .top__back,
  .foot {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  h2 {
    break-after: avoid;
  }
}
