/*
 * Les pages légales : confidentialité et conditions, en français et en anglais. Une feuille
 * pour les quatre ; couleurs, police et marque viennent de `brand.css`, lue avant elle.
 *
 * Rapport M-3 : une colonne de lecture (40rem, quelque 75 signes par ligne) et le corps du
 * texte dans l'encre, pas dans le gris des notes.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { line-height: 1.6; }

nav { padding: 16px 8%; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.lang-switch { color: var(--link); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.nav-right { display: flex; gap: 20px; align-items: center; }
.nav-webapp { color: var(--muted); font-weight: 600; text-decoration: none; font-size: 0.9rem; }

.container { max-width: 40rem; margin: 60px auto; padding: 0 20px; }

h1 { font-size: 2.3rem; line-height: 1.2; margin-bottom: 12px; text-align: center; }
.meta { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
h2 { font-size: 1.4rem; line-height: 1.3; margin-top: 40px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
h3 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; }
p, li { margin-bottom: 12px; }
ul { padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
a { color: var(--link); }

/* Le registre a cinq colonnes : sur un grand écran, le tableau déborde la colonne de lecture. */
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; background: var(--surface); }
@media (min-width: 64rem) { table { width: calc(100% + 12rem); margin-left: -6rem; margin-right: -6rem; } }
@media (max-width: 640px) { table, thead, tbody, th, td, tr { display: block; } thead { display: none; } td { border: none; padding: 6px 0; } tr { border-bottom: 1px solid var(--border); padding: 10px 0; } td::before { content: attr(data-label); display: block; font-weight: 600; } }

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 32px; }
.summary h2 { margin-top: 0; border: none; padding: 0; font-size: 1.1rem; }
.summary ul { margin-bottom: 0; }

.back-link { display: inline-block; margin-bottom: 32px; color: var(--link); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

footer { text-align: center; padding: 40px 20px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 60px; }
footer a { color: var(--muted); margin: 0 10px; }
