/* ============================================================
   public/legal.css
   CSS des pages legales, extrait VERBATIM du bloc <style> inline
   de dpa.html (l.15-89). Presentation pure : aucune regle modifiee.
   Base commune cgu / cgv / dpa (bloc <style> a hash CSP identique) ;
   section « Lot 4b » en bas = harmonisation pour privacy (tables, h3,
   .warn, code, liens verts) + classes de refactor des style= inline.
   Servi en CSS EXTERNE (style-src 'self') -> aucun hash CSP, ajouts libres.
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f4f0;
    color: #1a2e1a;
    line-height: 1.7;
}
header {
    background: #1a3a1a;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    width: 36px; height: 36px;
    background: #2d7a2d;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: 16px;
}
header span { color: #fff; font-weight: 700; font-size: 18px; }
header a {
    margin-left: auto;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 13px;
}
header a:hover { color: #fff; }

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px 60px;
}
h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a2e1a;
}
.update {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 40px;
}
h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a1a;
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d1fae5;
}
p { margin-bottom: 12px; font-size: 0.95rem; color: #374151; }
ul { margin: 8px 0 12px 20px; }
li { margin-bottom: 6px; font-size: 0.95rem; color: #374151; }
strong { color: #1a2e1a; }
.highlight {
    background: #f0f7ed;
    border-left: 4px solid #2d7a2d;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 0.9rem;
}
.back-top {
    display: inline-block;
    margin-top: 40px;
    color: #2d7a2d;
    text-decoration: none;
    font-size: 13px;
}

/* ============================================================
   LOT 4b (2026-07-18) — harmonisation pour privacy + refactor des
   style= inline (cgu/privacy) vers des classes. Regles reprises
   VERBATIM du bloc <style> de privacy.html. Decisions actees :
   code + a{} generique s'appliquent AUSSI a cgu/cgv/dpa (harmonisation
   assumee) ; privacy s'aligne sur h2 = 1.1rem (valeur de ce fichier).
   ============================================================ */

/* Liens du corps en vert (les 4 pages). header a / .back-top restent PLUS
   specifiques -> non affectes (header en blanc, back-top en vert). */
a { color: #2d7a2d; }

/* Titres de niveau 3 (privacy : 11 ; absents de cgu/cgv/dpa). */
h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d7a2d;
    margin: 22px 0 8px;
}

/* Code inline (privacy 23, dpa 2 -> harmonisation assumee : fond vert). */
code {
    background: #f0f7ed;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #1a3a1a;
}

/* Encadre d'avertissement ambre (privacy) -- coexiste avec .highlight (vert). */
.warn {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 14px 0;
    font-size: 0.88rem;
    color: #78350f;
}

/* Tableaux (privacy uniquement -- 0 table sur cgu/cgv/dpa). */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 0.88rem;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    overflow: hidden;
}
th {
    background: #ecfdf5;
    color: #1a3a1a;
    text-align: left;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 0.82rem;
    border-bottom: 1px solid #d1fae5;
}
td {
    padding: 9px 12px;
    border-bottom: 1px solid #ecfdf5;
    color: #374151;
    vertical-align: top;
}
tr:last-child td { border-bottom: none; }

/* --- Classes de normalisation des style= inline (refactor fragments cgu/privacy,
   etape 3). Prefixe legal- = pas de collision. Decision Lot 4b : SEULEMENT 3
   classes ; tout le reste des style= est SUPPRIME (rendu par defaut assume,
   inverse de l'iso-rendu). Notamment : plus de largeur figee sur les <th>
   (tables en layout auto), plus de style « muted », back-link en rendu normal. --- */
/* Paragraphe d'intro (contenant le lien retour) : marge basse 16px (cgu + privacy). */
.legal-note { margin-bottom: 16px; }
/* Liste resserree facon sommaire (privacy). */
.legal-toc { margin-top: 6px; margin-bottom: 6px; }
/* Ligne de pied de page legale (cgu + privacy). */
.legal-footer {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #d1fae5;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}
