/* Pro Marketing 360 — juridische pagina's (aviso legal, privacidad, cookies)
   Rustig: één wit vlak, één tekstkolom, dezelfde koppen en tekst als de homepage.
   Gebruikt tokens.css, base.css en de header/footer-regels uit sections.css. Geen JavaScript. */

.legal {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section);
}
.legal__title { max-width: 14ch; }
.legal__meta { margin-top: var(--stack-sm); }
.legal__lead { margin-top: var(--stack-md); max-width: 36ch; }

.legal__body { margin-top: var(--stack-lg); max-width: 68ch; }
.legal__body > * + * { margin-top: 1rem; }
.legal__body h2 {
  font-size: var(--step-lead);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h2 + * { margin-top: 1.25rem; }

.legal__body ul { padding-left: 1.25em; }
.legal__body li + li { margin-top: 0.5rem; }
.legal__body li::marker { color: currentColor; }

/* datos identificativos: etiqueta boven, waarde eronder; vanaf tablet naast elkaar */
.legal__datos { display: grid; gap: 0.25rem 1.5rem; }
.legal__datos dt { font-weight: 600; }
.legal__datos dd { margin: 0 0 0.75rem; }
@media (min-width: 48em) {
  .legal__datos { grid-template-columns: minmax(10rem, 14rem) 1fr; }
  .legal__datos dd { margin-bottom: 0.5rem; }
}

/* tekstlinks: altijd onderstreept (lopende tekst), dikker bij hover */
.legal__body a {
  text-decoration-line: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 0.08em;
  transition: text-decoration-thickness var(--t-hover) ease;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  .legal__body a:hover { text-decoration-thickness: 0.16em; }
}

/* nog door de klant in te vullen: zwart op geel, als markering */
.legal .confirmar {
  background: var(--amarillo);
  color: var(--negro);
  padding: 0.05em 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ======================= 404 (zwart, één vlak) ======================= */
.perdido {
  display: grid;
  gap: var(--stack-lg);
  align-content: center;
  min-height: calc(100svh - 6.5rem);
  padding-block: var(--stack-md) var(--section);
}
.perdido__title { max-width: 11ch; }
.perdido__lead { margin-top: var(--stack-md); max-width: 38ch; }
.perdido__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  margin-top: var(--stack-md); max-width: none;
}
.perdido__link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-weight: 500;
  text-decoration-line: underline; text-underline-offset: 0.25em; text-decoration-thickness: 0.08em;
  transition: text-decoration-thickness var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.perdido__link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .perdido__link:hover { text-decoration-thickness: 0.16em; }
}
@media (prefers-reduced-motion: reduce) {
  .perdido__link:active { transform: none; }
}
.perdido__ring { width: min(60vw, 18rem); height: auto; overflow: visible; justify-self: end; }
@media (min-width: 64em) {
  .perdido { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .perdido__text { grid-column: 1 / 8; }
  .perdido__ring { grid-column: 9 / 13; width: 100%; max-width: 32rem; justify-self: end; }
}

/* ---------- inhoudsopgave: op telefoon een lijst onder de intro, vanaf desktop rechts, meelopend ---------- */
.legal__toc { margin-top: var(--stack-lg); }
.legal__toc-title { font-weight: 600; }
.legal__toc ul { margin-top: 0.5rem; padding: 0; list-style: none; }
.legal__toc a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration-line: underline; text-decoration-color: transparent;
  text-underline-offset: 0.25em; text-decoration-thickness: 0.08em;
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .legal__toc a:hover { text-decoration-color: currentColor; }
}
@media (min-width: 64em) {
  .legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .legal__head { grid-column: 1 / 9; }
  .legal__body { grid-column: 1 / 9; grid-row: 2; }
  .legal__toc {
    grid-column: 10 / 13; grid-row: 1 / span 2; align-self: start;
    position: sticky; top: calc(7rem + 1rem);  /* onder de vaste header (7rem op desktop) */
    margin-top: 0;
  }
}

/* telefoon en tablet: de header loopt niet mee (zonder menu-knop zou hij twee regels tekst bedekken) */
@media (max-width: 63.99em) {
  .legal-page .site-header { position: static; }
}
/* telefoon: geen menu-knop op deze pagina's; de links staan in de footer */
@media (max-width: 47.99em) {
  .legal-page .site-nav { display: none; }
}
