/* Legal-page styling is intentionally scoped so the rest of the site UI stays unchanged. */
.legal-page--redesigned {
    --legal-ink: #172033;
    --legal-muted: #657087;
    --legal-line: #e7ebf2;
    --legal-accent: #5367e8;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--legal-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(24, 39, 75, .08)
}

.legal-page--redesigned .legal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 5vw, 56px);
    background: linear-gradient(125deg, #111a31 0%, #1b2d52 58%, #394c85 100%);
    color: #fff
}

.legal-page--redesigned .legal-hero-orb {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none
}

.legal-page--redesigned .legal-hero-orb--one {
    width: 300px;
    height: 300px;
    right: -70px;
    top: -150px;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .025), 0 0 0 75px rgba(255, 255, 255, .02)
}

.legal-page--redesigned .legal-hero-orb--two {
    width: 160px;
    height: 160px;
    right: 16%;
    bottom: -120px;
    background: rgba(130, 151, 255, .13)
}

.legal-page--redesigned .legal-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: #cbd5ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em
}

.legal-page--redesigned .legal-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #91a4ff;
    box-shadow: 0 0 0 5px rgba(145, 164, 255, .13)
}

.legal-page--redesigned .legal-eyebrow-divider {
    opacity: .45
}

.legal-page--redesigned .legal-hero h1 {
    position: relative;
    margin: 18px 0 10px;
    color: #fff;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.12
}

.legal-page--redesigned .legal-hero-subtitle {
    max-width: 600px;
    margin: 0;
    color: #d6def1;
    font-size: 16px;
    line-height: 1.7
}

.legal-page--redesigned .legal-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
    color: #e1e7f7;
    font-size: 12px;
    font-weight: 600
}

.legal-page--redesigned .legal-updated-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #cbd5ff;
    font-size: 16px
}

.legal-page--redesigned .legal-meta-divider {
    width: 1px;
    height: 17px;
    margin: 0 3px;
    background: rgba(255, 255, 255, .25)
}

.legal-page--redesigned .legal-reading-label {
    color: #c3cce2
}

.legal-page--redesigned .legal-introduction {
    position: relative;
    display: flex;
    gap: 17px;
    margin: 30px clamp(20px, 4vw, 42px) 24px;
    padding: 23px 25px;
    border: 1px solid #e4e9ff;
    border-radius: 16px;
    background: linear-gradient(110deg, #f7f8ff, #fbfcff)
}

.legal-page--redesigned .legal-intro-mark {
    flex: 0 0 auto;
    color: #6478ec;
    font-family: Georgia, serif;
    font-size: 50px;
    line-height: .9
}

.legal-page--redesigned .legal-introduction p {
    margin: 0;
    color: #39445b;
    font-size: 15px;
    line-height: 1.85
}

.legal-page--redesigned .legal-toc {
    margin: 0 clamp(20px, 4vw, 42px) 28px;
    padding: 24px;
    border: 1px solid var(--legal-line);
    border-radius: 18px;
    background: #fff
}

.legal-page--redesigned .legal-toc-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px
}

.legal-page--redesigned .legal-toc-kicker {
    color: var(--legal-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em
}

.legal-page--redesigned .legal-toc-heading h2 {
    margin: 5px 0 0;
    color: var(--legal-ink);
    font-size: 21px;
    letter-spacing: -.025em
}

.legal-page--redesigned .legal-toc-count {
    padding: 7px 10px;
    border-radius: 8px;
    background: #f1f3ff;
    color: #5265d5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap
}

.legal-page--redesigned .legal-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.legal-page--redesigned .legal-toc-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    color: #3e4960;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    transition: background .18s, border-color .18s, transform .18s
}

.legal-page--redesigned .legal-toc-link span {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    height: 25px;
    border-radius: 7px;
    background: #f0f2ff;
    color: #5b6de0;
    font-size: 10px;
    font-weight: 800
}

.legal-page--redesigned .legal-toc-link:hover {
    transform: translateY(-1px);
    border-color: #cdd5ff;
    background: #f8f9ff;
    color: #283b9b
}

.legal-page--redesigned .legal-document {
    padding: 0 clamp(20px, 4vw, 42px)
}

.legal-page--redesigned .legal-section {
    scroll-margin-top: 28px;
    padding: 27px 0 29px;
    border-top: 1px solid var(--legal-line)
}

