/* ==========================================
   PAGES LÉGALES (css/legal.css)
   ========================================== */

:root {
    /* --- STRUCTURE & FONDS --- */
    --legal-card-bg: #faf5e5;             /* Fond du conteneur principal */
    --legal-border-color: #02060f;        /* Bordure externe et séparateur sous H1 */
    --legal-shadow-color: rgba(0, 0, 0, 0.04);

    /* --- TYPOGRAPHIE & TEXTES --- */
    --legal-title-h1: #0c0e0c;            /* Titre principal H1 */
    --legal-title-h2: #1f2937;            /* Titres de sections H2 */
    --legal-text-color: #4b5563;          /* Corps de texte des paragraphes et listes */
    --legal-link-color: #0c0e0c;          /* Couleur des liens hypertexts */
    --legal-link-hover: #f1cb4f;         /* Couleur des liens au survol */
}

/* Structure Flexbox globale pour coller le footer en bas de page */
body.site-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.legal-container {
    width: calc(100% - 4rem);             /* Marges gauche et droite augmentées */
    max-width: 760px;                     /* Cadre légèrement resserré */
    margin: 2.5rem auto;
    padding: 2rem 2.25rem;
    background: var(--legal-card-bg);
    border: 1px solid var(--legal-border-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--legal-shadow-color);
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.legal-container h1 {
    font-size: 1.75rem;                   /* Police réduite (anciennement 2rem) */
    color: var(--legal-title-h1);
    margin-bottom: 1.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--legal-border-color);
}

.legal-section {
    margin-bottom: 1.75rem;
}

.legal-section h2 {
    font-size: 1.15rem;                  /* Police réduite (anciennement 1.25rem) */
    color: var(--legal-title-h2);
    margin-bottom: 0.6rem;
}

.legal-section p,
.legal-section li {
    color: var(--legal-text-color);
    font-size: 0.9375rem;                 /* Police réduite (anciennement 1rem / 15px) */
    line-height: 1.55;
}

.legal-section ul {
    padding-left: 1.25rem;
    margin-top: 0.4rem;
}

.legal-section a {
    color: var(--legal-link-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--legal-link-hover);
}

@media (max-width: 640px) {
    .legal-container {
        width: calc(100% - 2rem);         /* Maintien d'une marge propre sur mobile */
        margin: 1.5rem auto;
        padding: 1.25rem;
    }

    .legal-container h1 {
        font-size: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.05rem;
    }
}