/**
 * ge-legal.css — Gallium Estate Premium +++
 * Impressum · Datenschutz · AGB
 * Einheitliches Premium-Design für alle Rechtspages.
 * Enqueue via functions.php: wp_enqueue_style('ge-legal', ...)
 */

/* ════════════════════════════════════════════
   HERO — Legal Pages
════════════════════════════════════════════ */
.ge-legal-hero {
  background: var(--navy, var(--navy));
  padding: clamp(80px, 14vw, 140px) 0 clamp(60px, 8vw, 100px);
  min-height: clamp(580px, 72vh, 820px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,106,.15);
}

.ge-legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(201,168,106,.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 5% 60%, rgba(201,168,106,.04) 0%, transparent 50%);
}

/* Subtle gold line accent top-left */
.ge-legal-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 320px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold, var(--gold)) 0%, transparent 100%);
  opacity: .4;
}

.ge-legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.ge-legal-hero__h1 {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin: 12px 0 16px;
  letter-spacing:0;
}

.ge-legal-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.5);
  font-family: var(--sans, 'Outfit', sans-serif);
  letter-spacing: .01em;
  margin: 0;
}

/* ════════════════════════════════════════════
   HIGHLIGHT STRIP (Datenschutz & AGB)
════════════════════════════════════════════ */
.ge-legal-highlight-strip {
  background: var(--warm, #FAF8F4);
  border-bottom: 1px solid var(--border, #E9E4DB);
  padding: 28px 0;
}

.ge-legal-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: center;
}

.ge-legal-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy, var(--navy));
  font-family: var(--sans, 'Outfit', sans-serif);
}

.ge-legal-highlight svg {
  color: var(--gold-d, var(--gold-d));
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   BODY LAYOUT
════════════════════════════════════════════ */
.ge-legal-body {
  background: var(--warm, #FAF8F4);
  padding: 72px 0 100px;
}

.ge-legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

/* ════════════════════════════════════════════
   SIDEBAR TOC
════════════════════════════════════════════ */
.ge-legal-toc {
  position: sticky;
  top: 100px;
}

.ge-legal-toc__inner {
  background: #fff;
  border: 1px solid var(--border, #E9E4DB);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(10,26,47,.06);
}

.ge-legal-toc__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-d, var(--gold-d));
  font-family: var(--sans, 'Outfit', sans-serif);
  margin-bottom: 16px;
}

.ge-legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ge-legal-toc__link {
  font-size: 13px;
  color: var(--muted, var(--muted));
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--sans, 'Outfit', sans-serif);
  transition: background-color .2s, color .2s, border-color .2s;
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.ge-legal-toc__link:hover {
  color: var(--navy, var(--navy));
  background: var(--warm, #FAF8F4);
  border-left-color: var(--gold, var(--gold));
}

.ge-legal-toc__update {
  font-size: 11px;
  color: var(--muted, var(--muted));
  font-family: var(--sans, 'Outfit', sans-serif);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #E9E4DB);
  letter-spacing: .03em;
}

.ge-legal-toc__contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #E9E4DB);
}

.ge-legal-toc__contact p {
  font-size: 12px;
  color: var(--muted, var(--muted));
  margin-bottom: 8px;
  font-family: var(--sans, 'Outfit', sans-serif);
}

.ge-legal-toc__contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--navy, var(--navy));
  text-decoration: none;
  font-weight: 500;
  font-family: var(--sans, 'Outfit', sans-serif);
  word-break: break-all;
}

.ge-legal-toc__contact-link:hover {
  color: var(--gold-d, var(--gold-d));
}

/* ════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════ */
.ge-legal-content {
  min-width: 0;
}

.ge-legal-section {
  scroll-margin-top: 100px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border, #E9E4DB);
}

.ge-legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ge-legal-section h2 {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy, var(--navy));
  margin-bottom: 20px;
  letter-spacing:0;
  line-height: 1.2;
}

.ge-legal-section h3 {
  font-family: var(--sans, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy, var(--navy));
  margin: 28px 0 12px;
}

.ge-legal-section p {
  font-size: 15px;
  line-height: 1.75;
  color: #3D4451;
  font-family: var(--sans, 'Outfit', sans-serif);
  margin-bottom: 16px;
}

.ge-legal-section p:last-child {
  margin-bottom: 0;
}

.ge-legal-section a {
  color: var(--gold-d, var(--gold-d));
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.ge-legal-section a:hover {
  color: var(--navy, var(--navy));
}

/* ════════════════════════════════════════════
   CARDS
════════════════════════════════════════════ */
.ge-legal-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border, #E9E4DB);
  border-left: 4px solid var(--gold, var(--gold));
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #3D4451;
  font-family: var(--sans, 'Outfit', sans-serif);
  box-shadow: 0 2px 12px rgba(10,26,47,.05);
}

