:root {
  color-scheme: light;
  --ink: #0d2b25;
  --muted: #53635e;
  --paper: #f4f0e7;
  --sheet: #fbf8f1;
  --line: #d8d1c2;
  --signal: #ef401d;
  --lime: #c8fa2f;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255,255,255,.72), transparent 30rem),
    linear-gradient(90deg, rgba(13,43,37,.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 24px 24px, auto;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: inherit; }

.legal-topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(13,43,37,.16);
  background: rgba(244,240,231,.92);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -.025em;
  text-decoration: none;
}

.support-link {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.legal-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 54px;
  align-items: start;
}

.legal-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sheet);
  box-shadow: 14px 16px 0 rgba(13,43,37,.08);
}

.legal-hero {
  padding: clamp(34px, 7vw, 76px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(200,250,47,.24), transparent 44%),
    var(--sheet);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 24px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .96;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }

.legal-content { padding: clamp(30px, 6vw, 70px); }

.legal-content section + section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.025em; line-height: 1.2; }
h3 { margin: 28px 0 8px; font-size: 18px; line-height: 1.35; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li + li { margin-top: 7px; }

.notice {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--signal);
  background: #fff9ed;
}

.legal-nav {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251,248,241,.78);
}

.legal-nav strong { display: block; margin-bottom: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 620; text-decoration: none; }
.legal-nav a:hover { color: var(--signal); }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .legal-topbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .legal-layout { padding-top: 28px; grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .legal-footer { flex-direction: column; }
}

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