/* ==========================================================================
   Legal-pagina's (voorwaarden, privacy) + cookiemelding
   ========================================================================== */

/* --- Slanke header voor losse pagina's --- */
.subheader {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.subheader__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 76px;
}

.subheader__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

.subheader__back:hover {
  color: var(--blue);
}

/* --- Leesbare tekstkolom --- */
.legal {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-block: var(--space-2xl) var(--space-xl);
}

.legal__meta {
  color: var(--text-faint);
  font-size: var(--step--1);
  margin-bottom: var(--space-lg);
}

.legal h1 {
  font-size: var(--step-3);
  margin-bottom: var(--space-sm);
}

/* Legal leest prettiger in gewone schrijfwijze dan in kapitalen */
.legal h1,
.legal h2,
.legal h3 {
  text-transform: none;
  letter-spacing: -0.01em;
}

.legal h2 {
  font-size: var(--step-1);
  color: var(--text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal h3 {
  font-size: var(--step-0);
  color: var(--text);
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xs);
}

.legal p,
.legal li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal p {
  margin-bottom: var(--space-sm);
}

.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: var(--space-sm);
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--blue-bright);
}

.legal__note {
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--yellow);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
}

/* --- Cookiemelding --- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  width: min(620px, calc(100% - 2 * var(--space-md)));
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.cookie.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie__text {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.55;
}

.cookie__text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie__actions {
  flex: none;
}

.cookie__btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  background: var(--blue);
  color: #fff;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.cookie__btn:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--space-xs);
  }
}

/* --- Juridische links in de footer --- */
.footer__legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal a:hover {
  color: var(--blue);
}
