/* Styles for the legal pages (privacy.html, terms.html). Same tokens as index.html. */
:root {
  --ink: #07090f; --ink-2: #0d111b; --surface: #121826;
  --line: rgba(243, 238, 230, 0.10); --line-strong: rgba(243, 238, 230, 0.22);
  --fg: #f3eee6; --muted: #a7a093; --faint: #8b8478;
  --gold: #d6bc93; --gold-fill: #d6bc93; --on-gold: #17120a;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --ink: #f6f2ea; --ink-2: #efe9de; --surface: #ffffff;
  --line: rgba(60, 45, 20, 0.12); --line-strong: rgba(60, 45, 20, 0.28);
  --fg: #17140f; --muted: #6a6458; --faint: #6f685c;
  --gold: #7a5c33;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 400 1rem/1.65 var(--f-body); }
a { color: var(--gold); }
.wrap { width: min(100% - 40px, 820px); margin-inline: auto; }

/* only the chosen language is shown */
html[lang='en'] [data-lang='nl'], html[lang='nl'] [data-lang='en'] { display: none !important; }

header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; margin-right: auto; min-width: 0; }
.logo img { max-width: 100%; }
.logo img { height: 22px; width: auto; display: block; }
:root[data-theme='light'] .logo { background: #07090f; padding: 7px 10px; border-radius: 10px; }
.lang { flex: none; display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 0.72rem/1 var(--f-mono); letter-spacing: 0.08em; padding: 8px 10px; border-radius: 999px; cursor: pointer; min-height: 34px; }
.lang button[aria-pressed="true"] { background: var(--gold-fill); color: var(--on-gold); }
.theme-btn { flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme='light'] .theme-btn .sun { display: none; }
:root[data-theme='light'] .theme-btn .moon { display: block; }

main { padding-block: 48px 72px; overflow-wrap: break-word; }
.crumbs { margin-bottom: 24px; font: 500 0.78rem/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-underline-offset: 3px; }
.crumbs .sep { margin-inline: 0.5em; }
.eyebrow { margin: 0 0 10px; font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-style: italic; font-stretch: 110%; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; }
.updated { margin: 12px 0 0; color: var(--faint); font-size: 0.9rem; }
.intro { margin-top: 24px; color: var(--muted); font-size: 1.05rem; }
h2 { margin: 44px 0 10px; font-family: var(--f-display); font-weight: 750; font-style: italic; font-stretch: 105%; font-size: 1.35rem; line-height: 1.2; }
h3 { margin: 22px 0 6px; font-size: 1rem; }
p, li { color: var(--muted); }
strong { color: var(--fg); font-weight: 600; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
.card { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.card dt { color: var(--faint); font: 500 0.78rem/1.7 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.card dd { margin: 0; color: var(--fg); }
@media (max-width: 520px) { .card dl { grid-template-columns: 1fr; gap: 0; } .card dd { margin-bottom: 8px; } }
.todo { background: rgba(214, 160, 40, 0.25); color: var(--fg); padding: 0 4px; border-radius: 4px; }
.toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold); }
@media (max-width: 620px) { .toc ol { columns: 1; } }
h2[id] { scroll-margin-top: 84px; }
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--faint); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }

/* phone/desktop menu (a <details>, works without JavaScript) */
.menu { position: static; flex: none; }
.menu > summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg); }
.menu > summary::-webkit-details-marker { display: none; }
.menu .bars { display: grid; gap: 4px; width: 16px; }
.menu .bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu[open] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] .bars i:nth-child(2) { opacity: 0; }
.menu[open] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 2px; padding: 12px max(20px, calc((100% - 820px) / 2)) 20px; background: var(--ink); border-bottom: 1px solid var(--line-strong); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); max-height: calc(100vh - 64px); overflow-y: auto; }
.menu-panel a { padding: 12px 4px; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); }
.menu-panel a:hover { color: var(--gold); }
.menu-panel .menu-group { margin: 14px 4px 0; font: 500 0.74rem/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.menu-panel .menu-cta { margin-top: 14px; justify-self: start; border: 0; padding: 12px 20px; border-radius: 999px; background: var(--gold-fill); color: var(--on-gold); font-weight: 600; }
footer .foot-sep { flex-basis: 100%; height: 0; }

/* footer in columns, same as the main site */
.wrap-foot { width: min(100% - 40px, 1180px); margin-inline: auto; }
footer { padding-block: 36px; }
footer img { width: 120px; height: auto; display: block; }
:root[data-theme='light'] footer img { background: #07090f; padding: 8px 12px; border-radius: 10px; box-sizing: content-box; }
footer .foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; align-items: start; }
footer .foot-brand { display: grid; gap: 14px; justify-items: start; }
footer .foot-brand p { margin: 0; max-width: 260px; line-height: 1.5; color: var(--faint); font-size: 0.88rem; }
footer .foot-col { display: grid; gap: 10px; align-content: start; }
footer .foot-col .t { margin-bottom: 4px; font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
footer .foot-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
footer .foot-col a:hover { color: var(--fg); }
footer .legal-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.84rem; }
footer .legal-row a { color: var(--faint); text-decoration: none; }
footer .legal-row a:hover { color: var(--fg); }
@media (max-width: 900px) { footer .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } footer .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; } footer .foot-sol { grid-row: 3; grid-column: 1 / -1; } }
