/* The legal pages, cookie banner and footer legal row.
 *
 * Theme-original: there is no CSS Module behind this file, because the React
 * build in Work/Website1 has neither a consent banner nor legal pages. It is a
 * separate file for the same reason kennis-news.css is - chrome.css is verified
 * rule-for-rule against SiteFooter.module.css by tools/check-css-all.sh, and
 * anything appended to it fails that check. The footer rules below are
 * therefore written as descendants of .site-footer rather than as edits to it.
 *
 * Loaded on every page (inc/consent.php), because the banner and footer row are.
 */

/* ============================================================
 * Footer legal row
 * ============================================================ */

.site-footer .footer-legal {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}

.site-footer .footer-legal a {
  color: #96a49e;
  text-decoration: none;
}

.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* ============================================================
 * Legal pages
 * ============================================================ */

.legal-page { background: var(--mist); padding-bottom: clamp(4rem, 7vw, 7rem); }

.legal-breadcrumbs {
  align-items: center;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .78rem;
  gap: .55rem;
  margin: 0 auto;
  max-width: 1300px;
  padding: 1.2rem 4.5vw 0;
}

.legal-breadcrumbs a:hover { color: var(--green-deep); }
.legal-breadcrumbs span:last-child { color: var(--ink); font-weight: 650; }

.legal-hero {
  overflow: hidden;
  padding: clamp(2.8rem, 5.5vw, 5.5rem) 4.5vw clamp(4rem, 7vw, 6.5rem);
  position: relative;
}

.legal-hero::after {
  background-image: linear-gradient(rgba(54, 126, 18, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(54, 126, 18, .08) 1px, transparent 1px);
  background-size: 38px 38px;
  content: '';
  height: 17rem;
  mask-image: linear-gradient(90deg, transparent, black);
  position: absolute;
  right: 0;
  top: 1rem;
  width: 42%;
}

.legal-hero-inner {
  align-items: end;
  display: grid;
  gap: 2rem clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .46fr);
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  z-index: 1;
}

.legal-kicker {
  color: var(--green-deep);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  margin: 0 0 .9rem;
  text-transform: uppercase;
}

.legal-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .95;
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-intro {
  border-left: 4px solid var(--green);
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.58;
  margin: 0 0 .35rem;
  padding-left: 1.2rem;
}

.legal-shell {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 15rem minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 4.5vw;
}

.legal-nav {
  background: var(--ink);
  border-radius: .9rem .9rem .9rem 2.2rem;
  box-shadow: 0 1rem 2.4rem rgba(19, 34, 28, .12);
  display: grid;
  padding: .75rem;
  position: sticky;
  top: 1.25rem;
}

.legal-nav-title {
  color: #a8b7b0;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .1em;
  margin: .45rem .55rem .65rem;
  text-transform: uppercase;
}

.legal-nav a {
  border-radius: .55rem;
  color: #d7e0dc;
  font-size: .9rem;
  font-weight: 600;
  padding: .72rem .8rem;
}

.legal-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--paper); }

.legal-nav a[aria-current='page'] {
  background: var(--green);
  color: var(--ink);
}

.legal-nav .legal-settings {
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-radius: 0 0 .55rem .55rem;
  color: #b8c5bf;
  margin-top: .5rem;
  padding-top: .85rem;
}

