/* Spotklok — juridische pagina's (/privacy, /voorwaarden, /verwerkersovereenkomst).
   Bouwt voort op base.css (tokens, licht/donker). Geen JavaScript, geen color-mix() (iOS 15). */

html { background: var(--bg); }
body { min-height: 100vh; overflow-x: hidden; }

.lg-top {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.lg-top-inner {
  max-width: 820px; margin: 0 auto; min-height: 60px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
}
.lg-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--text); }
.lg-brand img { width: 30px; height: 30px; }
.lg-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 -8px; }
.lg-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.lg-nav a:hover { background: var(--gray-soft); text-decoration: none; }
.lg-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

.lg-main {
  max-width: 820px; margin: 0 auto;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

/* Grote CONCEPT-markering */
.lg-concept {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; margin-bottom: 22px; border-radius: var(--radius-lg);
  background: var(--amber-soft); border: 2px solid var(--amber); color: var(--text);
}
.lg-concept-mark {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: #fff; font-weight: 800; font-size: 22px;
}
.lg-concept strong.lg-concept-title { display: block; font-size: 19px; font-weight: 800; letter-spacing: .01em; line-height: 1.3; margin-bottom: 4px; }
.lg-concept p { font-size: 14.5px; color: var(--text-2); }
.lg-concept p + p { margin-top: 6px; }
@media (prefers-color-scheme: dark) { .lg-concept-mark { color: #1a1406; } }

.lg-doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 18px; box-shadow: var(--shadow-sm);
  font-size: 16px; line-height: 1.6;
  word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere;
}
@media (min-width: 640px) { .lg-doc { padding: 32px 36px; } }
.lg-doc h1 { font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
@media (min-width: 640px) { .lg-doc h1 { font-size: 32px; } }
.lg-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.lg-lead { font-size: 17px; color: var(--text-2); margin-bottom: 18px; }
.lg-doc h2 { font-size: 20px; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--border); scroll-margin-top: 12px; }
.lg-doc h3 { font-size: 16.5px; margin: 20px 0 6px; }
.lg-doc p, .lg-doc ul, .lg-doc ol { margin: 0 0 12px; }
.lg-doc ul, .lg-doc ol { padding-left: 22px; }
.lg-doc li + li { margin-top: 5px; }
.lg-doc a { text-decoration: underline; text-underline-offset: 2px; }
.lg-doc strong { color: var(--text); }

/* Placeholders: nog in te vullen */
.ph {
  display: inline; padding: 0 4px; border-radius: 4px; white-space: normal;
  background: var(--amber-soft); color: var(--text); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--amber);
}

/* Inhoudsopgave */
.lg-toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 12px; margin: 0 0 8px; }
.lg-toc-title { font-weight: 700; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.lg-toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.lg-toc li + li { margin-top: 3px; }
.lg-toc a { text-decoration: none; font-weight: 600; }
.lg-toc a:hover { text-decoration: underline; }

/* Kaders */
.lg-note { padding: 12px 14px; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--border); margin: 0 0 14px; font-size: 15px; }
.lg-note p:last-child, .lg-note ul:last-child { margin-bottom: 0; }

/* Tabellen: op mobiel horizontaal scrollen binnen het kader, niet de hele pagina */
.lg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.lg-doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; word-break: normal; overflow-wrap: normal; }
.lg-doc th, .lg-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.lg-doc th { background: var(--surface-2); font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.lg-doc tr:last-child td { border-bottom: 0; }

/* Telefoon: elke tabelrij als een blokje (kolomnaam boven de waarde), geen zijwaarts scrollen */
@media (max-width: 639.98px) {
  .lg-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .lg-doc table { min-width: 0; }
  .lg-doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-doc tbody, .lg-doc tr, .lg-doc td { display: block; }
  .lg-doc tr { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  .lg-doc tr + tr { margin-top: 10px; }
  .lg-doc td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
  .lg-doc td:last-child { border-bottom: 0; }
  .lg-doc tr:last-child td:not(:last-child) { border-bottom: 1px solid var(--border); }
  .lg-doc td:first-child { background: var(--surface-2); font-weight: 600; }
  .lg-doc td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted);
  }
}

.lg-foot {
  margin-top: 22px; text-align: center; color: var(--muted); font-size: 13.5px;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.lg-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; }
.lg-foot a { color: var(--text-2); font-weight: 600; display: inline-flex; align-items: center; min-height: 36px; }

@media print {
  html, body { background: #fff; color: #000; }
  .lg-top, .lg-toc, .lg-foot nav { display: none; }
  .lg-main { max-width: none; padding: 0; }
  .lg-doc { border: 0; box-shadow: none; padding: 0; }
  .lg-concept { border: 2px solid #000; background: #fff; }
  .lg-doc a { color: #000; }
  .lg-table-wrap { overflow: visible; border: 0; }
  .lg-doc table { min-width: 0; }
}
