/* Standalone styling for the legal documents.
   These pages deliberately do NOT load styles.css: that stylesheet is the deck
   shell and sets `html, body { overflow: hidden; height: 100% }`, which would
   make a long document unscrollable. Tokens are redeclared here instead. */

:root {
  --bg: #0b0b0d;
  --ink: #d6d2cf;
  --ink-bright: #ebe8e5;
  --muted: #7d8890;
  --accent: #ff5a00;
  --rule: rgba(214, 210, 207, 0.16);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a.is-lit { color: var(--ink-bright); text-decoration: underline; }
@media (hover: hover) { a:hover { color: var(--ink-bright); text-decoration: underline; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */

.legal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 6vw, 64px);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.legal__home img { display: block; height: 15px; width: auto; }

.legal__back {
  font: 600 12px/1 Manrope, sans-serif;
  color: var(--muted);
}
.legal__back.is-lit { color: var(--accent); text-decoration: none; }
@media (hover: hover) { .legal__back:hover { color: var(--accent); text-decoration: none; } }

/* ---------- document ---------- */

.legal {
  max-width: 74ch;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 6vw, 64px) 64px;
}

.legal h1 {
  margin: 0 0 40px;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-bright);
  text-wrap: balance;
}

.legal h2 {
  display: flex;
  gap: 12px;
  margin: 48px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-bright);
}

.legal__num {
  flex: 0 0 auto;
  font: 500 0.85em/1.7 Manrope, sans-serif;
  color: var(--accent);
}

.legal h3 {
  margin: 26px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-bright);
}

.legal p {
  margin: 0 0 14px;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: rgba(214, 210, 207, 0.82);
  text-wrap: pretty;
}

/* ---------- document switcher ---------- */

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.legal__nav a,
.legal__nav button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 500 12px/1.6 Manrope, sans-serif;
  color: var(--muted);
}
.legal__nav a.is-lit, .legal__nav button.is-lit { color: var(--accent); text-decoration: none; }
@media (hover: hover) { .legal__nav a:hover, .legal__nav button:hover { color: var(--accent); text-decoration: none; } }

/* ---------- footer ---------- */

.legal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 64px) 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.legal__footer p,
.legal__footer small {
  margin: 0;
  font: 500 11px/1.5 Manrope, sans-serif;
  letter-spacing: 0.06em;
}
