/* ============================================================
   LEGAL — privacy, cookies, terms, safer gambling, company
   ============================================================
   The legal pages carry none of the home page's motion or scripts: they have
   to read cleanly with JavaScript off, behind the age gate's back and on the
   oldest phone a partner owns. Same palette and type as the site, nothing else
   from styles.css, so a change to the home page cannot quietly break them.
   ============================================================ */

:root {
  --surface: #0a0806;
  --surface-container: #14110b;
  --surface-high: #1b160f;
  --on-surface: #fdf9f4;
  --on-surface-variant: #a39a90;
  --on-surface-muted: #6f675f;
  --accent: #ff5a1a;
  --accent-bright: #ff9d3d;
  --line: rgba(253, 249, 244, 0.1);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--surface);
  color: var(--on-surface-variant);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 85% -10%, rgba(255, 90, 26, 0.06), transparent 60%);
}

a { color: var(--on-surface); text-decoration: underline; text-decoration-color: rgba(255, 90, 26, 0.6); text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 90, 26, 0.85); color: #190a02; }

.wrap { width: min(var(--measure), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- header ---------- */
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.legal-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.legal-logo img:first-child { width: 34px; height: auto; }
.legal-logo img:last-child { width: 124px; height: auto; }
.legal-back { font-size: 14px; color: var(--on-surface-variant); text-decoration: none; white-space: nowrap; }
.legal-back:hover { color: var(--on-surface); }

/* ---------- document nav ---------- */
.legal-nav { margin: 0; }
.legal-nav ul { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px; text-decoration: none; color: var(--on-surface-variant);
}
.legal-nav a:hover { color: var(--on-surface); border-color: rgba(253, 249, 244, 0.24); }
.legal-nav a[aria-current="page"] { color: #190a02; background: var(--accent); border-color: var(--accent); }

/* ---------- document ---------- */
main { padding: 48px 0 88px; }
h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--on-surface);
  font-size: clamp(36px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.legal-meta { margin-top: 12px; font-size: 14px; color: var(--on-surface-muted); }
.legal-lede { margin-top: 24px; font-size: 18px; color: var(--on-surface); }

.summary {
  margin-top: 32px; padding: 24px 26px; border-radius: 20px;
  background: var(--surface-container); border: 1px solid var(--line);
}
.summary h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-bright); }
.summary ul { padding-left: 1.1em; }
.summary li + li { margin-top: 6px; }

section { margin-top: 48px; }
h2 {
  font-family: var(--font-display); font-weight: 650; color: var(--on-surface);
  font-size: clamp(22px, 3vw, 28px); line-height: 1.2; letter-spacing: -0.02em;
  scroll-margin-top: 24px;
}
h3 { margin-top: 24px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--on-surface); }
section > p, section > ul, section > ol, section > .table-wrap, section > dl { margin-top: 14px; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 6px; }
strong { color: var(--on-surface); font-weight: 600; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
dt { color: var(--on-surface-muted); }
dd { color: var(--on-surface); }

/* ---------- tables: rows on a wide screen, stacked cards on a phone ---------- */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--on-surface); font-weight: 600; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; background: var(--surface-container); }
td:first-child { color: var(--on-surface); }
code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--surface-high); color: var(--on-surface); overflow-wrap: anywhere; }

@media (max-width: 720px) {
  table, thead, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { margin-top: 12px; padding: 6px 16px; border-radius: 16px; background: var(--surface-container); border: 1px solid var(--line); }
  td { padding: 8px 0; border-bottom: 1px solid var(--line); }
  td:last-child { border-bottom: 0; }
  td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-surface-muted);
  }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd + dt { margin-top: 12px; }
}

/* ---------- footer ---------- */
.legal-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--on-surface-muted); }
.legal-footer p + p { margin-top: 8px; }
.legal-footer a { color: var(--on-surface-variant); }

@media print {
  body { background: #fff; color: #111; }
  body::before, .legal-nav, .legal-back { display: none; }
  h1, h2, h3, strong, td:first-child, dd, a { color: #111; }
  .summary, th, tr { background: none; }
}

.legal-nav + h1 { margin-top: 32px; }
.legal-nav li + li { margin-top: 0; }
