/* Legal Pages Specific Styles */
.legal-header {
    background: var(--dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header nav {
    display: flex;
    gap: 20px;
}

.legal-header nav a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    padding: 5px 10px;
    border-radius: 4px;
}

.legal-header nav a:hover,
.legal-header nav a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.legal-main {
    background: var(--light);
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.legal-document {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.document-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--primary);
}

.document-header h1 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 15px;
}

.document-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--gray);
    font-size: 14px;
}

.document-summary {
    background: #f0f9ff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary);
}

.document-summary h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 20px;
}

/* Sections */
.policy-section,
.terms-section,
.disclaimer-section {
    margin-bottom: 40px;
}

.policy-section h2,
.terms-section h2,
.disclaimer-section h2 {
    color: var(--primary);
    font-size: 28px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.policy-section h3,
.terms-section h3,
.disclaimer-section h3 {
    color: var(--dark);
    font-size: 20px;
    margin: 25px 0 15px;
}

.policy-section p,
.terms-section p,
.disclaimer-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.policy-section ul,
.terms-section ul,
.disclaimer-section ul {
    margin: 15px 0 15px 30px;
}

.policy-section li,
.terms-section li,
.disclaimer-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Tables */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border);
}

.cookie-table th {
    background: var(--primary);
    color: white;
}

.cookie-table tr:nth-child(even) {
    background: var(--light);
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.right-card {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.right-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.right-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Contact Details */
.contact-details {
    background: var(--light);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.contact-details p {
    margin-bottom: 10px;
}

address {
    font-style: normal;
    line-height: 1.8;
}

/* Consent Acknowledgment */
.consent-acknowledgment {
    margin-top: 50px;
    padding: 25px;
    background: #f0f9ff;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--primary);
}

.consent-acknowledgment p {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary);
}

/* Legal Footer */
.legal-footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-document {
        padding: 30px 20px;
    }
    
    .document-header h1 {
        font-size: 32px;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
}