body.page-terms .legal-page {
    min-height: calc(100vh - 190px);
    padding: 150px 7vw 100px;
    background:#fff !important;
    color: var(--ink)
}

body.page-terms .legal-wrap {
    width: min(100%, 980px);
    margin: 0 auto
}

body.page-terms .legal-intro {
    padding-bottom: 42px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(13, 9, 24, .14)
}

body.page-terms .legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--acid);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase
}

body.page-terms .legal-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor
}

body.page-terms .legal-intro h1 {
    font: 700 clamp(2.7rem, 5vw, 5.2rem) / .92 Syne;
    letter-spacing: -.06em;
    margin: 13px 0 0;

}

body.page-terms .legal-intro p {
    max-width: 760px;
    margin: 0;
    color: #625b69;
    font-size: 1.08rem;
    line-height: 1.75
}

body.page-terms .legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px
}

body.page-terms .legal-meta span {
    padding: 9px 13px;
    border: 1px solid rgba(13, 9, 24, .13);
    border-radius: 999px;
    color: #554e5b;
    background: rgba(124, 77, 255, .045);
    font-size: .78rem;
    font-weight: 600
}

body.page-terms .legal-content {
    counter-reset: legal-section;
    display: grid;
    gap: 42px
}

body.page-terms .legal-section {
    position: relative;
    padding-left: 72px;
    counter-increment: legal-section
}

body.page-terms .legal-section::before {
    content: counter(legal-section);
    position: absolute;
    top: 3px;
    left: 0;
    color: var(--violet);
    font: 700 .78rem Syne;
    letter-spacing: .08em
}

body.page-terms .legal-section h2 {
    margin: 0 0 15px;
    font: 700 clamp(1.25rem, 2.5vw, 1.65rem)/1.2 Syne;
    letter-spacing: -.025em
}

body.page-terms .legal-section p,
body.page-terms .legal-section li {
    color: #514a57;
    font-size: .98rem;
    line-height: 1.8
}

body.page-terms .legal-section p {
    margin: 0 0 14px
}

body.page-terms .legal-section ul {
    margin: 12px 0 0;
    padding-left: 21px
}

body.page-terms .legal-section li+li {
    margin-top: 8px
}

body.page-terms .legal-section strong {
    color: var(--ink)
}

body.page-terms .legal-section a {
    color: #6a37e8;
    text-decoration: underline;
    text-underline-offset: 3px
}

body.page-terms .legal-note {
    padding: 22px 24px;
    border: 1px solid rgba(124, 77, 255, .2);
    border-left: 4px solid var(--violet);
    border-radius: 4px;
    background: linear-gradient(120deg, rgba(124, 77, 255, .07), rgba(221, 21, 138, .04))
}

@media(max-width:700px) {

    body.page-terms .legal-page {
        padding: 120px 22px 72px
    }

    body.page-terms .legal-intro {
        margin-bottom: 38px
    }

    body.page-terms .legal-section {
        padding-left: 0;
        padding-top: 29px
    }

    body.page-terms .legal-section::before {
        top: 0
    }

}

/* Decimal numbering follows the source document */
body.page-terms .legal-content {
    counter-reset: legal-section;
    gap: 16px;
}

body.page-terms .legal-section {
    position: relative;
    counter-increment: legal-section;
    padding: 32px 0 42px clamp(122px, 14vw, 162px);
    min-height: 148px;
    border-bottom: 1px solid rgba(13, 9, 24, .09);
}

body.page-terms .legal-section::before {
    content: counter(legal-section, decimal);
    position: absolute;
    top: 21px;
    left: 0;
    right: auto;
    color: #ede8f2;
    font: 700 clamp(5.4rem, 9vw, 8.7rem)/.86 Syne, sans-serif;
    letter-spacing: -.08em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

body.page-terms .legal-section h2,
body.page-terms .legal-section>p,
body.page-terms .legal-section>ul,
body.page-terms .legal-section>.legal-note {
    position: relative;
    z-index: 1;
}

body.page-terms .legal-section h2 {
    overflow-wrap: anywhere;
}

body.page-terms .legal-intro-description {
    margin-top: 20px !important;
}

body.page-terms .legal-note {
    line-height: 1.7;
    color: #514a57;
}

body.page-terms .legal-section:last-child {
    border-bottom: none;
}

@media (max-width: 700px) {
    body.page-terms .legal-section {
        padding: clamp(108px, 23vw, 136px) 0 34px;
        min-height: 0;
    }

    body.page-terms .legal-section::before {
        top: 8px;
        left: 0;
        font-size: clamp(5.75rem, 20vw, 8.2rem);
    }

    body.page-terms .legal-section h2 {
        font-size: clamp(1.3rem, 5.4vw, 1.7rem);
    }
}

@media (max-width: 380px) {
    body.page-terms .legal-section {
        padding-top: 98px;
    }

    body.page-terms .legal-section::before {
        font-size: 5.3rem;
    }
}

/* Body inherited from shared layout; preserve light legal content and RTL numbering. */
body.page-terms .legal-page {
    background: radial-gradient(circle at 85% 8%, rgba(124, 77, 255, .10), transparent 30%), radial-gradient(circle at 8% 24%, rgba(221, 21, 138, .07), transparent 28%), #fff;
}

body.page-terms .legal-section::before {
    direction: ltr;
    unicode-bidi: isolate;
}

[dir="rtl"] body.page-terms .legal-section {
    padding: 32px clamp(122px, 14vw, 162px) 42px 0;
}

[dir="rtl"] body.page-terms .legal-section::before {
    left: auto;
    right: 0;
}

[dir="rtl"] body.page-terms .legal-note {
    border-left: 1px solid rgba(124, 77, 255, .2);
    border-right: 4px solid #7c4dff;
}

@media (max-width:700px) {
    [dir="rtl"] body.page-terms .legal-section {
        padding: clamp(108px, 23vw, 136px) 0 34px;
    }
}

@media (max-width:380px) {
    [dir="rtl"] body.page-terms .legal-section {
        padding-top: 98px;
    }
}


/* Date and accessibility */
.legal-updated {
    text-align: center;
    font: 700 clamp(1.25rem, 2.5vw, 1.65rem)/1.2 Syne, sans-serif;
    letter-spacing: -.025em;
    color: #0d0918;
    margin: 20px 0 0
}

.legal-updated-date {
    color: #dd158a;
    text-decoration: underline;
    text-underline-offset: 3px
}

#terms-title,
.legal-intro-description{
    text-align: center !important;
}