/*
 * LP-TOOLS LEGAL — v1.2.0
 * Mise en page pour le template "LegalPlace — Page légale".
 * Usage : CGV, mentions légales, politique de confidentialité.
 *
 * Note : !important requis partout — le thème WP force text-transform,
 * font-family, color et font-weight sur h1-h6 et les éléments de texte.
 */

/* ── Hero ── */
.lp-legal-hero {
  background: var(--color-linen-200, #f0ece4) !important;
  padding: 40px 24px 48px !important;
  text-align: center !important;
}

.lp-legal-breadcrumb {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 0.8125rem !important;
  color: var(--color-content-secondary, #6b6b6b) !important;
  margin-bottom: 20px !important;
  font-family: var(--typography-font-family-inter, Inter), sans-serif !important;
  font-weight: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.lp-legal-breadcrumb a {
  color: var(--color-content-secondary, #6b6b6b) !important;
  text-decoration: none !important;
}

.lp-legal-breadcrumb a:hover {
  color: var(--color-content-primary, #1a1a1a) !important;
}

/* Double classe pour gagner en spécificité contre le thème */
.lp-legal-title.lp-legal-title {
  font-family: var(--typography-font-family-es-rebond-grotesque, 'Rebond Grotesque'), sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--color-content-primary, #1a1a1a) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-variant: normal !important;
  font-variant-ligatures: normal !important;
  margin: 0 auto !important;
  max-width: 700px !important;
}

/* ── Contenu ── */
#lp-legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.lp-legal-content {
  font-family: var(--typography-font-family-inter, Inter), sans-serif !important;
  font-size: 0.9375rem !important;
  line-height: 1.7 !important;
  color: var(--color-content-primary, #1a1a1a) !important;
  font-weight: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.lp-legal-content p,
.lp-legal-content li,
.lp-legal-content span {
  color: var(--color-content-primary, #1a1a1a) !important;
  font-family: var(--typography-font-family-inter, Inter), sans-serif !important;
}

.lp-legal-content h2 {
  font-family: var(--typography-font-family-es-rebond-grotesque, 'Rebond Grotesque'), sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 2.5em 0 0.6em !important;
  color: var(--color-content-primary, #1a1a1a) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.lp-legal-content h3 {
  font-family: var(--typography-font-family-es-rebond-grotesque, 'Rebond Grotesque'), sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin: 1.75em 0 0.4em !important;
  color: var(--color-content-primary, #1a1a1a) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.lp-legal-content p {
  margin: 0 0 1em !important;
}

.lp-legal-content ul,
.lp-legal-content ol {
  padding-left: 1.5em !important;
  margin: 0 0 1em !important;
}

.lp-legal-content li {
  margin-bottom: 0.4em !important;
}

.lp-legal-content a {
  color: var(--color-content-accent, #2563eb) !important;
  text-decoration: underline !important;
}

.lp-legal-content strong,
.lp-legal-content b {
  font-weight: 600 !important;
  color: inherit !important;
}

/* ── Date de mise à jour (1er paragraphe) ── */
.lp-legal-content > p:first-child,
.lp-legal-content > p:first-child strong,
.lp-legal-content > p:first-child b {
  font-size: 0.875rem !important;
  color: var(--color-content-secondary, #6b6b6b) !important;
  font-weight: normal !important;
  margin-bottom: 32px !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .lp-legal-hero {
    padding: 28px 16px 36px !important;
  }

  .lp-legal-title.lp-legal-title {
    font-size: 1.5rem !important;
  }

  #lp-legal-page {
    padding: 32px 16px 48px;
  }
}
