/* ════════════════════════════════════════════════════════════════
   DECISIO.BE — legal.css
   Styles pour les pages légales : confidentialité, conditions,
   cookies, mentions légales.
   ════════════════════════════════════════════════════════════════ */

/* ─── 1. SECTION PRINCIPALE ─────────────────────────────────── */
.legal-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px;
}

/* ─── 2. META (date / version) ──────────────────────────────── */
.legal-meta {
  background: var(--cream);
  border: 1.5px solid var(--black);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-meta strong { color: var(--black); }

/* ─── 3. TL;DR (résumé en haut) ─────────────────────────────── */
.legal-tldr {
  background: var(--black);
  color: white;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.legal-tldr-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-tldr ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-tldr li {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 10px;
  padding: 0;
}
.legal-tldr li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── 4. TITRES & TEXTE ─────────────────────────────────────── */
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}
.legal-section h2:first-of-type { margin-top: 0; }
.legal-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 14px;
}

/* ─── 5. LISTES ─────────────────────────────────────────────── */
.legal-section ul {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
}
.legal-section ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}
.legal-section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── 6. LIENS ──────────────────────────────────────────────── */
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: #c73d24; }

/* ─── 7. CALLOUT (encadré important) ────────────────────────── */
.legal-callout {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
}
.legal-callout strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.legal-callout p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ─── 8. TABLE DES MATIÈRES ─────────────────────────────────── */
.legal-toc {
  background: white;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 48px;
}
.legal-toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: toc;
}
.legal-toc ol li {
  counter-increment: toc;
  font-size: 15px;
  padding: 0;
}
.legal-toc ol li::before {
  content: counter(toc) ". ";
  color: var(--muted);
  font-weight: 600;
}
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* ─── 9. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-section { padding: 48px 24px; }
  .legal-tldr { padding: 24px; }
  .legal-section h2 { font-size: 22px; }
}
@media (max-width: 560px) {
  .legal-section { padding: 36px 20px; }
  .legal-tldr { padding: 20px; }
  .legal-meta { gap: 12px; padding: 14px 16px; }
}
