/* Legal Page Styles */
.legal-page-header {
    background: #0f172a;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.legal-meta {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-content-wrap {
    background: #f8fafc;
    min-height: 50vh;
    padding: 60px 20px;
}

.legal-container {
    max-width: 800px;
    margin: -120px auto 0;
    background: white;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.legal-entry-content {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

.legal-entry-content h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-entry-content h2:first-child {
    margin-top: 0;
}

.legal-entry-content p {
    margin-bottom: 1.5rem;
}

.legal-entry-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-entry-content li {
    margin-bottom: 0.5rem;
}

/* Dark Mode Support via existing variables if available, or overrides */
[data-theme="dark"] .legal-content-wrap {
    background: #020617;
}

[data-theme="dark"] .legal-container {
    background: #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .legal-entry-content {
    color: #cbd5e1;
}

[data-theme="dark"] .legal-entry-content h2 {
    color: #f8fafc;
    border-bottom-color: #334155;
}

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

    .legal-title {
        font-size: 2rem;
    }

    .legal-container {
        padding: 30px;
        margin-top: -40px;
    }
}