.legal-page--redesigned .legal-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 13px
}

.legal-page--redesigned .legal-section-number {
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    height: 37px;
    border: 1px solid #e1e6ff;
    border-radius: 11px;
    background: #f3f5ff;
    color: #5267df;
    font-size: 12px;
    font-weight: 850
}

.legal-page--redesigned .legal-section h2 {
    margin: 4px 0 0;
    color: var(--legal-ink);
    font-size: clamp(19px, 2.5vw, 23px);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.35
}

.legal-page--redesigned .legal-section-content {
    padding-left: 51px
}

.legal-page--redesigned .legal-section p,
.legal-page--redesigned .legal-section li {
    color: #515d72;
    font-size: 14px;
    line-height: 1.85
}

.legal-page--redesigned .legal-section p {
    margin: 0 0 12px
}

.legal-page--redesigned .legal-section p:last-child {
    margin-bottom: 0
}

.legal-page--redesigned .legal-section ul {
    display: grid;
    gap: 9px;
    margin: 10px 0 15px;
    padding-left: 20px
}

.legal-page--redesigned .legal-section li {
    padding-left: 3px
}

.legal-page--redesigned .legal-section li::marker {
    color: #6478e9
}

.legal-page--redesigned .legal-section strong {
    color: #26334a
}

.legal-page--redesigned .legal-section a {
    color: #4e61d7;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px
}

.legal-page--redesigned .legal-contact-strip {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px clamp(20px, 4vw, 42px) 35px;
    padding: 20px;
    border: 1px solid #dfe5ff;
    border-radius: 16px;
    background: linear-gradient(110deg, #f5f7ff, #fbfcff)
}

.legal-page--redesigned .legal-contact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    height: 43px;
    border-radius: 13px;
    background: #e7ebff;
    color: #5267d8;
    font-size: 20px
}

.legal-page--redesigned .legal-contact-strip>div:nth-child(2) {
    flex: 1;
    min-width: 0
}

.legal-page--redesigned .legal-contact-strip strong {
    display: block;
    color: var(--legal-ink);
    font-size: 14px
}

.legal-page--redesigned .legal-contact-strip p {
    margin: 4px 0 0;
    color: var(--legal-muted);
    font-size: 12px;
    line-height: 1.6
}

.legal-page--redesigned .legal-contact-strip>a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 9px;
    background: #5367df;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    transition: background .18s
}

.legal-page--redesigned .legal-contact-strip>a:hover {
    background: #3e51c5
}


/*  */
.scs-thankyou {
    --scs-red: #dc2626;
    --scs-dark: #18181b;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 28px 0;
    padding: 42px 32px 24px;
    border: 1px solid #f1d6d6;
    border-radius: 22px;
    background: linear-gradient(135deg, #fffafa, #ffffff 55%, #fff1f2);
    color: var(--scs-dark);
    font-family: inherit;
}

.scs-thankyou-glow {
    position: absolute;
    z-index: -1;
    width: 230px;
    height: 230px;
    top: -130px;
    right: -50px;
    background: #fecaca;
    border-radius: 50%;
    filter: blur(65px);
    opacity: .65;
}

.scs-thankyou-content {
    max-width: 850px;
    margin: 0 auto;
}

.scs-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--scs-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.scs-thankyou h2 {
    margin: 0 0 15px;
    color: #18181b;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.scs-intro {
    max-width: 700px;
    margin: 0 0 24px;
    color: #52525b;
    font-size: 15px;
    line-height: 1.8;
}

.scs-actions,
.scs-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scs-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.scs-btn:hover {
    transform: translateY(-2px);
}

.scs-btn-primary {
    color: #fff !important;
    background: #b91c1c;
    border-color: var(--scs-red);
}

.scs-btn-primary:hover {
    background: #b91c1c;
}

.scs-btn-outline {
    color: #27272a !important;
    background: #fff;
    border-color: #e4e4e7;
}

.scs-btn-outline:hover {
    background: #fff1f2;
    border-color: #fca5a5;
}

.scs-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.scs-links>a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px 12px;
    border: 1px solid #e9e4e4;
    border-radius: 13px;
    background: rgba(255, 255, 255, .85);
    color: #27272a;
    text-decoration: none !important;
    transition: border-color .2s ease, transform .2s ease;
}

