/* =============================================================
   VOEP — Legal Documents Stylesheet (PARCHMENT / LIGHT)
   Used by: page-terms.php, page-returns.php, page-privacy.php,
            page-legal-notice.php, page-cookies.php
   Design tokens are defined in voep.css (do not redefine here).
   Light reading surface (parchment bg, ink text) to match the
   cart / checkout "stay light" convention. Brand accents:
   rust + brass-dim on light.
   ============================================================= */

.voep-legal-page,
.voep-legal-page *,
.voep-legal-page *::before,
.voep-legal-page *::after {
  box-sizing: border-box;
}

.voep-legal-page {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.voep-legal-page a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 57, 15, .30);
  transition: color .15s ease, border-color .15s ease;
}
.voep-legal-page a:hover {
  color: var(--rust-dim);
  border-bottom-color: var(--rust);
}

/* ---------- Eyebrow (matches About page pattern) ---------- */
.voep-legal-page .voep-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-dim);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.voep-legal-page .voep-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brass-dim);
  display: inline-block;
}

/* ---------- Hero band ---------- */
.voep-legal-hero {
  background: var(--parchment);
  border-bottom: 1px solid rgba(184, 137, 42, .28);
  padding: clamp(60px, 9vw, 110px) var(--gutter) clamp(40px, 6vw, 70px);
}
.voep-legal-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.voep-legal-hero h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 24px 0 16px;
}
.voep-legal-hero h1 em {
  font-style: normal;
  color: var(--rust);
}
.voep-legal-hero .voep-legal-subtitle {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--steel);
  margin: 0;
  max-width: 620px;
}

/* ---------- Language toggle ---------- */
.voep-legal-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;      /* hug content — override any inherited full width */
  max-width: 100%;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  padding: 6px;
  background: rgba(184, 137, 42, .08);
}
.voep-legal-toggle button {
  flex: 0 0 auto;          /* reset Flatsome's global button flex/stretch */
  width: auto;             /* reset Flatsome's button width:100% */
  margin: 0;               /* reset Flatsome's button margin */
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--steel);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .22em;
  text-indent: .22em; /* offset trailing letter-spacing so caps sit centered */
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.voep-legal-toggle button:hover {
  color: var(--ink);
}
.voep-legal-toggle button.is-active {
  background: var(--ink);
  color: var(--parchment);
}

/* ---------- Body container ---------- */
.voep-legal-body {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 9vw, 120px);
}
.voep-legal-body-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Hide / show by language */
.voep-legal-lang {
  display: none;
}
.voep-legal-lang.is-visible {
  display: block;
}

/* ---------- Meta line (last updated) ---------- */
.voep-legal-meta {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-dim);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 137, 42, .28);
  margin-bottom: 32px;
}

/* ---------- TL;DR summary box ---------- */
.voep-legal-tldr {
  background: var(--white);
  border-left: 3px solid var(--rust);
  padding: 24px 28px;
  margin: 0 0 48px;
}
.voep-legal-tldr h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--ink);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.voep-legal-tldr ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}
.voep-legal-tldr li {
  margin: 6px 0;
}

/* ---------- Section headings ---------- */
.voep-legal-body h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 56px 0 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 137, 42, .24);
}
.voep-legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.voep-legal-body h3 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 32px 0 10px;
  letter-spacing: 0;
  text-transform: none;
}
.voep-legal-body h4 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--steel);
  margin: 24px 0 8px;
}

/* ---------- Body text ---------- */
.voep-legal-body p {
  margin: 0 0 16px;
  color: var(--ink);
}
.voep-legal-body p.lede {
  font-size: 18px;
  color: var(--steel);
}

/* ---------- Clause lists (decimal outline) ---------- */
.voep-legal-body ol.voep-clauses {
  list-style: none;
  counter-reset: clause;
  padding-left: 0;
  margin: 16px 0 24px;
}
.voep-legal-body ol.voep-clauses > li {
  counter-increment: clause;
  position: relative;
  padding-left: 44px;
  margin: 14px 0;
}
.voep-legal-body ol.voep-clauses > li::before {
  content: counter(clause) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--rust);
  font-weight: 700;
  letter-spacing: .04em;
}
.voep-legal-body ol.voep-clauses ol {
  list-style: none;
  counter-reset: subclause;
  padding-left: 0;
  margin: 8px 0 0;
}
.voep-legal-body ol.voep-clauses ol > li {
  counter-increment: subclause;
  position: relative;
  padding-left: 44px;
  margin: 8px 0;
}
.voep-legal-body ol.voep-clauses ol > li::before {
  content: counter(clause) "." counter(subclause);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--brass-dim);
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- Plain bullet lists ---------- */
.voep-legal-body ul {
  margin: 12px 0 20px;
  padding-left: 22px;
}
.voep-legal-body ul li {
  margin: 6px 0;
  color: var(--ink);
}
.voep-legal-body ul li::marker {
  color: var(--brass-dim);
}

