/* Legal / policy pages — extends dash-theme */

.dash-body.legal-page {
    min-height: 100vh;
    color: var(--dash-text-secondary);
    background: var(--dash-bg);
}

.dash-body.legal-page .dash-bg-glow {
    display: none;
}

.dash-body.legal-page .legal-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.dash-body.legal-page .dash-card,
.dash-body.legal-page .dash-card:hover {
    box-shadow: none;
}

.dash-body.legal-page .legal-wrap {
    width: min(100%, 64rem);
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

@media (min-width: 768px) {
    .dash-body.legal-page .legal-wrap {
        padding: 2rem 2rem 5rem;
    }
}

.dash-body.legal-page .legal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: rgba(9, 9, 9, 0.72);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.dash-body.legal-page .legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dash-text-muted);
    text-decoration: none;
    border: 1px solid var(--dash-border);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    transition: color var(--dash-dur-mid) var(--dash-ease-out), border-color var(--dash-dur-mid) var(--dash-ease-out), background var(--dash-dur-mid) var(--dash-ease-out), transform var(--dash-dur-fast) var(--dash-ease-out);
}

.dash-body.legal-page .legal-back-link:hover {
    color: var(--dash-text);
    border-color: var(--dash-border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.dash-body.legal-page .legal-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--dash-surface);
    border-color: rgba(59, 130, 246, 0.18);
    box-shadow: none;
}

@media (min-width: 768px) {
    .dash-body.legal-page .legal-hero {
        padding: 2.4rem;
    }
}

@media (min-width: 1024px) {
    .dash-body.legal-page .legal-hero {
        padding: 2.75rem 3rem;
    }
}

.dash-body.legal-page .legal-hero::after {
    display: none;
}

.dash-body.legal-page .legal-hero::before {
    display: none;
}

.dash-body.legal-page .legal-hero > * {
    position: relative;
    z-index: 1;
}

.dash-body.legal-page .legal-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dash-accent-text);
    margin-bottom: 0.75rem;
}

.dash-body.legal-page .legal-title {
    font-size: clamp(2rem, 4.8vw, 3.65rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    color: var(--dash-text);
    line-height: 0.98;
    max-width: 52rem;
}

.dash-body.legal-page .legal-meta {
    font-size: 13px;
    color: var(--dash-text);
    margin-top: 1rem;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.dash-body.legal-page .legal-meta::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--dash-accent);
    box-shadow: none;
}

.dash-body.legal-page .legal-lead {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.75;
    color: var(--dash-text-secondary);
    margin-top: 1.25rem;
    max-width: 60rem;
}

.dash-body.legal-page .legal-note {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(59, 130, 246, 0.055);
    font-size: 13px;
    line-height: 1.7;
    color: var(--dash-text-secondary);
}

.dash-body.legal-page .legal-warning {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.08);
    font-size: 13px;
    line-height: 1.7;
    color: rgba(253, 230, 138, 0.95);
}

.dash-body.legal-page .legal-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--dash-text-secondary);
}

.dash-body.legal-page .legal-section {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    background: var(--dash-surface);
}

@media (min-width: 768px) {
    .dash-body.legal-page .legal-section {
        padding: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .dash-body.legal-page .legal-section {
        padding: 2rem;
    }
}

.dash-body.legal-page .legal-section h2 {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dash-text);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.dash-body.legal-page .legal-section h2::before {
    content: "";
    flex: 0 0 auto;
    width: 0.5rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    border-radius: 999px;
    background: var(--dash-accent);
    box-shadow: none;
}

.dash-body.legal-page .legal-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dash-text);
    margin: 1.1rem 0 0.5rem;
}

.dash-body.legal-page .legal-section strong {
    color: var(--dash-text);
    font-weight: 600;
}

.dash-body.legal-page .legal-link,
.dash-body.legal-page .legal-section a {
    color: var(--dash-accent-text);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color var(--dash-dur-mid) var(--dash-ease-out), text-decoration-color var(--dash-dur-mid) var(--dash-ease-out);
}

.dash-body.legal-page .legal-link:hover,
.dash-body.legal-page .legal-section a:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-decoration-color: rgba(147, 197, 253, 0.5);
}

.dash-body.legal-page .legal-section ol,
.dash-body.legal-page .legal-section ul {
    padding-left: 1.15rem;
}

.dash-body.legal-page .legal-section li + li {
    margin-top: 0.8rem;
}

.dash-body.legal-page .legal-section li::marker {
    color: rgba(96, 165, 250, 0.86);
    font-weight: 700;
}

.dash-body.legal-page .legal-section p + p {
    margin-top: 0.8rem;
}

.dash-body.legal-page .legal-section code,
.dash-body.legal-page .legal-section .font-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9em;
    color: var(--dash-text);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.045);
    padding: 0.05rem 0.32rem;
}

.dash-body.legal-page .legal-section table {
    min-width: 42rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.dash-body.legal-page .legal-section th {
    color: var(--dash-text);
    background: rgba(255, 255, 255, 0.035);
}

.dash-body.legal-page .legal-section th,
.dash-body.legal-page .legal-section td {
    border-color: rgba(255, 255, 255, 0.065);
}

.dash-body.legal-page .legal-section tbody tr:hover {
    background: rgba(59, 130, 246, 0.035);
}

.dash-body.legal-page .legal-redirect {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--dash-bg);
}

.dash-body.legal-page .legal-redirect-card {
    width: 100%;
    max-width: 28rem;
    padding: 2rem;
    text-align: center;
    background: var(--dash-surface);
}

.dash-body.legal-page .legal-redirect-card p {
    font-size: 14px;
    color: var(--dash-text-secondary);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .dash-body.legal-page .legal-top {
        border-radius: 16px;
    }

    .dash-body.legal-page .legal-back-link {
        width: 100%;
        justify-content: center;
    }

    .dash-body.legal-page .legal-top [data-locale-switcher] {
        width: 100%;
    }

    .dash-body.legal-page .legal-top [data-locale-switcher] button {
        width: 100%;
    }

    .dash-body.legal-page .legal-hero,
    .dash-body.legal-page .legal-section {
        border-radius: 18px;
    }

    .dash-body.legal-page .legal-title {
        line-height: 1.05;
    }
}
