/* legal-pages.css */

.service-main {
    position: relative;
    padding: 140px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.background-animation {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    background: linear-gradient(-45deg, #e0f7fa, #e3f2fd, #f3e5f5, #ffebee);
    background-size: 400% 400%;
    animation: animatedBackground 20s ease infinite;
}

@keyframes animatedBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.legal-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.page-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 50px;
}

.legal-content-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.legal-content-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color-start);
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 10px;
}
.legal-content-card h2:first-of-type {
    margin-top: 0;
}

.legal-content-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content-card p, .legal-content-card li {
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content-card ul {
    list-style-position: inside;
    padding-left: 10px;
}

/* Styles pour l'accordéon FAQ */
.faq-item {
    border-bottom: 1px solid #e0e7ff;
    padding: 15px 0;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 10px;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-item.active .faq-answer {
    padding: 15px 10px 0 10px;
}

@media (max-width: 768px) {
    .page-title h1 { font-size: 2.2rem; }
    .legal-content-card { padding: 25px; }
}