/**
 * Legal pages — общие стили
 * Используется на /privacy-policy, /terms-of-service, /cookie-policy
 */

.legal-page {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.legal-content {
    background: var(--surface, #ffffff);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #111827);
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 2rem;
}

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

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #111827);
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary, #111827);
}

.legal-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-secondary, #374151);
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: var(--text-secondary, #374151);
}

.legal-section a {
    color: var(--primary-color, #3b82f6);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--primary-hover, #2563eb);
}

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

@media (max-width: 768px) {
    .legal-page {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .legal-content {
        padding: 1.5rem;
    }

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

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

/* Dark theme support */
[data-theme="dark"] .legal-content {
    background: var(--color-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .legal-content h1,
[data-theme="dark"] .legal-section h2,
[data-theme="dark"] .legal-section h3,
[data-theme="dark"] .legal-section strong {
    color: var(--color-text);
}

[data-theme="dark"] .legal-updated,
[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section li {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .legal-section h2 {
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .legal-section a {
    color: var(--color-primary-hover);
}

[data-theme="dark"] .legal-section a:hover {
    color: var(--color-primary);
}
