.legal-page {
    color: #111a44;
    background: #f8f9fd;
}

.legal-page main {
    overflow: clip;
}

.legal-page a:not(.button):not(.brand):not(.nav-links a):not(.footer-links a) {
    text-underline-offset: 3px;
}

.legal-header {
    border-bottom-color: rgba(230, 233, 242, .86);
}

.legal-nav-menu .nav-links a[aria-current="page"] {
    color: #684af3;
}

.legal-hero {
    position: relative;
    isolation: isolate;
    padding: 104px 0 118px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(91, 63, 236, .2), transparent 43%),
        #0b1235;
}

.legal-hero::before,
.legal-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.legal-hero::before {
    top: -280px;
    right: -120px;
    width: 780px;
    height: 780px;
    border: 1px solid rgba(135, 110, 255, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(114, 80, 255, .025), 0 0 0 210px rgba(114, 80, 255, .018);
}

.legal-hero::after {
    right: 0;
    bottom: 0;
    left: 0;
    height: 55%;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to top, #000, transparent);
}

.legal-hero-glow {
    position: absolute;
    z-index: -1;
    right: 17%;
    bottom: -240px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(102, 72, 246, .31);
    filter: blur(110px);
}

.legal-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
    gap: 90px;
    align-items: center;
}

.legal-kicker,
.legal-section-label,
.legal-card-label {
    margin: 0;
    color: #6748ea;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bdb0ff;
}

.legal-kicker span {
    width: 24px;
    height: 1px;
    background: currentColor;
}

.legal-hero h1 {
    max-width: 760px;
    margin: 22px 0 24px;
    color: #fff;
    font-size: clamp(48px, 6vw, 76px);
    line-height: .99;
    letter-spacing: -.065em;
}

.legal-hero h1 span {
    color: #8265ff;
}

.legal-lead {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .63);
    font-size: 18px;
    line-height: 1.75;
}

.legal-meta {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-meta span {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .73);
    background: rgba(255, 255, 255, .055);
    font-size: 11px;
    font-weight: 700;
}

.legal-meta svg {
    width: 15px;
    height: 15px;
    color: #8e76ff;
}

.legal-hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-hero-actions .button {
    min-height: 51px;
}

.legal-hero-actions .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .07);
}

.legal-hero-actions .button svg {
    width: 17px;
    height: 17px;
}

.legal-hero-card {
    position: relative;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
}

.legal-hero-card::after {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fe1ac;
    box-shadow: 0 0 0 5px rgba(111, 225, 172, .1);
    content: "";
}

.legal-hero-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 25px;
    border: 1px solid rgba(130, 101, 255, .35);
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #9f8bff;
    background: rgba(117, 82, 248, .16);
}

.legal-hero-card-icon svg {
    width: 24px;
    height: 24px;
}

.legal-hero-card .legal-card-label {
    color: #9f8bff;
}

.legal-hero-card h2 {
    margin: 9px 0 14px;
    color: #fff;
    font-size: 27px;
    line-height: 1.22;
    letter-spacing: -.04em;
}

.legal-hero-card > p:not(.legal-card-label) {
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    line-height: 1.75;
}

.legal-hero-card > a {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #b7a9ff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.legal-hero-card > a svg {
    width: 16px;
    height: 16px;
}

.legal-overview {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}

.legal-overview-grid {
    overflow: hidden;
    border: 1px solid #e4e7f0;
    border-radius: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #fff;
    box-shadow: 0 24px 65px rgba(17, 26, 68, .11);
}

.legal-overview article {
    min-height: 132px;
    padding: 29px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.legal-overview article + article {
    border-left: 1px solid #e7eaf3;
}

.legal-overview article > span {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #674af3;
    background: #f0edff;
}

.legal-overview article > span svg {
    width: 20px;
    height: 20px;
}

.legal-overview h2 {
    margin: 2px 0 7px;
    color: #111a44;
    font-size: 15px;
}

.legal-overview p {
    margin: 0;
    color: #68728e;
    font-size: 11px;
    line-height: 1.65;
}

.legal-layout {
    padding-top: 112px;
    padding-bottom: 130px;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 92px;
}

.legal-toc-inner {
    padding: 20px;
    border: 1px solid #e3e6ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 13px 38px rgba(17, 26, 68, .04);
}

.legal-toc p {
    padding: 0 7px 13px;
    margin: 0 0 9px;
    border-bottom: 1px solid #eceef4;
    color: #111a44;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.legal-toc nav {
    display: grid;
    gap: 1px;
}

.legal-toc nav a {
    padding: 7px;
    border-radius: 7px;
    color: #6a7390;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.legal-toc nav a:hover {
    color: #5d40e9;
    background: #f3f0ff;
    transform: translateX(2px);
}

.legal-toc-contact {
    min-height: 43px;
    padding: 10px 12px;
    margin-top: 15px;
    border: 1px solid #ded8ff;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f43eb;
    background: #f2efff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.legal-toc-contact svg {
    width: 15px;
    height: 15px;
}

.legal-content {
    min-width: 0;
}

.legal-reading-note {
    max-width: 850px;
    padding: 18px 21px;
    margin-bottom: 56px;
    border: 1px solid #e0dcfb;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    color: #6045ec;
    background: #f4f2ff;
}

.legal-reading-note > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}

