html,
    body {
        min-height: 100%;
        background: #020814;
    }

    body.theme-dashboard {
        background:
            radial-gradient(920px 420px at 12% 0%, rgba(41, 219, 255, 0.10), transparent 60%),
            radial-gradient(780px 360px at 100% 0%, rgba(41, 219, 255, 0.06), transparent 58%),
            linear-gradient(180deg, #04101d 0%, #020814 48%, #020710 100%);
        color: #f4f8fc;
    }

    body.theme-dashboard main,
    body.theme-dashboard .page-content,
    body.theme-dashboard .content-wrapper,
    body.theme-dashboard .app-main {
        background: transparent !important;
    }

    body.theme-dashboard header,
    body.theme-dashboard .site-header,
    body.theme-dashboard .navbar,
    body.theme-dashboard footer,
    body.theme-dashboard .site-footer {
        background: transparent !important;
        color: #dce8f4;
    }

    body.theme-dashboard header,
    body.theme-dashboard .site-header,
    body.theme-dashboard .navbar {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    body.theme-dashboard footer,
    body.theme-dashboard .site-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.theme-dashboard header a,
    body.theme-dashboard .site-header a,
    body.theme-dashboard .navbar a,
    body.theme-dashboard footer a,
    body.theme-dashboard .site-footer a {
        color: rgba(220, 232, 244, 0.88);
        text-decoration: none;
    }

    body.theme-dashboard header a:hover,
    body.theme-dashboard .site-header a:hover,
    body.theme-dashboard .navbar a:hover,
    body.theme-dashboard footer a:hover,
    body.theme-dashboard .site-footer a:hover {
        color: #ffffff;
    }

    body.theme-dashboard .navbar-brand,
    body.theme-dashboard .site-brand,
    body.theme-dashboard .brand,
    body.theme-dashboard .logo {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
    }

    .rc-brand-logo {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }


    body.theme-dashboard footer p,
    body.theme-dashboard footer li,
    body.theme-dashboard .site-footer p,
    body.theme-dashboard .site-footer li {
        color: rgba(191, 206, 223, 0.78);
    }

    body.theme-dashboard footer img,
    body.theme-dashboard .site-footer img {
        height: 58px !important;
        max-height: 58px !important;
        width: auto !important;
        max-width: none !important;
        object-fit: contain;
    }


    .legal-page {
        --legal-text: #f4f8fc;
        --legal-muted: rgba(191, 206, 223, 0.82);
        --legal-soft: rgba(151, 170, 193, 0.72);
        --legal-border: rgba(255, 255, 255, 0.08);
        --legal-border-strong: rgba(41, 219, 255, 0.18);
        --legal-panel: linear-gradient(180deg, rgba(10, 20, 36, 0.94) 0%, rgba(6, 14, 26, 0.98) 100%);
        color: var(--legal-text);
        padding: 7.8rem 0 4.2rem;
        position: relative;
        overflow: hidden;
    }

    .legal-page::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(820px 360px at 82% 0%, rgba(41, 219, 255, 0.06), transparent 68%),
            radial-gradient(760px 320px at 0% 16%, rgba(41, 219, 255, 0.05), transparent 62%);
    }

    .legal-shell {
        position: relative;
        z-index: 1;
    }

    .legal-hero,
    .legal-sidebar-card,
    .legal-panel,
    .legal-note {
        background: var(--legal-panel);
        border: 1px solid var(--legal-border);
        border-radius: 30px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012);
        position: relative;
        overflow: hidden;
    }

    .legal-hero::before,
    .legal-sidebar-card::before,
    .legal-panel::before,
    .legal-note::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(440px 180px at 100% 0%, rgba(41, 219, 255, 0.05), transparent 62%);
    }

    .legal-hero {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .legal-kicker {
        display: inline-flex;
        align-items: center;
        margin-bottom: 1rem;
        color: #25d7ff;
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .legal-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .legal-title {
        margin: 0;
        font-size: clamp(2.35rem, 4vw, 3.9rem);
        line-height: 0.98;
        letter-spacing: -0.05em;
        font-weight: 950;
        color: var(--legal-text);
    }

    .legal-title .accent {
        color: var(--rc-accent);
    }

    .legal-version {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.82rem 1rem;
        border-radius: 999px;
        border: 1px solid var(--legal-border);
        background: rgba(255, 255, 255, 0.035);
        font-size: 0.78rem;
        font-weight: 850;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #dce8f4;
        white-space: nowrap;
    }

    .legal-lead {
        margin: 0 0 1.25rem;
        max-width: 56rem;
        font-size: 1.08rem;
        line-height: 1.75;
        color: var(--legal-muted);
    }

    .legal-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .legal-meta-item {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.75rem 1rem;
        border-radius: 18px;
        border: 1px solid var(--legal-border);
        background: rgba(255, 255, 255, 0.03);
        color: var(--legal-muted);
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .legal-meta-item strong {
        color: #fff;
        font-weight: 800;
    }

    .legal-layout {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .legal-sidebar {
        position: sticky;
        top: 108px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .legal-sidebar-card {
        padding: 1.35rem;
    }

    .legal-sidebar-title {
        margin: 0 0 0.95rem;
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #c9d9ea;
    }

    .legal-nav {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .legal-nav a {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem 0.95rem;
        border-radius: 18px;
        color: var(--legal-muted);
        text-decoration: none;
        border: 1px solid transparent;
        transition: 0.18s ease;
    }

    .legal-nav a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--legal-border);
    }

    .legal-nav-index {
        color: var(--rc-accent);
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        line-height: 1.3;
        min-width: 2.2rem;
    }

    .legal-nav-copy strong {
        display: block;
        font-size: 0.98rem;
        font-weight: 800;
        color: #fff;
        line-height: 1.35;
    }

    .legal-nav-copy span {
        display: block;
        margin-top: 0.16rem;
        font-size: 0.9rem;
        line-height: 1.5;
        color: var(--legal-soft);
    }

    .legal-highlight {
        margin: 0;
        padding-left: 1.05rem;
        color: var(--legal-muted);
    }

    .legal-highlight li + li {
        margin-top: 0.65rem;
    }

    .legal-main {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .legal-panel {
        padding: 1.5rem;
    }

    .legal-panel-head {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .legal-panel-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.65rem;
        height: 2.65rem;
        border-radius: 16px;
        border: 1px solid rgba(41, 219, 255, 0.16);
        background: rgba(41, 219, 255, 0.08);
        color: var(--rc-accent);
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        flex: 0 0 auto;
    }

    .legal-panel-title {
        margin: 0;
        font-size: 1.32rem;
        line-height: 1.2;
        font-weight: 850;
        letter-spacing: -0.02em;
        color: #fff;
    }

    .legal-panel-body,
    .legal-panel-body ol,
    .legal-panel-body ul,
    .legal-panel-body p {
        position: relative;
        z-index: 1;
    }

    .legal-panel-body {
        color: var(--legal-muted);
        font-size: 1rem;
        line-height: 1.8;
    }

    .legal-panel-body ol,
    .legal-panel-body ul {
        margin: 0;
        padding-left: 1.2rem;
    }

    .legal-panel-body li + li {
        margin-top: 0.65rem;
    }

    .legal-panel-body ul {
        margin-top: 0.55rem;
    }

    .legal-panel-body strong {
        color: #fff;
        font-weight: 800;
    }

    .legal-note {
        padding: 1.15rem 1.3rem;
        color: var(--legal-muted);
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .legal-note strong {
        color: #fff;
    }

    .legal-note--info {
        border-color: rgba(41, 219, 255, 0.14);
        background: linear-gradient(180deg, rgba(8, 28, 44, 0.95) 0%, rgba(6, 16, 28, 0.98) 100%);
    }

    .legal-note--muted {
        border-color: rgba(255, 255, 255, 0.06);
    }

    @media (max-width: 1199.98px) {
        .legal-layout {
            grid-template-columns: 1fr;
        }

        .legal-sidebar {
            position: static;
        }
    }

    @media (max-width: 767.98px) {
        .legal-page {
            padding: 5.4rem 0 3rem;
        }

        .legal-hero,
        .legal-sidebar-card,
        .legal-panel,
        .legal-note {
            border-radius: 24px;
        }

        .legal-hero,
        .legal-sidebar-card,
        .legal-panel {
            padding: 1.2rem;
        }

        .legal-title-row {
            flex-direction: column;
            align-items: flex-start;
        }

        .legal-title {
            font-size: clamp(2rem, 10vw, 3rem);
        }

        .legal-panel-head {
            align-items: flex-start;
        }
    }