/* Privacy notice (/privacy/ in English, /tietosuoja/ in Finnish). Static
 * documents like the landing page: they load /landing/landing.css for the
 * tokens, top bar, buttons and footer, and this file for the page header,
 * the prose column and the tables. Public (Easy Auth excluded paths). */

.doc-hero { position: relative; background: var(--ink); color: #fff; }
.doc-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--brand-gradient); }
.doc-hero .topbar { padding: 18px 0; }
.doc-hero :focus-visible { outline-color: var(--gold-bright); }

.lang-switch { display: flex; gap: 4px; align-items: center; font: 500 13px/1 var(--font-mono); letter-spacing: .12em; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  color: var(--on-dark); text-decoration: none;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.lang-switch [aria-current='page'] { color: var(--ink); background: var(--gold-bright); }

/* The heading block is as wide as the prose text (.doc minus its padding),
 * so the title lines up with the text below at every width. */
.doc-head { max-width: calc(46rem - 48px); margin: 0 auto; padding: 40px 0 56px; display: flex; flex-direction: column; gap: 16px; }
.doc-head h1 { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--font-display); letter-spacing: -.02em; }
.doc-head .updated { font: 400 13px/1.4 var(--font-mono); color: var(--on-dark-muted); letter-spacing: .04em; }

/* ── Prose column ────────────────────────────────────────────────────────── */
.doc { max-width: 46rem; margin: 0 auto; padding: 56px 24px 96px; }
.back { display: inline-flex; gap: 8px; margin-bottom: 32px; font-size: 15px; text-decoration: none; }
.back:hover { text-decoration: underline; }

.doc p, .doc li { font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.doc p + p, .doc p + ul, .doc ul + p, .doc .table-wrap + p, .doc p + .table-wrap, .doc .note + p { margin-top: 16px; }
.doc .intro p { font-size: 19px; line-height: 1.65; color: var(--ink); }
.doc ul { margin: 0; padding-left: 1.25em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--gold); }
.doc strong { font-weight: 600; }
.doc a { overflow-wrap: anywhere; }
.doc code { font: 400 .88em/1 var(--font-mono); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }

.doc section { margin-top: 56px; scroll-margin-top: 24px; }
.doc h2 {
  font: 600 clamp(1.45rem, 2.6vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.01em;
  margin: 0 0 18px; text-wrap: balance;
}
.doc h2 .num { font: 400 .62em/1 var(--font-mono); color: var(--gold-deep); letter-spacing: .1em; margin-right: 10px; vertical-align: .18em; }
.doc h3 { font: 600 17px/1.4 var(--font-body); margin: 28px 0 8px; }

.note {
  margin-top: 20px; padding: 18px 20px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--rink);
}
.note p { font-size: 16px; }

/* ── Tables: real tables on wide screens, stacked cards on phones ────────── */
.table-wrap { margin-top: 8px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.data-table caption { text-align: left; padding: 0 0 10px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 16px; font-size: 15px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--rink-tint); font: 600 13px/1.3 var(--font-body); color: var(--ink); }
.data-table tbody th { font-weight: 600; width: 22%; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table td.basis { color: var(--ink-soft); }

@media (max-width: 760px) {
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: auto; }
  .data-table { background: none; border: 0; border-radius: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data-table tbody tr { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .data-table tbody tr + tr { margin-top: 14px; }
  .data-table tbody th { width: auto; background: var(--rink-tint); font-size: 16px; }
  .data-table td { padding: 10px 16px; }
  .data-table td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
  }
  .data-table tbody tr > *:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .wrap, .doc { padding-inline: 16px; }
  .doc p, .doc li { font-size: 16px; }
  .doc .intro p { font-size: 17px; }
  .doc section { margin-top: 44px; }
}
