@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

.legal-page {
    background: #ffffff;
    color: #0f1b47;
}

.legal-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: rgba(99, 102, 241, 0.12);
    z-index: 1050;
}

.legal-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4f46e5, #3b82f6, #06b6d4);
    transition: width 100ms linear;
}

.legal-hero {
    border: 1px solid rgba(79, 70, 229, 0.18);
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    border-radius: 18px;
    padding: 1.2rem 1.35rem;
    box-shadow: 0 14px 30px rgba(30, 41, 122, 0.12);
}

.legal-hero h1 {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.legal-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .legal-shell {
        grid-template-columns: 1fr;
    }
}

.legal-toc {
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    position: sticky;
    top: 84px;
}

.legal-toc__title {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.6rem;
}

.legal-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.legal-toc__item a {
    text-decoration: none;
    color: #334155;
    font-size: 0.92rem;
    border-radius: 10px;
    display: block;
    padding: 0.36rem 0.5rem;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.legal-toc__item a:hover {
    background: #eef2ff;
    color: #1d4ed8;
    transform: translateX(-2px);
}

.legal-toc__item a.is-active {
    background: #e0e7ff;
    color: #1e3a8a;
    font-weight: 600;
}

.legal-card {
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(17, 24, 39, 0.1);
}

.legal-content {
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    color: #1e3a8a;
    scroll-margin-top: 90px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 1.35rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.14);
    padding-bottom: 0.3rem;
}

.legal-content p,
.legal-content li {
    color: #334155;
}

.legal-content a {
    color: #2563eb;
}
