/* ============================================================
   PAGES LÉGALES — Mentions légales & Politique de confidentialité
   La Charrue Orbe — chargé sur is_page('mentions-legales') et
   is_page('politiques-de-confidentialite')
   ============================================================ */

/* Neutralise les contraintes de largeur du wrapper WP */
.entry-content > .wp-block-html {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.legal-hero {
  background: var(--color-primary);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,152,91,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(201,152,91,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.legal-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  opacity: 0.9;
}
.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--color-background);
  line-height: 1.1;
  margin: 0 auto 24px;
  max-width: 700px;
}
.legal-hero-fleuron {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--color-accent);
  opacity: 0.6;
  max-width: 200px;
  margin: 0 auto;
}
.legal-hero-fleuron::before,
.legal-hero-fleuron::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
}
.legal-hero-fleuron svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================
   CONTENU
   ============================================================ */
.legal-body {
  background: var(--color-background);
  padding: 72px 24px 80px;
}
.legal-container {
  max-width: 720px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--color-border);
}
.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.legal-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 28px 0 8px;
  font-style: italic;
}

.legal-section p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 12px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 50%, transparent);
  transition: text-decoration-color 0.2s;
}
.legal-section a:hover {
  text-decoration-color: var(--color-accent);
  opacity: 1;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin: 0 0 12px;
}
.legal-section li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* Complianz-generated content */
.legal-section .cmplz-document h2 { font-size: 1.2rem; }
.legal-section .cmplz-document p { font-size: 15px; line-height: 1.75; }
.legal-section .cmplz-document table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}
.legal-section .cmplz-document th,
.legal-section .cmplz-document td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--color-border);
}
.legal-section .cmplz-document th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-primary);
}

/* ============================================================
   RETOUR À L'ACCUEIL
   ============================================================ */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.legal-back:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .legal-hero { padding: 60px 20px 48px; }
  .legal-body { padding: 48px 20px 60px; }
  .legal-section { margin-bottom: 36px; padding-bottom: 36px; }
}