/* ---------- Definition list (identity blocks) ---------- */
.voep-legal-body dl.voep-identity {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
  margin: 16px 0 28px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid rgba(184, 137, 42, .28);
}
@media (min-width: 600px) {
  .voep-legal-body dl.voep-identity {
    grid-template-columns: 200px 1fr;
  }
}
.voep-legal-body dl.voep-identity dt {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-dim);
  align-self: center;
}
.voep-legal-body dl.voep-identity dd {
  margin: 0;
  color: var(--ink);
}

/* ---------- Call-out / warning box ---------- */
.voep-legal-callout {
  background: rgba(192, 57, 15, .07);
  border-left: 3px solid var(--rust);
  padding: 18px 22px;
  margin: 20px 0 24px;
  color: var(--ink-soft);
}
.voep-legal-callout strong {
  color: var(--ink);
}

/* ---------- Withdrawal form block ---------- */
.voep-legal-form-block {
  background: var(--white);
  border: 1px solid rgba(184, 137, 42, .28);
  padding: 28px;
  margin: 32px 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

/* ---------- Processor / cookies table ---------- */
.voep-legal-body .voep-table-wrap {
  overflow-x: auto;
  margin: 16px 0 28px;
  border: 1px solid rgba(184, 137, 42, .28);
  background: var(--white);
}
.voep-legal-body table.voep-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.voep-legal-body table.voep-table th,
.voep-legal-body table.voep-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(122, 90, 24, .15);
}
.voep-legal-body table.voep-table th {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-dim);
  background: rgba(184, 137, 42, .07);
  border-bottom: 1px solid rgba(184, 137, 42, .40);
}
.voep-legal-body table.voep-table tr:last-child td {
  border-bottom: 0;
}
.voep-legal-body table.voep-table code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--rust);
}

/* ---------- Footer rule (last updated again) ---------- */
.voep-legal-footnote {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 137, 42, .24);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Print rules ---------- */
@media print {
  .voep-legal-page {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }
  .voep-legal-page a {
    color: #000000;
    border-bottom: 0;
    text-decoration: underline;
  }
  .voep-legal-hero {
    border-bottom: 1px solid #000;
    padding: 24pt 0 16pt;
  }
  .voep-legal-hero h1 {
    color: #000 !important;
    font-size: 22pt;
  }
  .voep-legal-hero h1 em { color: #000 !important; }
  .voep-legal-hero .voep-legal-subtitle { color: #333 !important; }
  .voep-legal-toggle { display: none !important; }

  .voep-legal-body { padding: 16pt 0 0; }
  .voep-legal-body h2 {
    color: #000 !important;
    border-top: 1px solid #999;
    font-size: 15pt;
    margin-top: 24pt;
  }
  .voep-legal-body h3 { color: #000 !important; }
  .voep-legal-body p,
  .voep-legal-body li,
  .voep-legal-body dd { color: #000 !important; }

  /* Force BOTH languages visible when printing */
  .voep-legal-lang { display: block !important; }
  .voep-legal-lang + .voep-legal-lang {
    margin-top: 32pt;
    padding-top: 32pt;
    border-top: 2px solid #000;
    page-break-before: always;
  }

  .voep-legal-tldr {
    background: #f5f5f5 !important;
    border-left: 2pt solid #000 !important;
    color: #000 !important;
  }
  .voep-legal-tldr h2 { color: #000 !important; }
  .voep-legal-tldr li { color: #000 !important; }

  .voep-legal-body dl.voep-identity {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
  }
  .voep-legal-body dl.voep-identity dt { color: #000 !important; }

  .voep-legal-callout {
    background: #f5f5f5 !important;
    border-left: 2pt solid #000 !important;
    color: #000 !important;
  }
  .voep-legal-callout strong { color: #000 !important; }

  .voep-legal-form-block {
    background: #f5f5f5 !important;
    border: 1px solid #999 !important;
    color: #000 !important;
  }
  .voep-legal-footnote { color: #555 !important; }

  .voep-legal-body .voep-table-wrap {
    background: #ffffff !important;
    border: 1px solid #999 !important;
  }
  .voep-legal-body table.voep-table th {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-bottom: 1px solid #999 !important;
  }
  .voep-legal-body table.voep-table td,
  .voep-legal-body table.voep-table code {
    color: #000 !important;
  }
}