.ge-legal-card--secondary {
  border-left-color: var(--navy, var(--navy));
  background: var(--warm, #FAF8F4);
}

.ge-legal-card--neutral {
  border-left-color: var(--muted, var(--muted));
  background: var(--warm2, #F2EDE4);
}

.ge-legal-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--warm, #FAF8F4);
  border: 1px solid var(--border, #E9E4DB);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy, var(--navy));
  margin-top: 2px;
}

.ge-legal-card a {
  color: var(--gold-d, var(--gold-d));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ge-legal-card strong {
  color: var(--navy, var(--navy));
}

/* ════════════════════════════════════════════
   LIST
════════════════════════════════════════════ */
.ge-legal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ge-legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: #3D4451;
  font-family: var(--sans, 'Outfit', sans-serif);
  padding-left: 4px;
}

.ge-legal-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, var(--gold));
  margin-top: 9px;
}

/* ════════════════════════════════════════════
   TABLE (Cookies)
════════════════════════════════════════════ */
.ge-legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid var(--border, #E9E4DB);
  box-shadow: 0 2px 12px rgba(10,26,47,.05);
}

.ge-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans, 'Outfit', sans-serif);
  font-size: 14px;
}

.ge-legal-table thead {
  background: var(--navy, var(--navy));
  color: #fff;
}

.ge-legal-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ge-legal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, #E9E4DB);
  color: #3D4451;
  line-height: 1.6;
  vertical-align: top;
  background: #fff;
}

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

.ge-legal-table tbody tr:nth-child(even) td {
  background: var(--warm, #FAF8F4);
}

/* ════════════════════════════════════════════
   RIGHTS GRID (DSGVO Rechte)
════════════════════════════════════════════ */
.ge-legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.ge-legal-right {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border, #E9E4DB);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(10,26,47,.04);
}

.ge-legal-right__icon {
  flex-shrink: 0;
  background: var(--navy, var(--navy));
  color: var(--gold, var(--gold));
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans, 'Outfit', sans-serif);
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  margin-top: 2px;
}

.ge-legal-right__text {
  font-size: 14px;
  line-height: 1.6;
  color: #3D4451;
  font-family: var(--sans, 'Outfit', sans-serif);
}

.ge-legal-right__text strong {
  color: var(--navy, var(--navy));
  display: block;
  margin-bottom: 4px;
}

/* ════════════════════════════════════════════
   CTA-BAND reuse (override for light context)
   These pages use ge-cta-band from ge-page.css
════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ge-legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ge-legal-toc {
    position: static;
  }
  .ge-legal-toc__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }
  .ge-legal-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .ge-legal-toc__link {
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid var(--border, #E9E4DB);
    border-left: 2px solid transparent;
    border-radius: 20px;
  }
  .ge-legal-rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ge-legal-hero {
    padding: 100px 0 60px;
  }
  .ge-legal-hero__h1 {
    font-size: clamp(32px, 9vw, 48px);
  }
  .ge-legal-body {
    padding: 48px 0 72px;
  }
  .ge-legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  .ge-legal-card {
    flex-direction: column;
    gap: 12px;
  }
  .ge-legal-highlights {
    gap: 10px 24px;
  }
  .ge-legal-highlight {
    font-size: 13px;
  }
}

/* ════════════════════════════════════════════
   AGB — Content Components (v75)
════════════════════════════════════════════ */

/* Hinweis-Box (warm background) */
.ge-agb-hint {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--warm, #FAF8F4);
  border-radius: 8px;
  font-size: 14px;
}

/* Checklist ohne Bullets */
.ge-agb-checklist {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}

.ge-agb-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: 14px;
}

.ge-agb-checklist__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Widerrufsbelehrung */
.ge-agb-widerruf {
  padding: 16px;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.15);
  border-radius: 10px;
  margin-bottom: 16px;
}

.ge-agb-widerruf__label {
  font-size: 13px;
  color: #b91c1c;
}

/* Einfache Listenelemente mit Abstand */
.ge-agb-simple-list {
  margin: 12px 0;
  padding-left: 20px;
}

.ge-agb-simple-list li {
  margin-bottom: 8px;
}

/* Fußnote */
.ge-agb-footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted, #6B7280);
  padding: 14px;
  background: var(--warm, #FAF8F4);
  border-radius: 8px;
}

/* CTA-Block am Ende der AGB */
.ge-agb-cta {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, var(--navy, #0A1A2F), var(--navy-m, #0E2040));
  border-radius: 20px;
  text-align: center;
}

.ge-agb-cta__title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 26px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 8px;
}

.ge-agb-cta__text {
  font-size: 14px;
  color: rgba(255,255,255,.4);
  margin-bottom: 24px;
}

.ge-agb-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.ge-agb-cta__btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold, #C9A86A), var(--gold-d, #9A7030));
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}

.ge-agb-cta__btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(201,168,106,.3);
  color: var(--gold-l, #E8D090);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
