/* Legal page — widens the auth card for long-form reading */

.legal-page .auth-card {
    max-width: 820px;
}

html {
    scroll-behavior: smooth;
}

/* --- TOC LINKS --- */
.legal-toc {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.legal-toc-link {
    padding: 10px 22px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass);
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.legal-toc-link:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
}

/* --- DOCUMENT SECTIONS --- */
.legal-doc {
    /* Anchor targets clear the top of the viewport when jumped to */
    scroll-margin-top: 24px;
}

.legal-doc + .legal-doc {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--glass-border);
}

.legal-doc-title {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(to right, var(--cyan-400), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-effective {
    margin: 0 0 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.legal-doc h3 {
    margin: 28px 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.legal-doc h4 {
    margin: 18px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.legal-doc p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.legal-doc ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal-doc li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.legal-doc li::marker {
    color: var(--cyan-400);
}

.legal-doc a {
    color: var(--cyan-400);
    text-decoration: none;
}

.legal-doc a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
.legal-footer {
    margin-top: 40px;
    text-align: center;
}

.legal-footer a {
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .legal-page .auth-card {
        padding: 28px 20px;
    }

    .legal-toc {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .legal-doc-title {
        font-size: 22px;
    }
}