.legal-document {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 3rem;
  box-shadow: 0 1rem 3rem rgba(19, 34, 28, .07);
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.legal-document > p:first-child {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 560;
  letter-spacing: -.015em;
  line-height: 1.58;
}

.legal-document h2 {
  border-top: 1px solid var(--line);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 570;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 3.2rem 0 1rem;
  padding-top: 2.2rem;
}

.legal-document h3 {
  color: var(--green-deep);
  font-size: 1.1rem;
  font-weight: 680;
  letter-spacing: -.015em;
  margin: 2rem 0 .65rem;
}

.legal-document p,
.legal-document li {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-document p { margin: 0 0 1.15rem; }
.legal-document ul, .legal-document ol { margin: 0 0 1.3rem; padding-left: 1.35rem; }
.legal-document ul { list-style: disc; }
.legal-document ol { list-style: decimal; }
.legal-document li { margin-bottom: .5rem; padding-left: .2rem; }
.legal-document strong { color: var(--ink); font-weight: 680; }
.legal-document em { color: var(--ink); }

.legal-document a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

.legal-document a:hover { color: var(--forest); }
.legal-document .table-scroll { margin: 1.4rem 0 1.8rem; overflow-x: auto; }

.legal-document table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: .92rem;
  min-width: 34rem;
  width: 100%;
}

.legal-document th,
.legal-document td {
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  line-height: 1.5;
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: top;
}

.legal-document th {
  background: var(--green-soft);
  color: var(--ink);
  font-weight: 680;
}

.legal-document th:first-child { border-radius: .6rem 0 0 0; }
.legal-document th:last-child { border-radius: 0 .6rem 0 0; }

.legal-document code {
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: .3rem;
  color: var(--forest);
  font-size: .88em;
  padding: .1rem .32rem;
}

.legal-document > p:last-child {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 .6rem .6rem 0;
  margin: 2.5rem 0 0;
  padding: .85rem 1rem;
}

@media (max-width: 850px) {
  .legal-hero-inner { align-items: start; grid-template-columns: 1fr; }
  .legal-intro { max-width: 34rem; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
  .legal-nav-title { grid-column: 1 / -1; }
  .legal-nav .legal-settings { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .legal-breadcrumbs, .legal-hero, .legal-shell { padding-left: 1rem; padding-right: 1rem; }
  .legal-hero { padding-bottom: 3rem; }
  .legal-hero::after { display: none; }
  .legal-document { border-radius: .8rem .8rem .8rem 2rem; }
}

/* The withdrawal control is one of those links, not a button: without
 * JavaScript it still has somewhere useful to go - the cookieverklaring, which
 * explains how to clear the cookie by hand - so it needs no styling of its own.
 */

/* ============================================================
 * Consent banner
 * ============================================================ */

/* .consent sets display:flex, which would defeat the browser's own
 * [hidden] { display: none }. Without this rule the banner is visible to
 * everyone, always, including people who already answered. */
.consent[hidden] { display: none; }

.consent {
  background: var(--ink);
  border-radius: var(--radius);
  bottom: 1rem;
  box-shadow: 0 1.4rem 3rem rgba(19, 34, 28, .34);
  color: var(--paper);
  display: flex;
  left: auto;
  max-width: 44rem;
  position: fixed;
  right: 1rem;
  width: calc(100% - 2rem);
  z-index: 60;
}

.consent-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}

.consent-title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -.02em;
  margin: 0 0 .45rem;
}

/* The heading takes focus when the footer link reopens the banner, so it needs
 * a focus ring - but only then, never from a mouse click. */
.consent-title:focus { outline: none; }
.consent-title:focus-visible { outline: 2px solid var(--lime); outline-offset: .3rem; }

.consent-body {
  color: #c3cec8;
  font-size: .88rem;
  line-height: 1.6;
  margin: 0;
}

.consent-body a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.consent-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .6rem;
  color: var(--paper);
  cursor: pointer;
  flex: 1 1 auto;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: .62rem 1.1rem;
  white-space: nowrap;
}

.consent-button:hover { border-color: rgba(255, 255, 255, .55); }

.consent-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: .18rem;
}

/* "Alles accepteren" is the only filled button. The other two are equally
 * reachable, the same size and in the same row - the three are one choice, and
 * a rejected visitor should not have to hunt for the plain-looking option. */
.consent-button--all {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.consent-button--all:hover { background: var(--lime); border-color: var(--lime); }

@media (max-width: 30rem) {
  .consent-actions { flex-direction: column; }
  .consent-button { width: 100%; }
}