.legal-reading-note svg {
    width: 20px;
    height: 20px;
}

.legal-reading-note strong {
    display: block;
    color: #111a44;
    font-size: 12px;
}

.legal-reading-note p {
    margin: 3px 0 0;
    color: #69728c;
    font-size: 10px;
    line-height: 1.6;
}

.legal-section {
    position: relative;
    max-width: 920px;
    padding-bottom: 82px;
    scroll-margin-top: 105px;
}

.legal-section + .legal-section {
    padding-top: 82px;
    border-top: 1px solid #e4e7ef;
}

.legal-section-number {
    position: absolute;
    z-index: -1;
    top: -36px;
    right: 2px;
    color: #f0f1f7;
    font-size: 86px;
    font-weight: 850;
    letter-spacing: -.08em;
    line-height: 1;
    user-select: none;
}

.legal-section + .legal-section .legal-section-number {
    top: 47px;
}

.legal-section > h2 {
    max-width: 760px;
    margin: 8px 0 22px;
    color: #111a44;
    font-size: 37px;
    line-height: 1.16;
    letter-spacing: -.04em;
}

.legal-section > p {
    max-width: 850px;
    margin: 0 0 19px;
    color: #505a78;
    font-size: 14px;
    line-height: 1.85;
}

.legal-section > p:last-child {
    margin-bottom: 0;
}

.legal-section > p a,
.legal-list a,
.legal-definition-grid a,
.legal-identity-card a {
    color: #5e42ed;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(94, 66, 237, .28);
}

.legal-list {
    max-width: 850px;
    padding: 0;
    margin: 27px 0;
    display: grid;
    gap: 11px;
    list-style: none;
}

.legal-list li {
    position: relative;
    padding: 16px 18px 16px 47px;
    border: 1px solid #e3e6ef;
    border-radius: 14px;
    color: #5a6480;
    background: #fff;
    font-size: 12px;
    line-height: 1.7;
}

.legal-list li::before {
    position: absolute;
    top: 20px;
    left: 19px;
    width: 9px;
    height: 9px;
    border: 3px solid #d8d0ff;
    border-radius: 50%;
    background: #6a4df7;
    content: "";
}

