/* Legal Pages Styles */

.legal-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 80px;
}

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.legal-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* Content Section */
.legal-content {
    padding: 40px 0 80px;
}

.legal-content-box {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.legal-content-box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #007bff;
    position: relative;
}

.legal-content-box h2:first-of-type {
    margin-top: 0;
}

.legal-content-box h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #007bff);
}

.legal-content-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.25rem;
}

.legal-content-box ul,
.legal-content-box ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content-box ul li,
.legal-content-box ol li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.legal-content-box ul li {
    list-style: disc;
}

.legal-content-box ul li ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.legal-content-box ul li ul li {
    list-style: circle;
    margin-bottom: 0.5rem;
}

.legal-content-box a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content-box a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.legal-content-box strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Contact Box */
.contact-box {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.contact-box p {
    margin-bottom: 0.5rem;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

.contact-box a {
    font-weight: 500;
}

/* Legal Notice */
.legal-notice {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 3rem;
}

.legal-notice p {
    margin-bottom: 0;
    color: #2c3e50;
}

/* Cookie Tables */
.cookie-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.cookie-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.cookie-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    color: #4a5568;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .legal-content-box {
        padding: 40px 30px;
    }
    
    .legal-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 60px 0 40px;
        margin-bottom: 40px;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-subtitle {
        font-size: 1rem;
    }
    
    .legal-content-box {
        padding: 30px 20px;
    }
    
    .legal-content-box h2 {
        font-size: 1.75rem;
    }
    
    .legal-content-box h3 {
        font-size: 1.35rem;
    }
    
    .legal-content-box h4 {
        font-size: 1.15rem;
    }
    
    .legal-content-box p,
    .legal-content-box ul li,
    .legal-content-box ol li {
        font-size: 1rem;
    }
    
    .contact-box {
        padding: 1rem 1.5rem;
    }
    
    .legal-notice {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .legal-content-box {
        border-radius: 10px;
    }
    
    .legal-content-box h2 {
        font-size: 1.5rem;
    }
    
    .legal-content-box h3 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .legal-hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .legal-title {
        color: #000;
    }
    
    .legal-subtitle {
        color: #666;
    }
    
    .legal-content-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .navbar,
    .footer-modern,
    .loading-screen {
        display: none;
    }
    
    .legal-page {
        padding-top: 0;
    }
    
    .legal-content-box a {
        text-decoration: underline;
    }
    
    .legal-content-box h2 {
        page-break-after: avoid;
    }
    
    .contact-box,
    .legal-notice {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(0, 123, 255, 0.2);
    color: #1a1a2e;
}

::-moz-selection {
    background: rgba(0, 123, 255, 0.2);
    color: #1a1a2e;
}
