.rb-legal-page {
    background: #f9f9ff;
    color: #131c2b;
}

.rb-legal-main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rb-legal-main {
    flex: 1 0 auto;
    padding: 0.35rem 0 0;
}

.rb-legal-page .section_navbar {
    margin-top: 0.6rem;
}

.rb-legal-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(249, 249, 255, 0.92);
    border-bottom: 1px solid #e8ecf2;
}

.rb-legal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 5rem;
}

.rb-legal-header__brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 0;
}

.rb-legal-header__logo {
    color: inherit;
    text-decoration: none;
}

.rb-legal-header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.rb-legal-header__nav a,
.rb-legal-footer__links a,
.rb-legal-mobile-toc a,
.rb-legal-toc__list a,
.rb-legal-section a {
    color: #131c2b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rb-legal-header__nav a:hover,
.rb-legal-footer__links a:hover,
.rb-legal-mobile-toc a:hover,
.rb-legal-toc__list a:hover,
.rb-legal-section a:hover {
    color: #2a55ff;
}

.rb-legal-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(19, 28, 43, 0.1);
    background: #1a2bc3;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rb-legal-header__cta:hover {
    background: #10219d;
    box-shadow: 0 14px 28px rgba(26, 43, 195, 0.18);
    transform: translateY(-1px);
}

.rb-legal-frame {
    display: grid;
    grid-template-columns: 22rem minmax(0, 1fr);
    background: #fff;
    border-left: 1px solid #e8ecf2;
    border-right: 1px solid #e8ecf2;
    border-top: 1px solid #e8ecf2;
    margin-top: 0;
    margin-bottom: 3rem;
    overflow: clip;
}

.rb-legal-toc {
    border-right: 1px solid #e8ecf2;
}

.rb-legal-toc__inner {
    position: sticky;
    top: 4.2rem;
    padding: 0.5rem 2rem 3rem;
}

.rb-legal-toc__label {
    margin-bottom: 2rem;
    color: #131c2b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.rb-legal-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.rb-legal-toc__list li {
    max-width: 15rem;
}

.rb-legal-toc__list a {
    display: block;
    color: #1f2937;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.55;
}

.rb-legal-panel {
    padding: 3.8rem clamp(1.5rem, 7vw, 7rem) 6rem;
}

.rb-legal-hero {
    max-width: 42rem;
    margin-bottom: 3.75rem;
}

.rb-legal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.875rem;
    border: 1px solid #e8ecf2;
    border-radius: 0.25rem;
    color: #131c2b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rb-legal-hero__title {
    margin: 1rem 0 0;
    color: #000;
    font-family: Aspekta, Inter, Arial, sans-serif;
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.rb-legal-hero__meta {
    margin-top: 0.75rem;
    color: rgba(19, 28, 43, 0.72);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
}

.rb-legal-hero__intro {
    max-width: 38rem;
    margin: 1.25rem 0 0;
    color: #131c2b;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.rb-legal-mobile-toc {
    display: none;
}

.rb-legal-article {
    max-width: 42rem;
}

.rb-legal-section {
    scroll-margin-top: 7rem;
}

.rb-legal-section + .rb-legal-section {
    margin-top: 4.5rem;
}

.rb-legal-section h2 {
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8ecf2;
    color: #000;
    font-family: Aspekta, Inter, Arial, sans-serif;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.rb-legal-section p,
.rb-legal-section li {
    margin: 0;
    color: #131c2b;
    font-size: 1.0625rem;
    line-height: 1.9;
}

.rb-legal-section p:first-of-type,
.rb-legal-section ul:first-of-type {
    margin-top: 1.5rem;
}

.rb-legal-section p + p,
.rb-legal-section p + ul,
.rb-legal-section ul + p {
    margin-top: 1rem;
}

.rb-legal-section ul {
    margin: 1.5rem 0 0;
    padding-left: 1.25rem;
}

.rb-legal-section li + li {
    margin-top: 0.75rem;
}

.rb-legal-footer {
    margin-top: auto;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid rgba(3, 29, 140, 0.08);
    background: #f4f6ff;
}

.rb-legal-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.rb-legal-footer__brand {
    color: #16203b;
    font-family: Aspekta, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.rb-legal-footer__copy {
    max-width: 28rem;
    margin: 0.625rem 0 0;
    color: #4f5f88;
    line-height: 1.7;
}

.rb-legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
}

.rb-legal-footer__bottom {
    margin-top: 1.5rem;
    color: #5f6d95;
    font-size: 0.9375rem;
}

@media screen and (max-width: 991px) {
    .rb-legal-header__inner,
    .rb-legal-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rb-legal-frame {
        grid-template-columns: 1fr;
        margin-top: 0.25rem;
        margin-bottom: 2.25rem;
    }

    .rb-legal-toc {
        display: none;
    }

    .rb-legal-panel {
        padding: 2.75rem 1.5rem 4rem;
    }

    .rb-legal-mobile-toc {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin: 0 0 2rem;
    }

    .rb-legal-mobile-toc a {
        display: inline-flex;
        align-items: center;
        min-height: 2.5rem;
        padding: 0.625rem 0.875rem;
        border: 1px solid #e8ecf2;
        border-radius: 999px;
        background: #f9f9ff;
        font-size: 0.9375rem;
    }

    .rb-legal-footer__links {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 767px) {
    .rb-legal-main {
        padding-top: 0;
    }

    .rb-legal-panel {
        padding: 2.2rem 1.125rem 2.5rem;
    }

    .rb-legal-hero {
        margin-bottom: 3rem;
    }

    .rb-legal-hero__title {
        font-size: clamp(2.3rem, 11vw, 3.5rem);
    }

    .rb-legal-hero__meta {
        font-size: 1.25rem;
    }

    .rb-legal-hero__intro,
    .rb-legal-section p,
    .rb-legal-section li {
        font-size: 1rem;
    }

    .rb-legal-section + .rb-legal-section {
        margin-top: 3.5rem;
    }
}

@media screen and (max-width: 479px) {
    .rb-legal-frame {
        margin-bottom: 1.75rem;
        border-left: none;
        border-right: none;
    }

    .rb-legal-panel {
        padding: 1.7rem 0 2rem;
    }

    .rb-legal-mobile-toc {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .rb-legal-mobile-toc a {
        width: 100%;
    }

    .rb-legal-hero {
        margin-bottom: 2.25rem;
    }

    .rb-legal-hero__meta {
        font-size: 1.125rem;
    }

    .rb-legal-section + .rb-legal-section {
        margin-top: 3rem;
    }
}
