/**
 * legal.css — styles partagés pour Mentions légales, CGV et Confidentialité.
 * Réutilise les conventions de la charte (couleurs, typo) en mode lecture longue.
 */

:root {
  --ink: #040253;
  --blue: #0a0bf5;
  --green: #00B67A;
  --orange: #F5A623;
  --muted: #6B6F8A;
  --text: #1F2236;
  --border: #E5E7EE;
  --snow: #F4F6FB;
  --max-w: 1180px;
  --max-w-text: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { -webkit-font-smoothing: antialiased }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--text); background: #fff;
}
a { color: var(--blue); text-decoration: none; font-weight: 600 }
a:hover { text-decoration: underline }

/* ─── Trust bar + Nav (réutilisables) ─── */
.trust-top-bar { background: var(--ink); padding: 10px 28px }
.ttb-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.7) }
.ttb { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit }
.ttb b { color: #fff; font-weight: 700 }
.ttb-tp-pill { background: #00B67A; width: 18px; height: 18px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 900 }

.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100 }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none }
.nav-logo-name { font-size: 16px; font-weight: 700; color: var(--ink) }
.nav-logo-name b { color: var(--blue) }
.nav-logo-by { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); margin-top: 2px }
.nav-logo-by img { height: 8px; width: auto; opacity: .7 }
.nav-links { display: flex; gap: 22px; align-items: center }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 500 }
.nav-cta { display: inline-flex; background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap }
.nav-cta:hover { opacity: .88; color: #fff; text-decoration: none }

/* ─── Header de page légale ─── */
.legal-head {
  padding: 60px 28px 30px;
  background: linear-gradient(180deg, var(--snow) 0%, #fff 100%);
}
.legal-head-inner { max-width: var(--max-w-text); margin: 0 auto }
.legal-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--blue); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-h1 {
  font-size: clamp(28px, 4vw, 38px); font-weight: 700;
  color: var(--ink); letter-spacing: -1px; line-height: 1.2;
  margin-bottom: 14px;
}
.legal-sub {
  font-size: 16px; color: var(--muted); line-height: 1.6;
}
.legal-meta {
  font-size: 13px; color: var(--muted);
  padding-top: 22px; margin-top: 22px;
  border-top: 1px solid var(--border);
}

/* ─── Body de page légale ─── */
.legal-body {
  max-width: var(--max-w-text); margin: 0 auto;
  padding: 36px 28px 60px;
}
.legal-body h2 {
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: -.4px; line-height: 1.3;
  margin: 36px 0 12px;
  padding-top: 12px;
}
.legal-body h3 {
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin: 24px 0 10px;
}
.legal-body p { margin-bottom: 16px; color: var(--text) }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 18px }
.legal-body li { margin-bottom: 8px }
.legal-body strong { color: var(--ink); font-weight: 700 }

/* ─── Bloc placeholder (À REMPLACER) — surligné jaune fluo ─── */
.legal-placeholder {
  display: inline-block;
  background: linear-gradient(135deg, #FFF59D, #FFEB3B);
  color: #5C4500; font-weight: 600;
  padding: 1px 8px; border-radius: 3px;
  font-size: 13px; letter-spacing: .2px;
  border: 1px dashed #FBC02D;
}

/* ─── Sommaire (TOC) ─── */
.legal-toc {
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 0 28px;
}
.legal-toc h3 {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.legal-toc ol {
  padding-left: 20px;
  margin: 0;
}
.legal-toc li {
  font-size: 14px;
  margin-bottom: 6px;
}
.legal-toc a { color: var(--text); font-weight: 500 }
.legal-toc a:hover { color: var(--blue) }

/* ─── Tableau d'info structuré (mentions légales, RGPD) ─── */
.legal-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 18px 0 24px;
  font-size: 14px;
}
.legal-table-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}
.legal-table-row:last-child { border-bottom: none }
.legal-table-key {
  background: var(--snow);
  padding: 14px 18px;
  font-weight: 600; color: var(--ink);
  font-size: 13px;
}
.legal-table-val {
  padding: 14px 18px;
}

/* ─── Encart info ─── */
.legal-info {
  background: rgba(10,11,245,.05);
  border: 1px solid rgba(10,11,245,.15);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.legal-info::before { content: 'ℹ'; color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1.1 }

/* ─── Footer (réutilisable) ─── */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 48px 28px 24px }
.footer-inner { max-width: var(--max-w); margin: 0 auto }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08) }
.footer h4 { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px }
.footer-links { display: flex; flex-direction: column; gap: 10px }
.footer-links a { color: rgba(255,255,255,.55); font-size: 13px; transition: color .15s; font-weight: 400 }
.footer-links a:hover { color: #fff; text-decoration: none }
.footer-brand-name { font-size: 16px; font-weight: 700; color: #fff }
.footer-brand-name b { color: #8182FF }
.footer-by { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 12px }
.footer-desc { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); max-width: 280px }
.footer-bottom { padding: 20px 0 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,.45) }
.footer-bottom a { color: rgba(255,255,255,.55); font-weight: 400 }

@media (max-width: 700px) {
  .legal-table-row { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr }
}
