/* =======================================================================
   STYLES DE LA MODALE LÉGALE
   Ajout de numéros de section et d'icônes.
   ======================================================================= */

#legal-mentions-content {
    background-color: #F5F5F7;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 25px;
    border-radius: 12px;
    counter-reset: section-counter; /* Initialise le compteur de section */
}

/* Harmoniser la largeur et le rayon avec la modale Tutoriel */
#legal-mentions-modal .modal-content {
    width: clamp(320px, 88vw, 960px);
    max-width: none;
    border-radius: 12px;
    margin: clamp(12px, 4vh, 48px) auto;
}

/* Titre principal */
#legal-mentions-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    color: #1d1d1f;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

/* Titres de section */
#legal-mentions-content h4 {
    font-size: 1.3em;
    color: #007AFF;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9e9ed;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Les numéros de section ont été retirés à la demande de l'utilisateur */

/* Style pour les icônes dans les titres */
#legal-mentions-content h4 i {
    font-size: 0.9em;
    width: 20px; /* Assure un alignement constant */
    text-align: center;
}

/* Style pour les encadrés d'information */
.legal-card {
    background-color: #FFFFFF;
    border: 1px solid #e9e9ed;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.legal-card > strong {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #000;
}

.legal-card span strong,
.legal-card p strong {
    display: inline;
    font-weight: bold;
    color: #000;
}

#legal-mentions-content p {
    margin-bottom: 15px;
}

#legal-mentions-content ul {
    list-style-type: none;
    padding-left: 0;
}

#legal-mentions-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

#legal-mentions-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #34C759;
    font-weight: bold;
}
/* =======================================================================
   EN-TÊTE ET BOUTON FERMETURE DE LA MODALE LÉGALE
   Aligne le comportement sur la modale Tutoriel, sans chevauchement.
   ======================================================================= */
.legal-modal-header {
    padding: 12px 60px 12px 24px;
    border-bottom: 1px solid #ddd;
    position: relative;
    min-height: 56px;
    background: #FFFFFF;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal-header h2 {
    margin: 0;
    font-size: clamp(1.15rem, 1vw + 1rem, 1.6rem);
    color: #1d1d1f;
    padding: 0 0.5rem;
}

.legal-close-modal-btn {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #8e8e93;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.legal-close-modal-btn:hover,
.legal-close-modal-btn:focus {
    color: #1d1d1f;
    text-decoration: none;
}

@media (max-width: 600px) {
    .legal-modal-header {
        padding: 12px 50px 12px 16px;
        min-height: 52px;
    }

    .legal-close-modal-btn {
        font-size: 24px;
        right: 12px;
    }

    /* Rendu plus compact sur mobile */
    #legal-mentions-modal .modal-content {
        margin: clamp(8px, 2vh, 24px) auto;
    }
}

/* Masquer le titre interne du contenu, déjà affiché dans l’en-tête */
#legal-mentions-modal #legal-mentions-content > h3 {
    display: none;
}
