/* ===================================================================
   LEGAL PAGES — Shared Styles
   Used by: mentions-legales, cgv, cookies-policy, privacy-policy
   =================================================================== */

/* ===== HEADER STYLING FOR LEGAL PAGES ===== */
/* Make header blend with hero — always dark background */
.site-header {
    background: var(--navy-900) !important;
}

.site-header .top-bar {
    background: rgba(0, 0, 0, 0.2);
}

.site-header .main-nav {
    background: transparent;
}

.site-header .logo-name,
.site-header .logo-tagline {
    color: var(--white) !important;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--white) !important;
}

.site-header .nav-cta {
    background: var(--white) !important;
    color: var(--navy-900) !important;
}

.site-header .nav-cta:hover {
    background: var(--gold-400) !important;
    color: var(--navy-900) !important;
}

/* When scrolled, keep dark but add shadow */
.site-header.scrolled {
    background: var(--navy-900) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .logo-name,
.site-header.scrolled .logo-tagline {
    color: var(--white) !important;
}

.site-header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
    color: var(--white) !important;
}

/* ===== PAGE LAYOUT ===== */
/* Spacer to push content below fixed header */
.header-spacer {
    height: 44px;
    background: var(--navy-900);
}

/* ===== LEGAL HERO SECTION ===== */
.legal-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.legal-hero h1 i {
    font-size: 0.9em;
    opacity: 0.9;
}

.legal-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== LEGAL CONTENT SECTION ===== */
.legal-content {
    padding: 60px 0 80px;
    background: var(--white);
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2 i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.legal-section h3 {
    color: var(--gray-800);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 12px;
}

.legal-section p,
.legal-section li {
    color: var(--gray-700);
    line-height: 1.8;
}

.legal-section ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--navy-50) 100%);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
}

.info-box p {
    margin: 0;
}

.info-box strong {
    color: var(--gray-900);
}

/* ===== UPDATE BADGE ===== */
.legal-update {
    background: var(--navy-50);
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy-700);
}

.legal-update i {
    color: var(--primary);
}

/* ===== DATA TABLES (CGV tarifs, Cookies) ===== */
.tarif-table,
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tarif-table th,
.tarif-table td,
.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.tarif-table th,
.cookie-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-800);
}

.tarif-table td,
.cookie-table td {
    color: var(--gray-700);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-spacer {
        height: 40px;
    }

    .legal-hero {
        padding: 40px 20px;
    }

    .legal-hero h1 {
        flex-direction: column;
        gap: 8px;
    }

    .legal-content {
        padding: 40px 0 60px;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .info-box {
        padding: 16px 18px;
    }

    .tarif-table,
    .cookie-table {
        font-size: 0.9rem;
    }

    .tarif-table th,
    .tarif-table td,
    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }
}
