.sm-legal-body {
    background:
        radial-gradient(circle at top left, rgba(31, 111, 255, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(14, 86, 217, 0.08), transparent 24%),
        linear-gradient(180deg, #f5f8fc 0%, #eef4fb 54%, #f8fafc 100%);
    color: #0f172a;
}

.sm-legal-page {
    position: relative;
}

.sm-legal-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(31, 111, 255, 0.08), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(14, 51, 114, 0.08), transparent 20%);
    pointer-events: none;
}

.sm-legal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #475569;
}

.sm-legal-back-link {
    color: #1f6fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sm-legal-back-link:hover {
    color: #0f56d9;
}

.sm-legal-hero {
    border-color: #dbe4f0;
    background:
        radial-gradient(circle at top right, rgba(31, 111, 255, 0.1), transparent 28%),
        radial-gradient(circle at bottom left, rgba(14, 51, 114, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.sm-legal-hero::before {
    background: radial-gradient(circle, rgba(31, 111, 255, 0.16) 0%, rgba(31, 111, 255, 0) 70%);
}

.sm-legal-hero::after {
    border-color: rgba(31, 111, 255, 0.12);
}

.sm-legal-title {
    max-width: 48rem;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 0.98;
    color: #0f172a;
}

.sm-legal-summary {
    max-width: 44rem;
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
}

.sm-legal-panel {
    border-color: #dbe4f0;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

.sm-legal-panel-metric {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sm-legal-panel-info {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    color: #1e3a8a;
}

.sm-legal-panel-warning {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fffdf5 100%);
    color: #92400e;
}

.sm-legal-panel-neutral {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sm-legal-mini-label {
    color: #64748b;
}

.sm-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sm-legal-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.7rem 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sm-legal-nav-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1f6fff;
    transform: translateY(-1px);
}

.sm-legal-nav-link-active {
    border-color: #1f6fff;
    background: #1f6fff;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 111, 255, 0.16);
}

.sm-legal-section-card {
    border-color: #dbe4f0;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.sm-legal-section-number {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1f6fff;
}

.sm-legal-section-title {
    font-size: 1.55rem;
    color: #0f172a;
}

.sm-legal-section-copy {
    font-size: 0.95rem;
    line-height: 1.95;
    color: #475569;
}

.sm-legal-bullet {
    border: 1px solid #e2e8f0;
    border-radius: 1.35rem;
    background: #f8fafc;
    padding: 1rem;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #334155;
}

.sm-legal-support-copy {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #475569;
}

@media (max-width: 640px) {
    .sm-legal-toolbar {
        align-items: stretch;
    }

    .sm-legal-toolbar > * {
        width: 100%;
    }

    .sm-legal-nav {
        gap: 0.6rem;
    }

    .sm-legal-nav-link {
        width: 100%;
        justify-content: center;
    }

    .sm-legal-title {
        font-size: 2.15rem;
        line-height: 1.02;
    }
}
