/* ============================================================
   LEGAL PAGE — Mentions légales, CGV, Confidentialité, Déontologie
   ============================================================ */

/* ---------- HERO ---------- */
.legal-hero {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 170, 170, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(250, 200, 180, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #0f2833 0%, #1a3a47 55%, #25596b 100%);
    color: #FFFFFF;
    overflow: hidden;
    isolation: isolate;
}

.legal-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 200, 180, 0.7), transparent);
}

.legal-hero__container {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.legal-hero__eyebrow {
    display: inline-block;
    font-family: var(--font-primary, system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-neutral, #FAC8B4);
    margin-bottom: 1.25rem;
    padding: 0.4rem 1rem;
    border-bottom: 1px solid rgba(250, 200, 180, 0.4);
}

.legal-hero__title {
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.legal-hero__updated {
    font-family: var(--font-primary, system-ui, sans-serif);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin: 1rem 0 0;
}

/* ---------- Stagger entrance hero legal ---------- */
@media (prefers-reduced-motion: no-preference) {
    .legal-stagger {
        opacity: 0;
        transform: translateY(10px);
        animation: legalStaggerIn 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: calc(var(--legal-stagger, 0) * 100ms + 80ms);
    }

    .legal-page__section,
    .legal-page__intro {
        opacity: 0;
        transform: translateY(8px);
        animation: legalFadeIn 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: 200ms;
    }

    .legal-page__sections .legal-page__section:nth-child(n+2) {
        animation-delay: 300ms;
    }
}

@keyframes legalStaggerIn {
    to { opacity: 1; transform: none; }
}

@keyframes legalFadeIn {
    to { opacity: 1; transform: none; }
}

/* ---------- BODY ---------- */
.legal-page {
    position: relative;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
    background: #FFFFFF;
    color: #2A3338;
}

.legal-page__container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Intro */
.legal-page__intro {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 1.5rem 2rem;
    background: rgba(0, 170, 170, 0.04);
    border-left: 3px solid var(--color-primary, #00AAAA);
    border-radius: 0 12px 12px 0;
}

.legal-page__intro strong {
    color: var(--color-primary, #00AAAA);
    font-weight: 600;
}

/* Sections */
.legal-page__sections {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3.5vw, 2.5rem);
}

.legal-page__section {
    scroll-margin-top: 2rem;
}

.legal-page__heading {
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 600;
    color: var(--color-primary, #00AAAA);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 170, 170, 0.15);
    line-height: 1.3;
}

/* Content */
.legal-page__content {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.legal-page__content h3 {
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #2A3338;
    margin: 1.75rem 0 0.85rem;
    line-height: 1.3;
}

.legal-page__content p {
    margin: 0 0 1.1rem;
}

.legal-page__content p:last-child { margin-bottom: 0; }

.legal-page__content strong {
    color: #2A3338;
    font-weight: 600;
}

.legal-page__content a {
    color: var(--color-primary, #00AAAA);
    text-decoration: underline;
    text-decoration-color: rgba(0, 170, 170, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-page__content a:hover {
    color: var(--color-secondary, #FF9900);
    text-decoration-color: var(--color-secondary, #FF9900);
}

.legal-page__content ul,
.legal-page__content ol {
    margin: 0 0 1.2rem;
    padding-left: 1.5rem;
}

.legal-page__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-page__content li::marker {
    color: var(--color-primary, #00AAAA);
}

/* Coordonnées (liste sans puce) */
.legal-page__content ul.rbs-legal-coords {
    list-style: none;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    background: #FBF4EE;
    border-radius: 10px;
    border: 1px solid rgba(0, 170, 170, 0.1);
}

.legal-page__content ul.rbs-legal-coords li {
    padding: 0.25rem 0;
    margin: 0;
    color: #2A3338;
    font-weight: 500;
}

/* Valeurs fondamentales (liste centrée stylée) */
.legal-page__content ul.rbs-legal-values {
    list-style: none;
    padding: 1.5rem 2rem;
    margin: 1.25rem 0;
    background: linear-gradient(135deg, rgba(0, 170, 170, 0.06), rgba(250, 200, 180, 0.12));
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem 1.5rem;
    text-align: center;
}

.legal-page__content ul.rbs-legal-values li {
    padding: 0.6rem 0.5rem;
    margin: 0;
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-weight: 500;
    color: var(--color-primary, #00AAAA);
    border-bottom: 1px dashed rgba(0, 170, 170, 0.2);
}

.legal-page__content ul.rbs-legal-values li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 640px) {
    .legal-page__container { padding: 0 1.25rem; }
    .legal-page__intro {
        padding: 1.25rem 1.25rem;
        font-size: 1rem;
    }
    .legal-page__content { font-size: 0.95rem; }
    .legal-page__content ul.rbs-legal-values {
        grid-template-columns: 1fr;
        padding: 1.25rem 1.5rem;
    }
}
