/* Legal and help pages: same "Vrolijk" tokens as index.html and the app. */
:root {
  --primary: #6D4AFF;
  --primary-soft: #ECE7FF;
  --accent: #FF6B5B;
  --bg: #F6F4FF;
  --surface: #FFFFFF;
  --text: #1E1646;
  --muted: #5F587F;
  --border: #DCD6F5;
  --night: #1E1646;
  --games: #FFC83D;
  --sports: #2ED3A0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #9D86FF;
    --primary-soft: #2C2363;
    --bg: #120E2B;
    --surface: #1E1846;
    --text: #F4F1FF;
    --muted: #B5ADDC;
    --border: #352D6B;
    --night: #2A2350;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); font-weight: 600; }

/* Night band with the brand shapes and a wave into the page, like the app's header. */
.band {
  position: relative; overflow: hidden; background: var(--night); color: #fff;
  padding: 20px 16px 72px;
  clip-path: ellipse(120% 100% at 50% 0%);
}
.band::before, .band::after { content: ''; position: absolute; pointer-events: none; }
.band::before { width: 180px; height: 180px; border-radius: 50%; background: var(--accent); right: -60px; top: -70px; }
.band::after { width: 34px; height: 34px; border-radius: 10px; background: var(--games); right: 90px; bottom: 60px; transform: rotate(-14deg); }
.band-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { color: #fff; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; text-decoration: none; }
.logo span { color: var(--accent); }
.lang { display: flex; gap: 4px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px; }
.lang button {
  font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: none; border: 0;
  border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: #fff; color: #1E1646; }
.band h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.1; margin: 28px 0 8px; letter-spacing: -0.5px; }
.band p { margin: 0; color: #C9C1EE; }

main { max-width: 720px; margin: 0 auto; padding: 8px 16px 48px; }
h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.2px; }
h3 { font-size: 18px; margin: 20px 0 4px; }
p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.muted { color: var(--muted); font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
.wrap { overflow-x: auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px; margin: 12px 0; }
.card h3 { margin-top: 0; }
.sos { background: var(--accent); color: #fff; border-radius: 20px; padding: 16px 18px; margin: 16px 0; }
.sos p, .sos a { color: #fff; }

footer { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }

/* Phones: each table row becomes a small card instead of a squeezed 3-column table. */
@media (max-width: 600px) {
  table, tbody, tr, td { display: block; }
  tr:first-child { display: none; }
  tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; }
  td:nth-child(3) { color: var(--muted); font-size: 14px; }
  table.basis td:nth-child(3)::before { content: "Grondslag: "; }
  table.where td:nth-child(3)::before { content: "Waar: "; }
  html[lang="en"] table.basis td:nth-child(3)::before { content: "Legal basis: "; }
  html[lang="en"] table.where td:nth-child(3)::before { content: "Where: "; }
}

[lang="en"][data-doc] { display: none; }
html[lang="en"] [lang="nl"][data-doc] { display: none; }
html[lang="en"] [lang="en"][data-doc] { display: block; }
