/* =========================================
   PAGES LÉGALES (conditions, confidentialité, mentions)
   ========================================= */

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 16px 56px;
    color: #1e293b;
    line-height: 1.65;
}

.legal h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
}

.legal-date {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
}

.legal-langue {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 14px;
}

.legal-sommaire {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px;
}

.legal-sommaire a {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 99px;
    background: white;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.legal-sommaire a:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.legal article {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: white;
    text-align: left;
}

.legal article h2 {
    margin: 26px 0 8px;
    font-size: 18px;
}

.legal article h2:first-child {
    margin-top: 0;
}

.legal article p,
.legal article ul {
    margin: 0 0 12px;
    font-size: 15px;
}

.legal article ul {
    padding-left: 20px;
}

.legal article li {
    margin-bottom: 6px;
}

.legal article a {
    color: #2563eb;
}

/* Fiche (mentions légales) */

.legal-fiche {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 16px;
    margin: 0 0 12px;
}

.legal-fiche dt {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.legal-fiche dd {
    margin: 0;
    font-weight: 600;
}

/* Information encore à remplir dans app/informations_legales.py */
.legal-a-completer {
    padding: 0 4px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
}

@media (min-width: 640px) {

    .legal-fiche {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .legal-fiche dt {
        margin-top: 0;
        padding: 6px 0;
    }

    .legal-fiche dd {
        padding: 6px 0;
    }
}


/* Page « Supprimer mon compte » : bouton vers le support. */
.legal article .legal-encadre {
    margin: 4px 0 18px;
}

.legal article .legal-bouton {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #16a34a;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.legal article .legal-bouton:hover {
    background: #15803d;
}
