:root {
  color-scheme: dark;
  --background: #0d0d0c;
  --surface: #161512;
  --text: #eee8dc;
  --muted: #aaa395;
  --gold: #cfa453;
  --line: rgba(207, 164, 83, 0.24);
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(207, 164, 83, 0.12), transparent 38rem),
    var(--background);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.75;
}

a { color: var(--gold); }
a:hover { color: #e2bf79; }

.legal-shell {
  width: min(100% - 2rem, 780px);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.legal-back {
  display: inline-flex;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-back:hover { color: var(--gold); }

.legal-kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.25rem, 8vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.legal-updated {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

.legal-content {
  margin-top: clamp(2.75rem, 7vw, 4.75rem);
  padding-top: clamp(2.2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 2.5rem 0 0.65rem;
  color: var(--gold);
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 400;
  line-height: 1.25;
}

.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li { color: #d7d0c4; }
.legal-content ul,
.legal-content ol { padding-left: 1.35rem; }
.legal-content strong { color: var(--text); }

.legal-note {
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(207, 164, 83, 0.045);
}

.legal-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

@media (max-width: 430px) {
  .legal-shell { width: min(100% - 1.5rem, 780px); }
  body { line-height: 1.68; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
