:root {
  --surface: #fbfaf7;
  --sunken: #f8f6f1;
  --hairline: #eeebe4;
  --border: #ddd9d0;
  --ink: #1b1a17;
  --ink-2: #57544e;
  --label: #767368;
  --accent: #2f55c7;
  --sans: "IBM Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #161614;
    --sunken: #1c1c19;
    --hairline: #24241f;
    --border: #2f2f2a;
    --ink: #f2f0ea;
    --ink-2: #cfcdc5;
    --label: #8b887f;
    --accent: #7d9bff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.legal-shell {
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 52px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.legal-brand img { width: 28px; height: 28px; }

.legal-nav-links { display: flex; gap: 20px; }
.legal-nav-links a, .legal-footer a { color: var(--label); text-decoration: none; }
.legal-nav-links a:hover, .legal-footer a:hover { color: var(--ink); }

.legal-eyebrow {
  margin: 0 0 14px;
  color: var(--label);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.legal-intro {
  margin: 0 0 48px;
  max-width: 650px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}

.legal-section h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.legal-section p, .legal-section li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-section p { margin: 0 0 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 22px; }
.legal-section a { color: var(--accent); }

.support-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--sunken);
}

.support-card h3 { margin: 0 0 8px; font-size: 17px; }
.support-card p { margin: 0; }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
  color: var(--label);
  font: 400 12px/1.5 var(--mono);
}

@media (max-width: 560px) {
  .legal-shell { padding-top: 22px; }
  .legal-nav { align-items: flex-start; padding-bottom: 42px; }
  .legal-nav-links { flex-direction: column; align-items: flex-end; gap: 8px; }
  .legal-footer { flex-direction: column; }
}
