/* ========== SECTION LEGAL ========== */

/* Titre de la section */
.legal-section .section-title {
    font-weight: bold;
    color: var(--color-site-item);
    margin-bottom: 0.3em;
    text-align: left;
}

/* Séparateur sous le titre */
.legal-section .title-separator {
    border: 0;
    border-top: 5px solid var(--color-site-item);
    width: 100px;
    margin-left: 0;
    margin-bottom: 2rem;
    opacity: 100;
    border-radius: 8px;
}

/* ========== ANIMATION ========== */

/* Animation Fade-In Up */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

/* ========== BLOC DE TITRE/CONTENU ========== */

/* Conteneur de chaque bloc */
.legal-item {
    background-color: var(--color-gray-background);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-gray-shadow);
    margin-bottom: 20px;
    padding: 20px 25px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.legal-item:hover {
    transform: translateY(-5px);
}

/* ========== TITRE ========== */

/* Ligne de titre */
.legal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-site-item);
    margin-bottom: 10px;
}

/* Icône Font Awesome (plus/moins) */
.legal-icon {
    transition: transform 0.3s ease;
}

/* Rotation de l'icône si la réponse est ouverte */
.legal-item[aria-expanded="true"] .legal-icon {
    transform: rotate(180deg);
}

/* Séparateur entre question et réponse */
.legal-separator {
    border: none;
    border-top: 1px solid var(--color-gray-border);
    margin: 10px 0 15px;
}

/* ========== RÉPONSE ========== */

/* Contenu de la réponse */
.legal-content {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.5;
    transition: max-height 0.35s ease;
    overflow: hidden;
}

/* ===== MEDIA QUERY ===== */

@media (max-width: 780px) {
    .legal-title span {
        font-size: 15px;
    }

    .legal-content {
        font-size: 13px;
    }
}
