/*
  Shared layout & typography for legal pages (privacy, voorwaarden).
  Design goals: high contrast, clear hierarchy, polished feel that matches
  the rest of the site, comfortable mobile reading.
*/

:root {
  --legal-bg: #f6efe2;
  --legal-bg-soft: #fffaf0;
  --legal-bg-card: #ffffff;
  --legal-ink: #14110a;
  --legal-ink-strong: #0c0a06;
  --legal-ink-soft: #3b2f1a;
  --legal-ink-meta: #5e4d31;
  --legal-line: #d9bf89;
  --legal-line-soft: #e7d7ba;
  --legal-accent: #a8741b;
  --legal-accent-strong: #5e4411;
  --legal-shadow-sm: 0 6px 18px rgba(39, 22, 4, 0.06);
  --legal-shadow-md: 0 18px 44px rgba(39, 22, 4, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.legal-body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 164, 65, 0.18), transparent 42%),
    linear-gradient(180deg, var(--legal-bg) 0%, #efe2ca 60%, #f3e7d3 100%);
  color: var(--legal-ink);
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Site header (matches main site styling tone) -------------------- */

.legal-site-header {
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid var(--legal-line);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.legal-site-header-inner {
  width: min(72rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.legal-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.legal-brand:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.legal-site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.legal-site-nav a {
  color: var(--legal-ink-soft);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.legal-site-nav a:hover {
  color: var(--legal-accent-strong);
}

.legal-site-nav a:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .legal-site-header-inner {
    padding: 0.65rem 0;
  }

  .legal-brand img {
    height: 28px;
  }

  .legal-site-nav {
    gap: 0.8rem;
    font-size: 0.88rem;
  }
}

/* ----- Page shell ------------------------------------------------------ */

.legal-shell {
  width: min(46rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  color: var(--legal-accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.legal-back::before {
  content: "\2190";
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.legal-back:hover {
  color: var(--legal-ink-strong);
}

.legal-back:hover::before {
  transform: translateX(-3px);
}

.legal-back:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ----- Header block ---------------------------------------------------- */

.legal-header {
  border-bottom: 1px solid var(--legal-line);
  padding-bottom: 1.6rem;
  margin-bottom: 2.6rem;
}

.legal-eyebrow {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  background: rgba(168, 116, 27, 0.14);
  border: 1px solid rgba(168, 116, 27, 0.32);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--legal-accent-strong);
  margin-bottom: 1rem;
}

.legal-title {
  margin: 0 0 0.85rem;
  color: var(--legal-ink-strong);
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.legal-updated {
  margin: 0;
  color: var(--legal-ink-meta);
  font-size: 0.94rem;
  font-weight: 600;
}

/* ----- Content sections ------------------------------------------------ */

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.legal-section {
  scroll-margin-top: 5rem;
}

.legal-section h2 {
  margin: 0 0 1rem;
  color: var(--legal-ink-strong);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
  padding-left: 1.05rem;
}

.legal-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 4px;
  border-radius: 999px;
  background: var(--legal-accent);
}

.legal-section h3 {
  margin: 1.6rem 0 0.6rem;
  color: var(--legal-ink-strong);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal-section p {
  margin: 0 0 1rem;
  color: var(--legal-ink);
}

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

.legal-section ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.4rem;
  color: var(--legal-ink);
}

.legal-section ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.legal-section ul li::marker {
  color: var(--legal-accent);
}

.legal-section a {
  color: var(--legal-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(137, 99, 26, 0.55);
  transition: color 160ms ease, text-decoration-color 160ms ease;
  font-weight: 500;
}

.legal-section a:hover {
  color: var(--legal-ink-strong);
  text-decoration-color: var(--legal-ink-strong);
}

.legal-section a:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.legal-section strong {
  color: var(--legal-ink-strong);
  font-weight: 700;
}

.legal-contact-block {
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--legal-bg-card);
  border: 1px solid var(--legal-line-soft);
  border-radius: 14px;
  box-shadow: var(--legal-shadow-sm);
  line-height: 1.75;
  font-style: normal;
}

.legal-contact-block strong {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--legal-accent-strong);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.legal-contact-block a {
  color: var(--legal-accent-strong);
  font-weight: 600;
}

/* ----- Footer ---------------------------------------------------------- */

.legal-footer {
  border-top: 1px solid var(--legal-line);
  background: rgba(255, 250, 240, 0.65);
  margin-top: 3rem;
  color: var(--legal-ink-soft);
}

.legal-footer-inner {
  width: min(72rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.legal-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  color: var(--legal-ink-meta);
}

.legal-footer-meta a {
  color: var(--legal-accent-strong);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

.legal-footer-meta a:hover {
  color: var(--legal-ink-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer-divider {
  display: none;
}

@media (min-width: 720px) {
  .legal-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 0;
  }

  .legal-footer-divider {
    display: inline-block;
    width: 1px;
    height: 0.85rem;
    background: var(--legal-line);
  }
}

/* ----- Mobile tweaks --------------------------------------------------- */

@media (max-width: 640px) {
  body.legal-body {
    font-size: 16px;
    line-height: 1.7;
  }

  .legal-shell {
    width: min(46rem, calc(100% - 1.8rem));
    padding: 1.8rem 0 2.6rem;
  }

  .legal-header {
    padding-bottom: 1.3rem;
    margin-bottom: 2rem;
  }

  .legal-section h2 {
    font-size: 1.22rem;
    padding-left: 0.85rem;
  }

  .legal-section h2::before {
    width: 3px;
  }

  .legal-content {
    gap: 2rem;
  }

  .legal-contact-block {
    padding: 1.05rem 1.15rem;
  }

  .legal-footer-inner {
    width: min(72rem, calc(100% - 1.8rem));
  }
}
