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

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

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

#privacy-title,
#privacy-description {
    text-align: center !important;
}

.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
}

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

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

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

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

.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
}

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

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

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

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

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

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

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

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

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

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

.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) {
    .legal-page {
        padding: 120px 22px 72px
    }

    .legal-intro {
        margin-bottom: 38px
    }

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

    .legal-section::before {
        top: 0
    }
}

/* Large two-digit legal numbers matching the Terms and Conditions page */
.legal-content {
    counter-reset: legal-section;
    gap: 16px;
}

.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);
}

.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;
}

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

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

.legal-intro-description {
    margin-top: 20px !important;
    text-align: center !important;
}

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

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

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

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

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

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

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

/* 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
}

.legal-section ul {
    padding-inline-start: 21px
}

/* Keep large numbers on the starting edge in Arabic (RTL) */
[dir="rtl"] .legal-section {
    padding: 32px clamp(122px, 14vw, 162px) 42px 0
}

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

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

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

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

/* Script-specific fonts maintain readability in non-Latin localizations. */
html[lang="ar"] .legal-page {
    font-family: "Noto Sans Arabic", sans-serif
}

html[lang="ar"] .legal-section h2,
html[lang="ar"] .legal-intro h1,
html[lang="ar"] .legal-updated {
    font-family: "Noto Sans Arabic", sans-serif
}

html[lang="hi"] .legal-page {
    font-family: "Noto Sans Devanagari", sans-serif
}

html[lang="hi"] .legal-section h2,
html[lang="hi"] .legal-intro h1,
html[lang="hi"] .legal-updated {
    font-family: "Noto Sans Devanagari", sans-serif
}

html[lang="ja"] .legal-page {
    font-family: "Noto Sans JP", sans-serif
}

html[lang="ja"] .legal-section h2,
html[lang="ja"] .legal-intro h1,
html[lang="ja"] .legal-updated {
    font-family: "Noto Sans JP", sans-serif
}

html[lang="zh_tw"] .legal-page {
    font-family: "Noto Sans TC", sans-serif
}

html[lang="zh_tw"] .legal-section h2,
html[lang="zh_tw"] .legal-intro h1,
html[lang="zh_tw"] .legal-updated {
    font-family: "Noto Sans TC", sans-serif
}