/* ============================================
   MENTIONS LÉGALES - STYLES
   ============================================ */

/* Hero Section */
.legal-hero {
    padding: 60px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.05'%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");
}

.legal-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.legal-hero h1 {
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.legal-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.legal-hero-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legal-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Legal Content Section */
.legal-content {
    background: #f8f9fa;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Tabs Navigation - Vertical Sidebar */
.legal-tabs-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.legal-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    text-align: left;
}

.legal-tab-btn i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.legal-tab-btn:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.legal-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.legal-tab-btn span {
    flex: 1;
}

/* Tabs Content */
.legal-tabs-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    min-height: 600px;
}

.legal-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.legal-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Header */
.tab-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f5;
}

.tab-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-header h2 i {
    color: #667eea;
    font-size: 32px;
}

.tab-header p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Legal Grid - Company Tab */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.legal-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.legal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.legal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-icon i {
    color: white;
    font-size: 24px;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
}

.legal-content p {
    margin: 0;
    color: #212529;
    font-size: 15px;
    line-height: 1.6;
}

.legal-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Legal Sections */
.legal-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-block {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.legal-block h3 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-block h3 i {
    color: #667eea;
    font-size: 24px;
}

.legal-block p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 16px;
}

.alert p {
    margin-bottom: 0;
}

/* Info Card */
.info-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-top: 16px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
}

.info-card p {
    margin-bottom: 12px;
    color: #495057;
}

.info-card .btn {
    margin-top: 8px;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
}

.feature i {
    color: #667eea;
    font-size: 20px;
}

/* Certifications */
.certifications {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: #495057;
    border: 2px solid #e9ecef;
}

.certification-badge i {
    color: #667eea;
    font-size: 20px;
}

/* Alert & Warning Boxes */
.alert {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.alert-info {
    background: #e7f5ff;
    border-left: 4px solid #339af0;
}

.alert-info i {
    color: #339af0;
    font-size: 20px;
}

.warning-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fff5f5;
    border-left: 4px solid #fa5252;
    border-radius: 8px;
    margin-top: 16px;
}

.warning-box i {
    color: #fa5252;
    font-size: 20px;
}

.warning-box p {
    margin: 0;
    color: #c92a2a;
}

/* Data Categories */
.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.data-category {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-top: 3px solid #667eea;
}

.data-category h4 {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-category h4 i {
    color: #667eea;
    font-size: 20px;
}

.data-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-category li {
    padding: 8px 0;
    color: #495057;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.data-category li:last-child {
    border-bottom: none;
}

/* Purposes Grid */
.purposes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.purpose-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.purpose-card i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 12px;
}

.purpose-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.purpose-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Rights List */
.rights-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.right-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.right-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.right-item i {
    font-size: 24px;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.right-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
}

.right-item p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Cookies Types */
.cookies-types {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.cookie-type {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-header i {
    font-size: 24px;
    color: #667eea;
}

.cookie-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    flex: 1;
}

.badge-required {
    background: #fa5252;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-optional {
    background: #339af0;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cookie-type p {
    color: #495057;
    margin: 0;
    font-size: 14px;
}

/* Browser Settings */
.browser-settings {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.browser-settings h4 {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
}

.browser-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.browser-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.browser-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    color: #667eea;
}

.browser-link i {
    font-size: 32px;
}

.browser-link span {
    font-size: 14px;
    font-weight: 600;
}

/* Cookie Preferences Button */
.cookie-preferences {
    margin-top: 24px;
    text-align: center;
}

.cookie-preferences .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-preferences .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Contact Link */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Legal Contact Footer */
.legal-contact {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
}

.contact-content p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 24px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-tabs-nav {
        position: relative;
        top: 0;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 16px;
        margin-bottom: 24px;
    }
    
    .legal-tab-btn {
        flex-shrink: 0;
        width: auto;
        margin-bottom: 0;
    }
    
    .legal-tab-btn span {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 36px;
    }
    
    .legal-hero .lead {
        font-size: 18px;
    }
    
    .legal-tabs-content {
        padding: 24px;
    }
    
    .tab-header h2 {
        font-size: 24px;
    }
    
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .data-categories {
        grid-template-columns: 1fr;
    }
    
    .purposes-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .legal-hero {
        padding: 100px 0 40px;
    }
    
    .legal-hero-meta {
        gap: 12px;
    }
    
    .legal-hero-meta span {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .legal-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .legal-tab-btn i {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .legal-tabs-nav {
        display: none;
    }
    
    .legal-tab-pane {
        display: block !important;
        page-break-after: always;
    }
    
    .legal-contact {
        display: none;
    }
}