/* ==================== */
/* LEGAL PAGES STYLES */
/* ==================== */

:root {
    --primary: #6B46C1;
    --primary-light: #8B5CF6;
    --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #3B82F6 100%);
    --gradient-dark: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== */
/* NAVIGATION */
/* ==================== */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: -5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ==================== */
/* LEGAL CONTENT */
/* ==================== */

.legal-content {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
}

.last-update {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.legal-section {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.legal-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(107, 70, 193, 0.12);
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
}

.legal-section h3 {
    color: var(--primary-light);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section strong {
    color: var(--primary);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.legal-section ul,
.legal-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Table des matières */
.toc-list {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.toc-list li {
    font-weight: 500;
    color: var(--primary);
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    color: var(--primary);
    margin-top: 0;
}

/* Contact info */
.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(107, 70, 193, 0.2);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-footer {
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 12px;
    padding: 2rem;
}

.contact-footer p,
.contact-footer a {
    color: var(--white) !important;
    margin-bottom: 0.5rem;
}

.contact-footer a:hover {
    text-decoration: underline;
}

/* ==================== */
/* FOOTER */
/* ==================== */

.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.footer-logo .logo-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-section {
        padding: 1.2rem;
    }

    .legal-section ul,
    .legal-section ol {
        margin-left: 1.2rem;
    }
}