:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #9caf9f;
  --green: #20ed82;
  --lime: #d7ff00;
  --red: #ff3038;
  --line: rgba(47, 229, 126, .22);
}

* { box-sizing: border-box; }

html { background: #020705; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgba(23,226,117,.14), transparent 30%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #020705;
  background-size: auto, 48px 48px, 48px 48px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--lime); }

.legal-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 max(42px, env(safe-area-inset-bottom));
}

.legal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  color: var(--ink);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 34px;
  font-style: italic;
  letter-spacing: -1px;
  text-decoration: none;
}

.legal-brand .g { color: var(--green); }
.legal-brand .r { color: var(--red); }

.legal-home {
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(7, 22, 14, .85);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-decoration: none;
  letter-spacing: .7px;
}

.legal-hero { padding: 64px 0 34px; }

.legal-kicker {
  color: var(--green);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 2px;
}

.legal-hero h1 {
  max-width: 700px;
  margin: 12px 0 16px;
  font: 900 clamp(42px, 8vw, 72px)/.95 Impact, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .2px;
}

.legal-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.legal-card {
  position: relative;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(8,28,18,.97), rgba(3,10,7,.96));
  box-shadow: 0 22px 70px #000b, inset 0 0 55px rgba(11,102,54,.08);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.legal-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.legal-card h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card h3 {
  margin: 23px 0 8px;
  color: #d9e5dd;
  font-size: 15px;
}

.legal-card p,
.legal-card li {
  color: #b3c0b8;
  font-size: 14px;
  line-height: 1.72;
}

.legal-card ul { padding-left: 21px; }
.legal-card li + li { margin-top: 7px; }

.legal-note {
  margin: 20px 0;
  padding: 15px 17px;
  border-left: 3px solid var(--red);
  background: rgba(255, 48, 56, .07);
}

.legal-note strong {
  display: block;
  margin-bottom: 5px;
  color: #ffe1e2;
  font: 800 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .8px;
}

.legal-updated {
  margin-top: 32px;
  color: #72877a;
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .5px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 10px;
  margin-top: 28px;
  color: #70877a;
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.legal-footer a,
.legal-footer button { color: #70877a; text-decoration: none; }
.legal-footer a:hover,
.legal-footer button:hover { color: var(--lime); }
.legal-footer button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.legal-footer .privacy-preferences { flex-basis: 100%; }

@media (max-width: 520px) {
  .legal-shell { width: min(100% - 24px, 880px); padding-top: 15px; }
  .legal-hero { padding: 45px 4px 27px; }
  .legal-hero h1 { font-size: 45px; }
  .legal-card { padding: 24px 18px 30px; }
  .legal-top { padding-inline: 3px; }
}
