/* =============================================================================
   Legal Pages Stylesheet
   Styles for Privacy Policy, Terms of Service, and Cookie Policy pages
   ============================================================================= */

/* Legal Page Layout */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-updated {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    list-style: disc;
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.legal-section a:hover {
    color: var(--accent-light);
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Cookie Table */
.cookie-table {
    margin: 24px 0;
    overflow-x: auto;
}

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

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

.cookie-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-table td {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.cookie-table tr:hover td {
    background: var(--bg-tertiary);
}

/* Legal Navigation */
.legal-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.legal-nav a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.legal-nav a:hover {
    background: var(--accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section h3 {
        font-size: 1.0625rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 0.9375rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
        font-size: 0.875rem;
    }

    .legal-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .legal-nav a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-section {
        margin-bottom: 32px;
    }

    .legal-section ul {
        padding-left: 20px;
    }
}
