.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(191, 204, 224, 0.5);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav a {
  color: #5b6884;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Taal: dropdown met vlaggen (<details>) */
.locale-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.locale-switcher__details {
  position: relative;
}

.locale-switcher__details:not([open]) > .locale-switcher__panel {
  display: none;
}

.locale-switcher__details[open] > .locale-switcher__panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.locale-switcher__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(184, 194, 217, 0.85);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.locale-switcher__summary::-webkit-details-marker {
  display: none;
}

.locale-switcher__summary::marker {
  content: '';
}

.locale-switcher__details:hover .locale-switcher__summary,
.locale-switcher__details[open] .locale-switcher__summary {
  background: rgba(15, 29, 57, 0.05);
  border-color: #94a3b8;
  color: var(--text);
}

.locale-switcher__flag {
  display: flex;
  align-items: center;
  line-height: 0;
}

.locale-switcher__svg-flag {
  display: block;
  width: 24px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.locale-switcher__code {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.locale-switcher__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  opacity: 0.55;
}

.locale-switcher__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 11.5rem;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(191, 204, 224, 0.9);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 29, 57, 0.12);
  z-index: 1200;
}

.locale-switcher__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.locale-switcher__opt:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.locale-switcher__opt--current {
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary);
  pointer-events: none;
}

.locale-switcher__opt-flag {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.locale-switcher__opt-flag .locale-switcher__svg-flag {
  width: 22px;
  height: 15px;
}

.locale-switcher__opt-name {
  font-size: 0.9rem;
}

.locale-switcher--mobile {
  justify-content: center;
  padding: 12px 0 4px;
  font-size: 1rem;
}

.locale-switcher--mobile .locale-switcher__panel {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.mobile-menu-locale {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.login-link {
  font-weight: 600;
  color: #0f1d39;
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: 0.2s ease;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(247, 249, 252, 0.98);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  width: 100%;
  height: 100%;
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-links a {
  font-size: 1.1rem;
  color: var(--text);
  padding: 14px 0;
}

.mobile-menu-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.mobile-menu-actions .btn {
  width: 100%;
  min-height: 48px;
}

.mobile-login-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.mobile-start-btn {
  background: var(--primary);
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

/* HERO */
.hero {
  padding: 70px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero-media {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 640px;
  height: 100%;
  background: linear-gradient(145deg, #dfe6ef, #bac7d8);
  display: flex;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  object-position: center;
}

/* FOOTER */
.site-footer {
  background: #0e1e3f;
  color: #fff;
  padding: 66px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr .7fr;
  gap: 40px;
  margin-bottom: 46px;
}

.footer-logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-text {
  max-width: 420px;
  color: rgba(255,255,255,.84);
  font-size: 1.05rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.82);
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  color: rgba(255,255,255,.72);
}

/* =========================
   LEGAL PAGES
========================= */
.legal-page {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef4f9 100%);
  min-height: 100vh;
}

.legal-hero {
  padding: 78px 0 34px;
  text-align:center;
}

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

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.08);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  color: #102348;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-hero p {
  /* max-width: 760px; */
  font-size: 1.08rem;
  line-height: 1.8;
  color: #5f6f89;
}

.legal-section {
  padding: 8px 0 90px;
}

.legal-card {
  background: #fff;
  border: 1px solid rgba(16, 35, 72, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  padding: 40px 42px;
}

.legal-block + .legal-block {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid #edf2f7;
}

.legal-block h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  color: #102348;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-block h3 {
  font-size: 1.05rem;
  color: #102348;
  margin-bottom: 8px;
  font-weight: 700;
}

.legal-block p,
.legal-block li {
  color: #5d6b82;
  font-size: 1rem;
  line-height: 1.85;
}

.legal-block ul {
  margin-top: 12px;
  padding-left: 20px;
}

.legal-intro-text {
  margin-bottom: 18px;
}

.legal-mini-card {
  background: #f8fbff;
  border: 1px solid #e7eef8;
  border-radius: 18px;
  padding: 18px 20px;
}

.legal-mini-card + .legal-mini-card {
  margin-top: 14px;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  background: #fff;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.legal-table thead th {
  background: #f7faff;
  color: #102348;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #e8eef6;
}

.legal-table tbody td {
  padding: 16px 18px;
  color: #5d6b82;
  font-size: 0.96rem;
  border-bottom: 1px solid #eef3f8;
  vertical-align: top;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-block a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 991px) {
  .legal-hero {
    padding: 64px 0 26px;
  }

  .legal-card {
    padding: 30px 26px;
    border-radius: 22px;
  }

  .legal-block h2 {
    font-size: 1.32rem;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 52px 0 20px;
  }

  .legal-hero p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .legal-block + .legal-block {
    margin-top: 26px;
    padding-top: 26px;
  }

  .legal-block h2 {
    font-size: 1.18rem;
    margin-bottom: 10px;
  }

  .legal-block p,
  .legal-block li {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .legal-mini-card {
    padding: 16px;
    border-radius: 14px;
  }
}