.scs-links>a:hover {
    border-color: #f87171;
    transform: translateY(-2px);
}

.scs-links>a>span:first-child {
    font-size: 22px;
}

.scs-links>a>span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.scs-links strong {
    font-size: 12px;
    line-height: 1.4;
}

.scs-links small {
    color: #71717a;
    font-size: 11px;
    line-height: 1.5;
}

.scs-links>a>b {
    color: var(--scs-red);
}

.scs-footer-note {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #f0e4e4;
    color: #71717a;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.scs-footer-note a {
    color: var(--scs-red);
    font-weight: 700;
    text-decoration: none;
}

/* Share modal */
.scs-modal[hidden] {
    display: none !important;
}

.scs-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.scs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, .7);
    backdrop-filter: blur(5px);
}

.scs-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border: 1px solid #f1d6d6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 90px rgba(0, 0, 0, .25);
}

.scs-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f5;
    color: #27272a;
    font-size: 25px;
    cursor: pointer;
}

.scs-modal-box h3 {
    margin: 0 0 12px;
    color: #18181b;
    font-size: 25px;
    line-height: 1.3;
}

.scs-modal-box>p {
    color: #52525b;
    font-size: 13px;
    line-height: 1.8;
}

.scs-modal-box label {
    display: block;
    margin: 18px 0 8px;
    color: #27272a;
    font-size: 12px;
    font-weight: 700;
}

#scsShareText {
    display: block;
    width: 100%;
    min-height: 190px;
    padding: 13px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fafafa;
    color: #3f3f46;
    font: 12px/1.8 inherit;
    resize: vertical;
    box-sizing: border-box;
}

.scs-modal-actions {
    margin-top: 14px;
}

.scs-modal-actions .scs-btn {
    flex: 1;
}

.scs-copy-status {
    min-height: 20px;
    margin-bottom: 0;
    color: #15803d !important;
    font-weight: 700;
}

.scs-modal-hint {
    display: block;
    margin-top: 12px;
    color: #71717a;
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .scs-thankyou {
        padding: 30px 18px 20px;
        border-radius: 16px;
    }

    .scs-links {
        grid-template-columns: 1fr;
    }

    .scs-modal-box {
        padding: 25px 18px;
    }

    .scs-modal-actions {
        flex-direction: column;
    }

    .scs-actions .scs-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {

    .scs-btn,
    .scs-links>a {
        transition: none;
    }
}

/*  */

@media(max-width:640px) {
    .legal-page--redesigned {
        border-radius: 17px
    }

    .legal-page--redesigned .legal-hero {
        padding: 29px 22px
    }

    .legal-page--redesigned .legal-hero-subtitle {
        font-size: 14px
    }

    .legal-page--redesigned .legal-reading-label {
        width: 100%;
        padding-left: 35px
    }

    .legal-page--redesigned .legal-meta-divider {
        display: none
    }

    .legal-page--redesigned .legal-introduction {
        gap: 10px;
        margin: 20px 16px;
        padding: 18px
    }

    .legal-page--redesigned .legal-introduction p {
        font-size: 14px
    }

    .legal-page--redesigned .legal-toc {
        margin: 0 16px 20px;
        padding: 18px
    }

    .legal-page--redesigned .legal-toc-grid {
        grid-template-columns: 1fr
    }

    .legal-page--redesigned .legal-document {
        padding: 0 20px
    }

    .legal-page--redesigned .legal-section {
        padding: 23px 0
    }

    .legal-page--redesigned .legal-section-content {
        padding-left: 0
    }

    .legal-page--redesigned .legal-section-heading {
        gap: 11px
    }

    .legal-page--redesigned .legal-section-number {
        flex-basis: 32px;
        height: 32px
    }

    .legal-page--redesigned .legal-section p,
    .legal-page--redesigned .legal-section li {
        font-size: 13.5px
    }

    .legal-page--redesigned .legal-contact-strip {
        align-items: flex-start;
        flex-wrap: wrap;
        margin: 0 16px 22px;
        padding: 16px
    }

    .legal-page--redesigned .legal-contact-strip>div:nth-child(2) {
        width: calc(100% - 60px)
    }

    .legal-page--redesigned .legal-contact-strip>a {
        margin-left: 58px
    }
}

@media(prefers-reduced-motion:reduce) {
    .legal-page--redesigned * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}