/* ==========================================================================
   legal.css — FFENL juridische pagina's (cookiebeleid, privacyverklaring …)
   Geladen via functions.php wanneer page-templates/legal.php actief is.
   ========================================================================== */

/* WordPress "Voorgestelde tekst" — alleen het label verbergen, de alinea zelf blijft zichtbaar */
.privacy-policy-tutorial { display: none !important; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.lg-hero {
  background-color: #2f5048;
  position: relative;
  padding: clamp(6rem, 5rem + 4vw, 9rem) 0 0;
  border: none;
  margin: 0;
}

/* Dot-pattern overlay */
.lg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(184, 200, 160, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  clip-path: inset(0);
}

.lg-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem) 4rem;
}

/* Eyebrow — extends .hp-eyebrow with on-dark overrides */
.lg-eyebrow {
  color: #b8c8a0;
  border-color: rgba(184, 200, 160, 0.3);
}

.lg-hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: #f2e4cf;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.lg-hero__meta {
  font-size: var(--fs-sm);
  color: rgba(184, 200, 160, 0.7);
  margin: 0;
}

/* Wave separator — forest into page background */
.lg-hero__wave {
  width: 100%;
  line-height: 0;
  background-color: #faf8f4;
  border: none;
}

.lg-hero__wave svg {
  display: block;
  width: 100%;
}

/* ── Content section ───────────────────────────────────────────────────── */

.lg-content {
  background-color: var(--clr-bg);
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0 clamp(5rem, 4rem + 5vw, 9rem);
}

.lg-content__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.lg-content__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* ── Table of contents sidebar ─────────────────────────────────────────── */

.lg-toc {
  position: sticky;
  top: 6rem;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: var(--fs-sm);
}

.lg-toc__title {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0 0 0.75rem;
}

.lg-toc__back {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--clr-border);
}

.lg-toc__back a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: var(--fs-xs);
  transition: color 200ms ease;
}

.lg-toc__back a:hover {
  color: var(--clr-primary);
}

.lg-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lg-toc__nav a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: var(--fs-xs);
  line-height: 1.4;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 150ms ease, color 150ms ease;
}

.lg-toc__nav a:hover {
  background: var(--clr-forest-100, #eaf2e0);
  color: var(--clr-primary);
}

/* ── Article typography ─────────────────────────────────────────────────── */
/* All content generated by Complianz lives inside .lg-article             */

.lg-article {
  min-width: 0;
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
  line-height: 1.8;
}

/* Headings */
.lg-article h1,
.lg-article h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--clr-text-heading);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}

.lg-article h1 {
  font-size: var(--fs-2xl);
}

.lg-article h2 {
  font-size: var(--fs-xl);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clr-forest-100, #eaf2e0);
}

.lg-article h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-text-heading);
  margin: 2rem 0 0.75rem;
}

.lg-article h4 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-text);
  margin: 1.5rem 0 0.5rem;
}

/* Paragraphs */
.lg-article p {
  margin: 0 0 1.25rem;
  color: var(--clr-text-muted);
}

.lg-article p:first-child {
  margin-top: 0;
}

.lg-article em,
.lg-article i {
  color: var(--clr-text-subtle, #7a8e84);
  font-size: var(--fs-sm);
}

/* Links */
.lg-article a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47, 80, 72, 0.35);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.lg-article a:hover {
  color: var(--clr-primary-hover, #3f7052);
  text-decoration-color: currentColor;
}

/* Lists */
.lg-article ul,
.lg-article ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}

.lg-article li {
  margin-bottom: 0.4rem;
  color: var(--clr-text-muted);
}

.lg-article ul li::marker {
  color: var(--clr-primary);
}

/* Cookie tables from Complianz */
.lg-article table,
.lg-article .cmplz-documents table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lg-article th {
  background-color: var(--clr-primary);
  color: #f2e4cf;
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
}

.lg-article td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
  color: var(--clr-text-muted);
  border-left: none;
  border-right: none;
}

.lg-article tr:last-child td {
  border-bottom: none;
}

.lg-article tr:nth-child(even) td {
  background-color: #faf8f4;
}

.lg-article tr:nth-child(odd) td {
  background-color: #fff;
}

/* Complianz cookie consent buttons within the policy */
.lg-article .cmplz-btn,
.lg-article button.cmplz-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: var(--clr-primary);
  color: #f2e4cf;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease;
}

.lg-article .cmplz-btn:hover {
  background: #3f7052;
}

/* Manage consent section from Complianz */
.lg-article .cmplz-documents {
  margin-top: 2rem;
}

.lg-article .cmplz-manage-consent-container {
  background: var(--clr-forest-100, #eaf2e0);
  border: 1px solid var(--clr-forest-300, #b8c8a0);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Horizontal rule */
.lg-article hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 2rem 0;
}

/* Strong */
.lg-article strong {
  color: var(--clr-text);
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .lg-content__layout {
    grid-template-columns: 1fr;
  }

  .lg-toc {
    position: static;
    order: -1;
  }
}
