/* ──────────────────────────────────────────────────────────────
   Mentions légales et politique de confidentialité (mentions-legales.html)
   — charte verte Ludilon. S'appuie sur home.css (en-tête, footer, modale) ;
   classes propres à la page préfixées .lg-*.
   ────────────────────────────────────────────────────────────── */

body.lg { background: var(--hp-cream); }

/* overflow-x: clip rogne les feuilles qui débordent sur les côtés */
.lg-main { position: relative; overflow-x: clip; padding: 64px 24px 104px; }
.lg-leaf { position: absolute; width: 190px; pointer-events: none; user-select: none; }
.lg-leaf--left  { top: -30px; left: -70px; transform: rotate(-70deg); }
.lg-leaf--right { bottom: 40px; right: -70px; transform: rotate(100deg) scaleX(-1); }

.lg-wrap { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.lg-h1 {
  text-align: center; color: var(--hp-black);
  font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.15;
  margin-bottom: 14px;
}
.lg-updated { text-align: center; color: var(--hp-body); font-weight: 600; font-size: 0.95rem; }

/* Sommaire : trois pastilles vers les ancres */
.lg-toc {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; margin: 24px 0 40px; padding: 0;
}
.lg-toc a {
  display: inline-block; background: #fff; color: var(--hp-green);
  border: 1.5px solid var(--hp-mint-strong); border-radius: 999px;
  padding: 7px 16px; font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: background 0.15s;
}
.lg-toc a:hover { background: var(--hp-mint-soft); }

.lg-card { background: #fff; border-radius: 24px; padding: 44px 48px; margin-bottom: 28px; }
/* L'en-tête collant ne doit pas masquer le titre visé par une ancre */
.lg-card[id] { scroll-margin-top: 150px; }

.lg-card h2 {
  color: var(--hp-green);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.2;
  margin-bottom: 20px;
}
.lg-card h3 {
  color: var(--hp-black);
  font-size: 1.15rem; font-weight: 700; line-height: 1.3;
  margin: 32px 0 10px;
}
.lg-card p, .lg-card li { font-size: 1rem; line-height: 1.65; color: var(--hp-ink); }
.lg-card p + p { margin-top: 12px; }
.lg-card ul { margin: 10px 0 0; padding-left: 22px; }
.lg-card li + li { margin-top: 6px; }
.lg-card li::marker { color: var(--hp-green); }
.lg-card a { color: var(--hp-green); font-weight: 600; text-underline-offset: 3px; }
.lg-card strong { font-weight: 700; }

/* Encadré « En bref » / mise en avant */
.lg-note {
  background: var(--hp-mint-soft); border-left: 4px solid var(--hp-green);
  border-radius: 12px; padding: 16px 20px; margin-top: 16px;
}

/* Tableaux : défilement horizontal sur mobile plutôt que débordement */
.lg-table-wrap { overflow-x: auto; margin-top: 14px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.lg-table th {
  background: var(--hp-mint); color: var(--hp-green);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; text-align: left;
  padding: 10px 14px;
}
.lg-table th:first-child { border-top-left-radius: 10px; }
.lg-table th:last-child { border-top-right-radius: 10px; }
.lg-table td { padding: 10px 14px; border-bottom: 1px solid var(--hp-line); vertical-align: top; color: var(--hp-ink); }
.lg-table td:first-child { font-weight: 700; }

@media (max-width: 760px) {
  .lg-main { padding: 40px 16px 72px; }
  .lg-card { padding: 28px 22px; border-radius: 20px; }
  .lg-table { min-width: 520px; }
  .lg-leaf { width: 120px; }
}
