/* Legal Pages Specific Styles */
.legal-content {
    padding: 120px 0 60px;
    background: #f8fafc;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.legal-header h1 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.legal-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
}

.last-updated {
    color: #6b7280;
    font-size: 1rem;
    font-style: italic;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-top: 1rem;
}

.legal-body {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
    position: relative;
}

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

.legal-section h2 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.legal-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

.legal-section ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #4b5563;
}

.legal-section ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-section strong {
    color: #1f2937;
    font-weight: 600;
}

.legal-section a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Contact Details Box */
.contact-details {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
    position: relative;
}

.contact-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 12px 12px 0 0;
}

.contact-details p {
    margin: 0.5rem 0;
    color: #374151;
}

.contact-details strong {
    color: #1f2937;
}

/* Cookie Table Styles */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cookie-table th {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1d4ed8;
}

.cookie-table th:first-child {
    border-radius: 8px 0 0 0;
}

.cookie-table th:last-child {
    border-radius: 0 8px 0 0;
}

.cookie-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    vertical-align: top;
}

.cookie-table tbody tr:hover {
    background-color: #f9fafb;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.cookie-table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Cookie Settings Button */
.cookie-settings-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    text-align: center;
}

.cookie-settings-section p {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Legal Navigation */
.legal-nav {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
    margin-bottom: 2rem;
}

.legal-nav .container {
    display: flex;
    justify-content: center;
}

.legal-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-nav-links a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-nav-links a:hover,
.legal-nav-links a.active {
    color: #2563eb;
    background: #eff6ff;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 100px 0 40px;
    }
    
    .legal-header h1 {
        font-size: 2.25rem;
    }
    
    .legal-body {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .cookie-table {
        font-size: 0.75rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .legal-nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.875rem;
    }
    
    .legal-body {
        padding: 1.5rem 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .cookie-table {
        font-size: 0.625rem;
    }
    
    .cookie-settings-section {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles for Legal Pages */
@media print {
    .legal-content {
        padding: 0;
        background: white;
    }
    
    .legal-header {
        border-bottom: 2px solid #000;
        margin-bottom: 2rem;
    }
    
    .legal-body {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .legal-section h2 {
        border-bottom: 1px solid #000;
        page-break-after: avoid;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .cookie-table {
        page-break-inside: avoid;
    }
    
    .cookie-settings-section {
        display: none;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
}

/* Accessibility Enhancements */
.legal-section:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 4px;
}

.legal-section h2:target {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1rem;
    margin: -1rem;
    border-radius: 8px;
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% {
        background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    }
    100% {
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    }
}

/* Table of Contents (if needed) */
.toc {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
}

.toc h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.toc ul {
    margin: 0;
}

.toc ul li {
    padding: 0.5rem 0;
}

.toc ul li::before {
    content: '→';
    color: #2563eb;
}

.toc a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    color: #2563eb;
}