.legal-list--prohibited li::before {
    border: 0;
    background:
        linear-gradient(45deg, transparent 43%, #e06a68 43%, #e06a68 57%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, #e06a68 43%, #e06a68 57%, transparent 57%);
}

.legal-list strong {
    color: #111a44;
}

.legal-callout {
    max-width: 850px;
    padding: 21px 23px;
    margin: 26px 0;
    border: 1px solid #dfe3ee;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.legal-callout > span svg {
    width: 20px;
    height: 20px;
}

.legal-callout p {
    margin: 0;
    color: #555f7c;
    font-size: 12px;
    line-height: 1.7;
}

.legal-callout--neutral {
    color: #6548f2;
    background: #f4f1ff;
    border-color: #e0dafd;
}

.legal-callout--warning {
    color: #c66920;
    background: #fff8ef;
    border-color: #f2d9bd;
}

.legal-callout--dark {
    position: relative;
    overflow: hidden;
    color: #9c88ff;
    background: #111a44;
    border-color: #111a44;
}

.legal-callout--dark::after {
    position: absolute;
    right: -65px;
    bottom: -90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(111, 80, 247, .25);
    filter: blur(20px);
    content: "";
}

.legal-callout--dark > * {
    position: relative;
    z-index: 1;
}

.legal-callout--dark p,
.legal-callout--dark p strong {
    color: #fff;
}

.legal-card-grid {
    max-width: 850px;
    margin: 29px 0 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.legal-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card-grid article {
    min-height: 190px;
    padding: 23px;
    border: 1px solid #e2e5ef;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 13px 35px rgba(17, 26, 68, .035);
}

.legal-card-grid article > span {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #694cf5;
    background: #f0edff;
}

.legal-card-grid article > span svg {
    width: 18px;
    height: 18px;
}

.legal-card-grid h3 {
    margin: 18px 0 7px;
    color: #111a44;
    font-size: 15px;
}

.legal-card-grid p {
    margin: 0;
    color: #65708d;
    font-size: 11px;
    line-height: 1.75;
}

.legal-split-card {
    max-width: 850px;
    margin: 29px 0 26px;
    overflow: hidden;
    border: 1px solid #e1e4ef;
    border-radius: 19px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #e1e4ef;
    gap: 1px;
}

.legal-split-card > div {
    padding: 26px;
    background: #fff;
}

.legal-split-card > div > span {
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #694cf5;
    background: #f0edff;
}

.legal-split-card svg {
    width: 20px;
    height: 20px;
}

.legal-split-card h3 {
    margin: 0 0 8px;
    color: #111a44;
    font-size: 17px;
}

.legal-split-card p {
    margin: 0;
    color: #65708d;
    font-size: 11px;
    line-height: 1.72;
}

.legal-timeline {
    max-width: 850px;
    margin: 30px 0 27px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.legal-timeline > div {
    position: relative;
    padding: 0 24px 0 0;
}

.legal-timeline > div:not(:last-child)::after {
    position: absolute;
    top: 17px;
    right: 7px;
    left: 47px;
    height: 1px;
    background: #dcd7fa;
    content: "";
}

.legal-timeline > div > span {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border: 1px solid #dcd5ff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #6246ef;
    background: #f3f0ff;
    font-size: 11px;
    font-weight: 850;
}

.legal-timeline strong {
    display: block;
    margin-bottom: 5px;
    color: #111a44;
    font-size: 12px;
}

.legal-timeline p {
    margin: 0;
    color: #6c7691;
    font-size: 10px;
    line-height: 1.65;
}

.legal-definition-grid {
    max-width: 850px;
    margin: 29px 0 0;
    overflow: hidden;
    border: 1px solid #e1e4ef;
    border-radius: 19px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #e1e4ef;
}

.legal-definition-grid article {
    min-height: 142px;
    padding: 23px;
    background: #fff;
}

.legal-definition-grid h3 {
    margin: 0 0 8px;
    color: #111a44;
    font-size: 14px;
}

.legal-definition-grid p {
    margin: 0;
    color: #65708d;
    font-size: 11px;
    line-height: 1.72;
}

.trust-assurance-grid {
    max-width: 850px;
    margin: 30px 0 27px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.trust-assurance-grid article {
    min-height: 190px;
    padding: 24px;
    border: 1px solid #e1e5ef;
    border-radius: 19px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 17px;
    align-items: start;
    background: #fff;
    box-shadow: 0 13px 35px rgba(17, 26, 68, .035);
}

.trust-assurance-grid article > span {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #674af3;
    background: #f0edff;
}

.trust-assurance-grid article > span svg {
    width: 20px;
    height: 20px;
}

.trust-assurance-grid h3 {
    margin: 7px 0 8px;
    color: #111a44;
    font-size: 16px;
}

.trust-assurance-grid article p:last-child {
    margin: 0;
    color: #65708d;
    font-size: 11px;
    line-height: 1.72;
}

.trust-assurance-grid .is-implemented > span {
    color: #098b5d;
    background: #e8f8f1;
}

.trust-assurance-grid .is-contract > span {
    color: #2672ca;
    background: #eaf3ff;
}

.trust-assurance-grid .is-not-claimed > span {
    color: #c36920;
    background: #fff3e7;
}

.legal-related-links {
    max-width: 850px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.legal-related-links > a {
    min-height: 132px;
    padding: 20px;
    border: 1px solid #e1e5ef;
    border-radius: 17px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    align-content: center;
    color: #111a44;
    background: #fff;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.legal-related-links > a:hover {
    border-color: #d5ceff;
    box-shadow: 0 14px 34px rgba(17, 26, 68, .07);
    transform: translateY(-2px);
}

.legal-related-links > a > span {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #674af3;
    background: #f0edff;
}

.legal-related-links svg {
    width: 17px;
    height: 17px;
}

.legal-related-links strong {
    align-self: end;
    font-size: 13px;
}

.legal-related-links small {
    align-self: start;
    margin-top: 4px;
    color: #6b7590;
    font-size: 9px;
    line-height: 1.45;
}

.legal-contact-card {
    max-width: 850px;
    padding: 32px;
    margin-top: 30px;
    border: 1px solid #ded9ff;
    border-radius: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, #f4f1ff, #fff 64%);
    box-shadow: 0 20px 45px rgba(17, 26, 68, .05);
}

.legal-contact-card h3 {
    margin: 7px 0;
    color: #111a44;
    font-size: 24px;
}

.legal-contact-card p:last-child {
    margin: 0;
    color: #646e8a;
    font-size: 11px;
    line-height: 1.7;
}

.legal-contact-card .button {
    white-space: nowrap;
}

.legal-contact-card .button svg {
    width: 17px;
    height: 17px;
}

.legal-contact-card--secondary {
    border-color: #dfe4ef;
    background: #fff;
}

.legal-identity-card {
    max-width: 850px;
    padding: 19px 22px;
    margin-top: 16px;
    border: 1px solid #e3e6ef;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: #6b7590;
    background: #fff;
    font-size: 10px;
    line-height: 1.65;
}

.legal-identity-card strong {
    color: #111a44;
}

.legal-footer {
    position: relative;
}

.legal-footer .footer-links [aria-current="page"] {
    color: #b9abff;
}

@media (max-width: 1040px) {
    .legal-hero-grid {
        gap: 50px;
    }

    .legal-layout {
        grid-template-columns: 215px minmax(0, 1fr);
        gap: 45px;
    }

    .legal-toc-inner {
        padding: 17px;
    }

    .legal-card-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-related-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 940px) {
    .legal-header .nav-menu,
    .legal-header.is-scrolled .nav-menu {
        top: 84px;
    }
}

@media (max-width: 860px) {
    .legal-hero {
        padding: 80px 0 100px;
    }

    .legal-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .legal-hero-card {
        max-width: 610px;
    }

    .legal-overview-grid {
        grid-template-columns: 1fr;
    }

    .legal-overview article {
        min-height: 0;
    }

    .legal-overview article + article {
        border-top: 1px solid #e7eaf3;
        border-left: 0;
    }

    .legal-layout {
        padding-top: 70px;
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3px 12px;
    }

    .legal-toc-contact {
        width: max-content;
    }
}

@media (max-width: 720px) {
    .legal-header .nav-menu,
    .legal-header.is-scrolled .nav-menu {
        top: 78px;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        padding: 64px 0 88px;
    }

    .legal-hero h1 {
        margin-top: 18px;
        font-size: clamp(42px, 13vw, 58px);
    }

    .legal-lead {
        font-size: 15px;
    }

    .legal-hero-card {
        padding: 27px;
        border-radius: 22px;
    }

    .legal-overview {
        margin-top: -35px;
    }

    .legal-overview article {
        padding: 20px;
    }

    .legal-layout {
        padding-bottom: 90px;
    }

    .legal-toc nav,
    .legal-card-grid,
    .legal-card-grid--three,
    .legal-split-card,
    .legal-definition-grid,
    .trust-assurance-grid {
        grid-template-columns: 1fr;
    }

    .legal-hero-actions {
        display: grid;
    }

    .legal-hero-actions .button {
        width: 100%;
    }

    .legal-section,
    .legal-section + .legal-section {
        padding-bottom: 64px;
    }

    .legal-section + .legal-section {
        padding-top: 64px;
    }

    .legal-section + .legal-section .legal-section-number {
        top: 53px;
    }

    .legal-section-number {
        font-size: 62px;
    }

    .legal-section > h2 {
        font-size: 31px;
    }

    .legal-card-grid article,
    .legal-definition-grid article,
    .trust-assurance-grid article {
        min-height: 0;
    }

    .legal-timeline {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .legal-timeline > div {
        padding: 0 0 0 49px;
    }

    .legal-timeline > div > span {
        position: absolute;
        top: 0;
        left: 0;
    }

    .legal-timeline > div:not(:last-child)::after {
        top: 35px;
        bottom: -21px;
        left: 17px;
        width: 1px;
        height: auto;
    }

    .legal-contact-card {
        padding: 25px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .legal-contact-card .button {
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .legal-meta {
        display: grid;
    }

    .legal-meta span {
        justify-content: flex-start;
    }

    .legal-reading-note,
    .legal-callout {
        grid-template-columns: 1fr;
    }

    .legal-card-grid article,
    .legal-split-card > div,
    .legal-definition-grid article,
    .trust-assurance-grid article {
        padding: 21px;
    }

    .legal-identity-card {
        display: grid;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-toc nav a,
    .legal-related-links > a {
        transition: none;
    }
}
