/* The legal pages (terms, privacy, refunds; English here, Dutch in nl/): the game's look, its
   enamel blue on the paper's cream, in its own font (Baloo 2, the game's copy of it, OFL:
   /licenses/Baloo2-OFL.txt). Static, no scripts, nothing from anyone else's server. */
@font-face {
  font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/legal/baloo2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/legal/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --enamel: #2448a6;
  --tin-shadow: #152b66;
  --cream: #fdf8ee;
  --paper: #fffdf8;
  --line: #eadfc8;
  --ink: #2a2620;
  --ink-soft: #5b5446;
  --sticker: #ffd23f;
  --tint: #eef2fb;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 18px/1.6 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--enamel); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--tin-shadow); }
:focus-visible { outline: 3px solid var(--sticker); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; padding: 8px 14px; border-radius: 10px; background: var(--sticker); color: var(--tin-shadow); z-index: 2; }
.skip:focus { top: 12px; }

/* The tin strip along the top: the game's name and the three pages. */
.top { background: var(--enamel); color: #fff; box-shadow: inset 0 -5px 0 var(--tin-shadow); }
.top-in { max-width: 860px; margin: 0 auto; padding: 14px 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: #fff; text-decoration: none; font-size: 20px; font-weight: 800; line-height: 1.1; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 0 var(--tin-shadow); }
.brand small { display: block; font-size: 14px; font-weight: 600; opacity: 0.85; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 16px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.nav a[aria-current='page'] { background: #fff; color: var(--tin-shadow); box-shadow: 0 3px 0 var(--tin-shadow); }
/* The language menu: a <details>, so it works without a script. */
.lang { position: relative; font-size: 15px; }
.lang summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; list-style: none; cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: '\25BE'; font-size: 13px; }
.lang summary:hover { background: rgba(255, 255, 255, 0.26); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 3; min-width: 180px; max-height: 70vh; overflow: auto;
  margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.lang li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--enamel); text-decoration: none; }
.lang li a:hover { background: var(--tint); }
.lang li a[aria-current] { background: var(--enamel); color: #fff; }

main { max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; }
h1 { margin: 0 0 4px; color: var(--tin-shadow); font-size: clamp(30px, 6vw, 42px); font-weight: 800; line-height: 1.15; }
.version { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }
h2 { margin: 36px 0 8px; color: var(--enamel); font-size: 25px; font-weight: 800; line-height: 1.25; scroll-margin-top: 16px; }
h3 { margin: 22px 0 4px; color: var(--tin-shadow); font-size: 20px; font-weight: 800; line-height: 1.3; }
p, li { max-width: 68ch; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
strong { font-weight: 800; }

/* The short version: a card on the paper. */
.card { margin: 0 0 8px; padding: 18px 22px; border: 2px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--line); }
.card h2 { margin-top: 0; }
.card ul { margin: 0; }
.note { padding: 14px 18px; border-left: 6px solid var(--enamel); border-radius: 0 14px 14px 0; background: var(--tint); }
.note h2 { margin-top: 0; }

.toc { margin: 18px 0 0; padding: 14px 20px; border-radius: 16px; background: var(--paper); border: 2px dashed var(--line); }
.toc h2 { margin: 0 0 4px; font-size: 19px; }
.toc ol { margin: 0; columns: 2 240px; column-gap: 28px; }
.toc li { break-inside: avoid; }

/* Who we are: the company's details, said once per page. */
.company { margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 18px; }
.company dt { color: var(--ink-soft); }
.company dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .company { grid-template-columns: 1fr; }
  .company dd { margin-bottom: 8px; }
}

.form { padding: 16px 20px; border: 2px dashed var(--ink-soft); border-radius: 12px; background: var(--paper); }
.form p { margin: 6px 0; }

footer { border-top: 2px solid var(--line); }
.foot { max-width: 860px; margin: 0 auto; padding: 18px 16px 32px; color: var(--ink-soft); font-size: 15px; }
.foot p { margin: 4px 0; }

@media print {
  .top, .skip, .toc, .lang, footer { display: none; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; }
}
