/* ===========================================
   Legal Pages — shared styles
   Used by: privacyverklaring, algemene-voorwaarden, cookieverklaring
   =========================================== */

/* Hero section */

.hero-section {
  font-weight: 600;
  text-align: center;
  padding-top: 200px;
}

.hero-section h1,
.hero-section p {
  max-width: 1000px;
  margin: 0 auto 24px;
}

.hero-section p {
  font-size: 20px;
}

.contact-form-section .hero-section {
  text-align: left;
  padding-top: 200px;
  margin-bottom: 40px;
}

.contact-form-section.no-hero-margin .hero-section {
  margin-bottom: 0;
}

.contact-form-section .hero-section h1 {
  text-align: left;
  margin: 0 0 16px 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 1px;
  color: rgba(204, 229, 255, 0.95);
  max-width: 800px;
}

.contact-form-section .hero-section .hero-description {
  text-align: left;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1px;
  margin: 0;
  max-width: 800px;
  color: rgba(204, 229, 255, 0.95);
}

/* Scroll padding for anchor links (AV inhoudsopgave) */
html {
  scroll-padding-top: 115px;
}
@media (min-width: 1024px) {
  html {
    scroll-padding-top: 165px;
  }
}

/* Base container */
.legal-content {
  max-width: 55%;
}

/* Typography */
.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: rgba(204, 229, 255, 0.95);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
  color: rgba(204, 229, 255, 0.85);
}

.legal-content p,
.legal-content address {
  color: rgba(204, 229, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content a {
  color: #00dd8d;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #fff;
}

/* Address blocks */
.legal-content address {
  font-style: normal;
  margin: 16px 0;
  padding: 16px 20px;
  background: rgba(42, 85, 128, 0.2);
  border-radius: 8px;
  border-left: 4px solid #00dd8d;
}

.legal-content address a {
  color: #00dd8d;
}

/* Lists (algemene-voorwaarden) */
.legal-content ol {
  color: rgba(204, 229, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ol li {
  margin-bottom: 8px;
}

.legal-content ol[type="a"] {
  list-style-type: lower-alpha;
}

.legal-content ul {
  color: rgba(204, 229, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  margin-bottom: 4px;
}

/* Table of contents (algemene-voorwaarden) */
.toc-list {
  color: rgba(204, 229, 255, 0.85);
  line-height: 1.7;
}

.toc-list a {
  color: #00dd8d;
  text-decoration: underline;
}

.toc-list a:hover {
  color: #fff;
}

/* Button override (cookieverklaring) */
.legal-content .button-blue {
  margin-top: 24px;
}

/* ===========================================
   Cookie Declaration Table
   =========================================== */
.cookie-declaration-table {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(204, 229, 255, 0.1);
  width: calc(100% / 0.55);
}

.cookie-declaration-table,
.cookie-declaration-table * {
  color: rgba(204, 229, 255, 0.85);
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-default);
  line-height: var(--font-line-height-body-default);
  letter-spacing: var(--font-letter-spacing-body-default);
}

.cookie-declaration-table h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: rgba(204, 229, 255, 0.85);
}

.cookie-declaration-table a {
  color: #00dd8d;
}

.cookie-declaration-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 14, 28, 0.5);
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
}

.cookie-declaration-table th,
.cookie-declaration-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(42, 85, 128, 0.3);
}

.cookie-declaration-table th {
  background: rgba(42, 85, 128, 0.3);
  color: #CCE5FF;
  font-weight: 600;
}

.cookie-declaration-table tr:last-child td {
  border-bottom: none;
}

/* Desktop column widths */
.cookie-declaration-table th:nth-child(1),
.cookie-declaration-table td:nth-child(1) { width: 15%; }
.cookie-declaration-table th:nth-child(2),
.cookie-declaration-table td:nth-child(2) { width: 12%; }
.cookie-declaration-table th:nth-child(3),
.cookie-declaration-table td:nth-child(3) { width: 12%; }
.cookie-declaration-table th:nth-child(4),
.cookie-declaration-table td:nth-child(4) { width: 53%; }
.cookie-declaration-table th:nth-child(5),
.cookie-declaration-table td:nth-child(5) { width: 8%; }

/* ===========================================
   Mobile
   =========================================== */
@media (max-width: 1023px) {
  .hero-section {
    padding-top: 80px;
  }

  .contact-form-section .hero-section {
    padding-top: 32px !important;
    margin-bottom: 24px;
  }

  .legal-content {
    max-width: 100%;
  }

  /* Cookie table → stacked card layout */
  .cookie-declaration-table {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .cookie-declaration-table table,
  .cookie-declaration-table thead,
  .cookie-declaration-table tbody,
  .cookie-declaration-table tr,
  .cookie-declaration-table th,
  .cookie-declaration-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .cookie-declaration-table thead {
    display: none !important;
  }

  .cookie-declaration-table tr {
    background: rgba(0, 14, 28, 0.5);
    border: 1px solid rgba(42, 85, 128, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .cookie-declaration-table td {
    padding: 4px 0 !important;
    border: none !important;
    font-size: 14px;
    word-break: break-word;
  }

  .cookie-declaration-table td:nth-child(1) {
    font-size: 15px;
    color: #CCE5FF;
    margin-bottom: 8px;
  }

  .cookie-declaration-table td:nth-child(1)::before { content: "Cookie: "; }
  .cookie-declaration-table td:nth-child(2)::before { content: "Bewaartermijn: "; }
  .cookie-declaration-table td:nth-child(3)::before { content: "Bedrijf: "; }
  .cookie-declaration-table td:nth-child(4)::before { content: "Beschrijving: "; }
  .cookie-declaration-table td:nth-child(5):not(:empty)::before { content: "Link: "; }

  .cookie-declaration-table td:nth-child(1)::before,
  .cookie-declaration-table td:nth-child(2)::before,
  .cookie-declaration-table td:nth-child(3)::before,
  .cookie-declaration-table td:nth-child(4)::before,
  .cookie-declaration-table td:nth-child(5)::before {
    font-weight: 600;
    color: rgba(204, 229, 255, 0.6);
  }

  .cookie-declaration-table td:nth-child(4) {
    margin-top: 8px;
    line-height: 1.5;
  }

  .cookie-declaration-table td:nth-child(5) {
    margin-top: 8px;
  }
}
