/* Legal Pages Specific Styles */
.legal-content {
    padding: 6rem 0 4rem;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

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

.legal-header h1 {
    color: #1a1a1a;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.last-updated {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.legal-section h2 {
    color: #1a1a1a;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.legal-section:first-child h2 {
    border-top: none;
    padding-top: 0;
}

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

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

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #4a5568;
}

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

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

.legal-section a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

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

/* Contact Details Box */
.contact-details {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-details p {
    margin-bottom: 0.75rem;
    color: #374151;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

/* Risk Warning Box */
.risk-warning {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.risk-warning p {
    color: #991b1b;
    margin: 0;
    font-weight: 500;
}

/* Cookie Table Styles */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-table td {
    color: #4a5568;
    font-size: 0.875rem;
}

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

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

/* Cookie Preferences Section */
.cookie-preferences-section {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.cookie-preferences-section h4 {
    color: #0c4a6e;
    margin-bottom: 1rem;
}

.cookie-preferences-section .btn {
    background-color: #0ea5e9;
    color: white;
}

.cookie-preferences-section .btn:hover {
    background-color: #0284c7;
}

/* Numbered Lists */
.legal-section ol {
    counter-reset: section-counter;
    list-style: none;
    margin-left: 0;
}

.legal-section ol li {
    counter-increment: section-counter;
    position: relative;
    padding-left: 2rem;
}

.legal-section ol li::before {
    content: counter(section-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: #2563eb;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 5rem 0 3rem;
    }
    
    .legal-header h1 {
        font-size: 2.25rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .legal-section p {
        text-align: left;
    }
    
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .legal-section ul,
    .legal-section ol {
        margin-left: 1rem;
    }
    
    .legal-section ol li {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.875rem;
    }
    
    .legal-section h2 {
        font-size: 1.375rem;
    }
    
    .contact-details,
    .risk-warning,
    .cookie-preferences-section {
        padding: 1rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* Print Styles for Legal Pages */
@media print {
    .legal-content {
        margin-top: 0;
        padding: 1rem 0;
    }
    
    .legal-header {
        border-bottom: 2px solid #000;
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        border-top: 1px solid #000;
        page-break-after: avoid;
    }
    
    .legal-section h3 {
        page-break-after: avoid;
    }
    
    .risk-warning {
        border: 2px solid #000;
        background-color: #f5f5f5;
    }
    
    .cookie-table {
        page-break-inside: avoid;
    }
    
    .cookie-table th {
        background-color: #f0f0f0;
    }
    
    .cookie-preferences-section {
        display: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
