/* Juridische pagina's (privacyverklaring, algemene voorwaarden, AI-verklaring, reviewbeleid).
   Staat in een eigen bestand zodat tailwind.css niet opnieuw gebouwd hoeft te worden. */

.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1024px) {
  .legal { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; align-items: start; }
}

/* Inhoudsopgave: bovenaan op mobiel, plakkend naast de tekst op desktop */
.legal-toc { font-size: 0.9rem; line-height: 1.45; }
.legal-toc-title { font-family: 'Satoshi', Inter, sans-serif; font-weight: 700; color: var(--text-dark); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.legal-toc-title::-webkit-details-marker { display: none; }
.legal-toc-title::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s var(--ease-spring); }
.legal-toc[open] .legal-toc-title::after { transform: rotate(225deg) translateY(-2px); }
.legal-toc-title:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; border-radius: 4px; }
@media (min-width: 1024px) { .legal-toc-title { cursor: default; pointer-events: none; min-height: 0; margin-bottom: 0.75rem; } .legal-toc-title::after { display: none; } }
@media (max-width: 1023px) { .legal-toc { border: 1px solid rgba(17,23,27,0.12); border-radius: 8px; padding: 0 1rem; background: var(--light-elevated); } .legal-toc[open] ol { padding-bottom: 0.75rem; } }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(17,23,27,0.12); }
.legal-toc a {
  display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px;
  color: rgba(17,23,27,0.68); border-left: 2px solid transparent; text-decoration: none;
  transition: color 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring);
}
.legal-toc a:hover { color: var(--text-dark); border-left-color: var(--deep-blue); }
.legal-toc a:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; color: var(--text-dark); }
@media (min-width: 1024px) {
  .legal-toc { position: sticky; top: 7rem; max-height: calc(100svh - 9rem); overflow-y: auto; }
}
@media (max-width: 1023px) {
  .legal-toc ol { border-left: 0; }
  .legal-toc a { border-left: 0; padding-left: 0; min-height: 44px; display: flex; align-items: center; }
}

/* Tekst */
.legal-body { max-width: 44rem; font-size: 1.0625rem; line-height: 1.75; color: rgba(17,23,27,0.88); }
.legal-section { scroll-margin-top: 7rem; }
.legal-section + .legal-section { margin-top: 3.25rem; padding-top: 3.25rem; border-top: 1px solid rgba(17,23,27,0.1); }
.legal-body h2 {
  font-family: 'Satoshi', Inter, sans-serif; font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15; letter-spacing: -0.02em; color: var(--text-dark); margin-bottom: 1.25rem; text-wrap: balance;
}
.legal-num { display: block; font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--deep-blue); margin-bottom: 0.35rem; }
.legal-body p { margin: 0 0 1rem; max-width: 65ch; }
.legal-body strong { font-weight: 700; color: var(--text-dark); }
.legal-body a { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.2s var(--ease-spring); }
.legal-body a:hover { color: #1B45C0; text-decoration-thickness: 2px; }
.legal-body a:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; border-radius: 2px; }

/* Lijsten: genummerde leden en a/b/c-subleden uit de voorwaarden */
.legal-body ul, .legal-body ol { margin: 0 0 1rem; padding-left: 1.4rem; max-width: 65ch; }
.legal-body ul { list-style: disc; }
.legal-body li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.legal-body li::marker { color: rgba(17,23,27,0.5); }
.legal-body ol { list-style: decimal; }
.legal-body ol.alpha { list-style: lower-alpha; margin: 0.6rem 0 0.2rem; }

/* Tabellen: op smal scherm horizontaal scrollbaar binnen de kaart */
.legal-table { overflow-x: auto; margin: 0.5rem 0 1rem; border: 1px solid rgba(17,23,27,0.12); border-radius: 8px; background: var(--light-elevated); }
.legal-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; }
.legal-table thead th { font-family: 'Satoshi', Inter, sans-serif; font-weight: 700; color: var(--text-dark); background: var(--light-surface); }
.legal-table tbody th { font-weight: 600; color: var(--text-dark); width: 30%; }
.legal-table tbody tr + tr > * { border-top: 1px solid rgba(17,23,27,0.08); }

@media print {
  .legal { display: block; }
  .legal-toc { display: none; }
}

/* Hero: compact en rustig */
.legal-hero { padding-bottom: 2.5rem; }
@media (min-width: 640px) { .legal-hero { padding-bottom: 3rem; } }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.legal-hero .text-lead { font-size: 1rem; line-height: 1.6; margin-top: 1rem; }
.legal-crumb { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.legal-crumb a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease-spring); }
.legal-crumb a:hover { color: #fff; }
.legal-crumb a:focus-visible { outline: 2px solid #62D6F5; outline-offset: 3px; border-radius: 2px; }
.legal-meta { margin-top: 1.25rem; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.legal-version { margin-top: 3.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(17,23,27,0.1); font-size: 0.9rem; color: rgba(17,23,27,0.6); }
