/* Legal Pages Specific Styles */
.legal-page {
    padding: 120px 0 80px;
    background: #ffffff;
    min-height: 100vh;
}

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

.legal-header h1 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 700;
}

.last-updated {
    color: #64748b;
    font-size: 1rem;
    font-style: italic;
}

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

.legal-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 24px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 3px solid #2563eb;
}

.legal-section h3 {
    font-size: 1.4rem;
    color: #374151;
    margin-bottom: 16px;
    margin-top: 32px;
    font-weight: 600;
}

.legal-section h4 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 12px;
    margin-top: 24px;
    font-weight: 600;
}

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

.legal-section ul,
.legal-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-section li {
    color: #4b5563;
    margin-bottom: 8px;
}

.legal-section li strong {
    color: #374151;
    font-weight: 600;
}

/* Contact Info Box */
.contact-info {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    margin: 24px 0;
}

.contact-info p {
    margin-bottom: 12px;
    text-align: left;
}

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

.contact-info a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Cookie-specific styles */
.cookie-category {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.cookie-category:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cookie-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    color: #2563eb;
    font-size: 1.3rem;
}

.cookie-category h3 svg {
    flex-shrink: 0;
}

.cookie-details {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.cookie-details h4 {
    color: #374151;
    margin-bottom: 12px;
    margin-top: 0;
}

.cookie-details ul {
    margin-bottom: 0;
}

.cookie-details code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #1f2937;
}

/* Cookie Settings Button */
.cookie-settings-button {
    text-align: center;
    margin: 24px 0;
}

/* Browser Instructions */
.browser-instructions {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f59e0b;
}

.browser-instructions h4 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 16px;
}

.browser-instructions ul {
    margin-bottom: 0;
}

.browser-instructions li {
    color: #78350f;
    margin-bottom: 8px;
}

.browser-instructions strong {
    color: #92400e;
}

/* Third Party List */
.third-party-list {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.third-party-item {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.third-party-item h4 {
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 8px;
}

.third-party-item p {
    color: #475569;
    margin-bottom: 12px;
    text-align: left;
}

.third-party-item p:last-child {
    margin-bottom: 0;
}

.third-party-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    margin-right: 12px;
}

.third-party-item a:hover {
    text-decoration: underline;
}

/* Active navigation link styling */
.nav-menu a.active,
.footer-links a.active {
    color: #2563eb;
    font-weight: 600;
}

/* Table of Contents (if needed) */
.table-of-contents {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.table-of-contents h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.3rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents ul li {
    margin-bottom: 8px;
}

.table-of-contents ul li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents ul li a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.75rem;
    }
    
    .legal-section h3 {
        font-size: 1.25rem;
    }
    
    .cookie-category {
        padding: 20px;
    }
    
    .cookie-category h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-details,
    .browser-instructions,
    .third-party-item {
        padding: 16px;
    }
    
    .legal-section p,
    .legal-section li {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-content {
        padding: 0 10px;
    }
    
    .legal-section ul,
    .legal-section ol {
        padding-left: 20px;
    }
}