:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f4f4f1;
  --body: rgba(244, 244, 241, 0.62);
  --muted: rgba(244, 244, 241, 0.42);
  --line: rgba(244, 244, 241, 0.12);
  --page-width: 880px;
  --reading-width: 680px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  margin: 0;
  min-height: 100svh;
}

a { color: inherit; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.container {
  margin-inline: auto;
  width: min(calc(100% - 48px), var(--page-width));
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: clamp(74px, 9vh, 112px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  font-weight: 760;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  filter:
    drop-shadow(0 0 9px rgba(64, 214, 90, 0.45))
    drop-shadow(0 0 22px rgba(183, 255, 56, 0.12));
  height: clamp(34px, 3.4vw, 48px);
  object-fit: contain;
  width: clamp(34px, 3.4vw, 48px);
}

.site-nav,
.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-links a:hover { color: var(--text); }

.legal-main {
  flex: 1;
  padding: 56px 0 80px;
}

.legal-wrap {
  margin-inline: auto;
  max-width: var(--reading-width);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0 0 14px;
}

h1,
h2,
p,
li { overflow-wrap: break-word; }

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  max-width: 620px;
  text-wrap: balance;
}

.hero-copy {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  margin: 20px 0 0;
  max-width: 620px;
}

.legal-sections {
  margin-top: 36px;
}

.legal-section {
  padding: 30px 0;
}

.section-body h2 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 12px;
}

.section-body p,
.section-body li {
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.72;
}

.section-body p { margin: 0 0 12px; }
.section-body p:last-child { margin-bottom: 0; }

.section-body ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.section-body strong {
  color: rgba(244, 244, 241, 0.8);
  font-weight: 600;
}

.section-body a {
  color: rgba(244, 244, 241, 0.82);
  text-decoration-color: rgba(244, 244, 241, 0.3);
  text-underline-offset: 0.2em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--page-width)); }
  .site-nav { display: none; }
  .legal-main { padding: 40px 0 64px; }
  .legal-hero h1 { font-size: 2rem; }
  .hero-copy { font-size: 0.96rem; }
  .legal-sections { margin-top: 32px; }
  .legal-section { padding: 26px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
