/* ========== STYLES POUR LES PAGES LÉGALES ========== */

/* ========== HERO SECTION ========== */
.legal-hero {
    padding: 6rem 2rem 4rem;
    background: var(--color-gradient-primary);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 122, 0, 0.1) 0%, transparent 70%);
}

.legal-hero .container {
    position: relative;
    z-index: 2;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    flex-wrap: wrap;
}

.legal-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-breadcrumb a:hover {
    color: var(--color-white);
}

.legal-breadcrumb span {
    color: var(--color-white);
    font-weight: 500;
}

.legal-breadcrumb i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.legal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legal-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.legal-date {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.legal-date strong {
    font-weight: 600;
}

/* ========== CONTENU PRINCIPAL ========== */
.legal-content {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.legal-main {
    min-width: 0;
}

.legal-section {
    background: var(--card-bg);
    border: 2px solid rgba(43, 92, 184, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all var(--transition-base);
}

.legal-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-blue);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.section-heading i {
    color: var(--color-orange);
    font-size: 1.5rem;
}

[data-theme="dark"] .section-heading {
    color: #7BB3FF !important;
}

.legal-text {
    color: var(--content-text-color, var(--text-primary));
    line-height: 1.9;
    font-size: 1.0625rem;
    font-weight: 400;
}

.legal-text p {
    margin-bottom: 1.25rem;
}

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

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

.legal-text a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

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

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.legal-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--content-text-color, var(--text-secondary));
    line-height: 1.7;
    font-size: 1.0625rem;
}

.legal-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-size: 1rem;
}

/* ========== SIDEBAR ========== */
.legal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--card-bg);
    border: 2px solid rgba(43, 92, 184, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

[data-theme="dark"] .sidebar-title {
    color: #7BB3FF !important;
}

.sidebar-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.legal-links {
    list-style: none;
    padding: 0;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.legal-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 1rem;
    font-weight: 400;
}

.legal-links a:hover,
.legal-links a.active {
    background: rgba(43, 92, 184, 0.1);
    color: var(--color-orange);
    transform: translateX(5px);
}

.legal-links a.active {
    background: var(--color-gradient-orange);
    color: var(--color-white);
    font-weight: 600;
}

.legal-links i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ========== PLAN DU SITE ========== */
.sitemap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sitemap-section {
    background: var(--card-bg);
    border: 2px solid rgba(43, 92, 184, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}

.sitemap-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
    transform: translateY(-5px);
}

.sitemap-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(43, 92, 184, 0.1);
}

.sitemap-heading i {
    color: var(--color-orange);
    font-size: 1.25rem;
}

[data-theme="dark"] .sitemap-heading {
    color: #7BB3FF !important;
}

.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 0.875rem;
}

.sitemap-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--content-text-color, var(--text-primary));
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
}

.sitemap-list a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-orange);
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
}

.sitemap-list a:hover {
    background: rgba(43, 92, 184, 0.1);
    color: var(--color-orange);
    transform: translateX(5px);
    padding-left: 1.25rem;
}

.sitemap-list a:hover::before {
    transform: translateX(5px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        order: -1;
    }
    
    .sitemap-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .legal-content {
        padding: 3rem 1rem;
    }
    
    .legal-section {
        padding: 2rem 1.5rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .sitemap-container {
        grid-template-columns: 1fr;
    }
    
    .sitemap-heading {
        font-size: 1.25rem;
    }
}

/* ========== AMÉLIORATION DARK MODE ========== */
[data-theme="dark"] .legal-section,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .sitemap-section {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .legal-text strong {
    color: var(--text-primary);
}

[data-theme="dark"] .legal-links a {
    color: var(--text-primary);
}

[data-theme="dark"] .legal-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sitemap-list a {
    color: var(--text-primary);
}

[data-theme="dark"] .sitemap-list a:hover {
    background: rgba(255, 255, 255, 0.1);
}

