/* ── Legal pages (privacy.php / voorwaarden.php) ───────────────────────────
   Relies on css/site.css for :root tokens, .container and .btn
   ──────────────────────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.legal-hero {
  background: var(--surface, #f8f9fc);
  border-bottom: 1px solid var(--border, #e6eaf0);
  padding: 52px 0 40px;
}

.legal-hero-inner { max-width: 760px; }

.legal-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent, #d61f26);
  margin-bottom: 14px;
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text, #14161a);
  line-height: 1.2;
  margin-bottom: 14px;
}

.legal-hero p {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--muted, #5b6472);
  max-width: 620px;
  margin-bottom: 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.legal-meta-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #5b6472);
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 8px;
  padding: 5px 12px;
}

/* ── Body ─────────────────────────────────────────────────────────────── */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

/* Table of contents */
.legal-toc {
  background: var(--surface, #f8f9fc);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-toc h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted, #5b6472);
  margin-bottom: 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 24px;
}

.legal-toc li { margin-bottom: 7px; }

.legal-toc a {
  font-size: 13.5px;
  color: var(--accent, #d61f26);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
}

.legal-toc a:hover { text-decoration: underline; }

/* Articles */
.legal-article {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border, #e6eaf0);
}

.legal-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-article h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #14161a);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-art-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: var(--accent, #d61f26);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-article p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted, #5b6472);
  margin-bottom: 12px;
}

.legal-article p:last-child { margin-bottom: 0; }

.legal-article ul,
.legal-article ol {
  margin: 10px 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-article li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted, #5b6472);
}

.legal-article strong { color: var(--text, #14161a); font-weight: 700; }

.legal-article a {
  color: var(--accent, #d61f26);
  text-decoration: none;
  font-weight: 600;
}

.legal-article a:hover { text-decoration: underline; }

/* Highlighted note box */
.legal-highlight {
  background: rgba(214,31,38,.05);
  border: 1px solid rgba(214,31,38,.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.legal-highlight p {
  margin: 0 !important;
  font-size: 14px !important;
  color: var(--text, #14161a) !important;
}

/* Rights grid */
.legal-rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.legal-right {
  background: var(--surface, #f8f9fc);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 12px;
  padding: 14px 16px;
}

.legal-right strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #14161a);
  margin-bottom: 4px;
}

.legal-right p {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Cancellation / data table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}

.legal-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface, #f8f9fc);
  border: 1px solid var(--border, #e6eaf0);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text, #14161a);
}

.legal-table td {
  padding: 10px 14px;
  border: 1px solid var(--border, #e6eaf0);
  color: var(--muted, #5b6472);
  line-height: 1.5;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-rights-grid { grid-template-columns: 1fr; }

  .legal-table th,
  .legal-table td { padding: 8px 10px; font-size: 13px; }
}
