:root {
    --brand: #F9B104;
    --brand-dark: #e09e03;
    --brand-text: #2d3748;
    --text-secondary: #4a5568;
    --bg-light: #fff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== STRUCTURE GLOBALE ===== */
.legal-page {
    max-width: 1100px;
    margin: 2rem auto;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Header (commun aux deux pages) */
.legal-header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--brand-text);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.legal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.legal-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-header h1 i {
    color: var(--brand-text);
    opacity: 0.9;
    margin-right: 0.5rem;
}

.legal-header .lead,
.legal-header .badge {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.legal-nav {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    /*margin: -20px auto 2rem;*/
    /*/position: relative;*/
     position: sticky;
    top: 60px;
    z-index: 10;
}

.legal-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.legal-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-nav .nav-link:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* ===== SECTIONS & CARTES ===== */
.legal-section {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease forwards;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--brand-text);
}

.section-title i {
    color: var(--brand);
    font-size: 1.4rem;
    margin-right: 0.75rem;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 2px solid var(--brand);
    padding-bottom: 0.3rem;
    display: inline-block;
}

/* Cartes de contenu */
.legal-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 3px solid var(--brand);
    margin-top: 1rem;
}

.legal-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.legal-card .card-body {
    padding: 1.5rem;
}

/* Listes */
.legal-card ul {
    padding-left: 1.75rem;
    margin-top: 0.75rem;
}

.legal-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Alertes */



/* ===== ELEMENTS SPECIFIQUES ===== */
/* Liens */
.legal-card a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.legal-card a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* Boutons */
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-1px);
}

/* Badges */
.badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--brand-text);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }
.legal-section:nth-child(6) { animation-delay: 0.6s; }
.legal-section:nth-child(7) { animation-delay: 0.7s; }
.legal-section:nth-child(8) { animation-delay: 0.8s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .legal-header {
        padding: 40px 0 30px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-nav {
        margin: -15px auto 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .legal-card .card-body {
        padding: 1rem;
    }
}
