/* Public legal informational pages (privacy policy, terms of service). */

.legal-page-shell {
    margin-top: -1.5rem;
    margin-bottom: 0;
    padding: 2.5rem 1rem 3.5rem;
    background: #f3f4f6;
    color: #111827;
}

.legal-page-header {
    max-width: min(920px, 100%);
    margin: 0 auto 1.75rem;
    text-align: center;
}

.legal-page-header h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1c5d99;
}

.legal-page-subtitle {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1c5d99;
}

.legal-page-effective-date {
    margin: 0;
    font-size: 0.98rem;
    color: #6c757d;
}

.legal-page-card {
    max-width: min(920px, 100%);
    margin: 0 auto;
    padding: 2rem 2.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(209, 213, 219, 0.85);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.legal-page-intro {
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #111827;
}

.legal-page-section + .legal-page-section {
    margin-top: 2rem;
}

.legal-page-section h2 {
    margin: 0 0 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1c5d99;
}

.legal-page-section h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1c5d99;
}

.legal-page-section p {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #111827;
}

.legal-page-reference-line,
.legal-page-link-row,
.legal-page-contact-line {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #111827;
}

.legal-page-reference-line strong {
    color: inherit;
    font-weight: 700;
}

.legal-page-section ul {
    margin: 0 0 0.85rem;
    padding-left: 1.35rem;
    list-style: none;
}

.legal-page-section li {
    position: relative;
    margin-bottom: 0.55rem;
    padding-left: 0.35rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #111827;
}

.legal-page-section li::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0.62rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: #1c5d99;
}

.legal-page-section a {
    color: #1c5d99;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.legal-page-section a:hover,
.legal-page-section a:focus-visible {
    color: #164a7a;
}

@media (max-width: 767.98px) {
    .legal-page-shell {
        padding: 1.75rem 0.75rem 2.75rem;
    }

    .legal-page-card {
        padding: 1.5rem 1.15rem;
    }
}

html[data-theme="dark"] .legal-page-shell {
    background: #0f172a;
    color: var(--body-text);
}

html[data-theme="dark"] .legal-page-header h1,
html[data-theme="dark"] .legal-page-subtitle,
html[data-theme="dark"] .legal-page-section h2,
html[data-theme="dark"] .legal-page-section h3 {
    color: #b4c5e4;
}

html[data-theme="dark"] .legal-page-effective-date {
    color: #94a3b8;
}

html[data-theme="dark"] .legal-page-card {
    border-color: rgba(148, 163, 184, 0.25);
    background: #111827;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .legal-page-intro,
html[data-theme="dark"] .legal-page-section p,
html[data-theme="dark"] .legal-page-reference-line,
html[data-theme="dark"] .legal-page-link-row,
html[data-theme="dark"] .legal-page-contact-line,
html[data-theme="dark"] .legal-page-section li {
    color: var(--body-text);
}

html[data-theme="dark"] .legal-page-reference-line strong {
    color: var(--body-text);
}

html[data-theme="dark"] .legal-page-section h2 {
    border-bottom-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .legal-page-section li::before {
    background: #93c5fd;
}

html[data-theme="dark"] .legal-page-section a {
    color: #93c5fd;
}

html[data-theme="dark"] .legal-page-section a:hover,
html[data-theme="dark"] .legal-page-section a:focus-visible {
    color: #bfdbfe;
}
