/* Terms mockup: 921 × 1707. Shared header/footer remain in their partials. */
.terms-page { color: var(--ink); background: #fefeff; }
.terms-wrap { width: 91.5%; max-width: 1240px; margin-inline: auto; }
.terms-hero {
    color: white;
    background: #24153f url('../img/faq-hero.png') center / cover no-repeat;
    min-height: 288px;
    padding-block: 46px 28px;
}
.terms-hero > .terms-wrap { width: 88.5%; max-width: 1200px; }
.terms-hero .eyebrow { color: var(--yellow); font-size: 14px; letter-spacing: 4px; margin-bottom: 8px; }
.terms-hero h1 { font-size: 62px; line-height: .9; font-weight: 800; letter-spacing: -1.8px; }
.terms-hero h1 span { color: var(--yellow); }
.terms-intro { margin-top: 13px; font-size: 23px; line-height: 1.3; }
.terms-breadcrumb { display: flex; align-items: center; gap: 12px; margin-top: 25px; font-size: 13px; }
.terms-breadcrumb a:hover { text-decoration: underline; }
.terms-content { padding-block: 22px 16px; }
.terms-important { display: flex; align-items: center; gap: 18px; background: linear-gradient(105deg, #f0ebfc, #f4f1fd); border-radius: 9px; padding: 12px 23px; min-height: 55px; color: #461593; font-size: 15px; margin-bottom: 20px; }
.terms-important svg { width: 29px; height: 29px; }
.terms-layout { display: grid; grid-template-columns: minmax(0, 29.3fr) minmax(0, 69.3fr); gap: 12px; align-items: start; }
.terms-navigation, .terms-document { border: 1px solid #e4ddf5; border-radius: 9px; background: #fff; }
.terms-navigation { padding: 22px 10px 10px; }
.terms-navigation h2 { font-size: 19px; font-weight: 750; margin: 0 9px 16px; }
.terms-navigation ol { list-style: none; padding: 0; margin: 0; }
.terms-navigation li + li { border-top: 1px solid #e5dff2; margin-inline: 9px; }
.terms-navigation li + li a { margin-inline: -9px; }
.terms-navigation a { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 12px; align-items: center; gap: 10px; padding: 14px 10px; min-height: 70px; font-size: 14px; font-weight: 600; line-height: 1.4; border-radius: 6px; }
.terms-navigation a:hover { background: #f4f0fb; }
.terms-navigation a.active { color: white; background: linear-gradient(110deg, #422064, #30174f); box-shadow: 0 2px 4px #2b174f1a; }
.terms-navigation a.active::before { content: ''; position: absolute; left: 0; inset-block: 0; width: 6px; border-radius: 6px 0 0 6px; background: var(--yellow); }
.terms-number { width: 38px; height: 38px; display: inline-grid; place-items: center; flex-shrink: 0; color: #25114f; font-size: 19px; font-weight: 700; background: linear-gradient(120deg, #e9e1fb, #f4f0ff); border-radius: 50%; }
.active .terms-number { background: #ffffff20; color: white; }
.terms-chevron { font-size: 25px; font-weight: 400; }
.terms-sidebar-help { background: linear-gradient(120deg, #f0ebfc, #f5f1fc); text-align: center; padding: 24px 18px; border-radius: 9px; margin-top: 16px; }
.terms-headset { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(120deg, #42206b, #30114f); color: white; flex-shrink: 0; }
.terms-headset svg { width: 59px; height: 59px; stroke-width: 1.6; }
.terms-sidebar-help h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 750; margin: 15px 0 5px; }
.terms-sidebar-help p { font-size: 16px; line-height: 1.4; }
.terms-sidebar-help .button { margin-top: 18px; width: 100%; font-size: 18px; min-height: 50px; padding-inline: 12px; }
.terms-document { padding: 0 19px; }
.terms-section { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 22px; padding-block: 15px 16px; scroll-margin-top: 24px; }
.terms-section + .terms-section { border-top: 1px solid #e6e0f2; }
.terms-section h2 { font-size: 24px; font-weight: 750; line-height: 1.2; letter-spacing: -.55px; margin: 4px 0 10px; }
.terms-section p { font-size: 14px; line-height: 1.45; color: #514971; }
.terms-section .terms-note { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 13px 15px; border-radius: 8px; background: linear-gradient(110deg, #eee8fc, #f4f0fd); color: #45119b; font-size: 13px; }
.terms-note > span { width: 27px; height: 27px; flex-shrink: 0; border-radius: 50%; background: #5017a2; color: white; display: grid; place-items: center; font-size: 19px; }
.terms-contact-link { display: inline-block; color: #5017a2; text-decoration: underline; margin-top: 12px; font-size: 15px; }
.terms-help { display: flex; align-items: center; gap: 28px; background: linear-gradient(110deg, #efeafb, #f5f1fc); border-radius: 9px; padding: 25px 36px; margin-top: 18px; }
.terms-help h2 { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 8px; }
.terms-help p { font-size: 19px; line-height: 1.4; }
.terms-help-actions { margin-left: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; flex-shrink: 0; }
.terms-help-actions .button { font-size: 17px; min-height: 48px; padding-inline: 22px; }
.terms-faq-link { display: inline-flex; gap: 20px; color: #45119b; font-size: 17px; font-weight: 700; }
@media (min-width: 1200px) {
    .terms-hero { padding-block: 58px 36px; }
    .terms-hero h1 { font-size: 76px; }
    .terms-layout { gap: 20px; grid-template-columns: 28% minmax(0, 1fr); }
    .terms-section { padding-block: 25px; }
    .terms-section p { font-size: 16px; }
    .terms-navigation a { font-size: 16px; }
}
@media (max-width: 1000px) {
    .terms-help { gap: 28px; padding-inline: 44px; }
    .terms-help h2 { font-size: 29px; }
    .terms-help p { font-size: 17px; }
}
@media (max-width: 800px) {
    .terms-layout { grid-template-columns: 1fr; gap: 18px; }
    .terms-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; align-items: start; }
    .terms-sidebar-help { margin: 0; }
    .terms-navigation a { min-height: 56px; padding-block: 9px; }
    .terms-hero { background-image: linear-gradient(90deg, #24153fbb, #24153f30), url('../img/faq-hero.png'); }
    .terms-help { flex-wrap: wrap; }
    .terms-help > div:not(.terms-help-actions) { flex: 1; }
    .terms-help-actions { flex-direction: row; flex-wrap: wrap; margin-left: 120px; }
}
@media (max-width: 560px) {
    .terms-hero { padding-block: 38px 26px; background-position: 63% center; }
    .terms-hero h1 { font-size: clamp(40px, 10vw, 56px); letter-spacing: -1.2px; }
    .terms-hero .eyebrow { font-size: 11px; letter-spacing: 3px; }
    .terms-intro { font-size: 18px; }
    .terms-breadcrumb { font-size: 12px; flex-wrap: wrap; }
    .terms-important { padding: 14px; gap: 12px; font-size: 13px; line-height: 1.5; }
    .terms-sidebar { grid-template-columns: 1fr; }
    .terms-navigation { padding-top: 18px; }
    .terms-navigation a { font-size: 14px; }
    .terms-sidebar-help { padding: 20px; }
    .terms-sidebar-help .terms-headset { width: 64px; height: 64px; }
    .terms-sidebar-help .terms-headset svg { width: 38px; height: 38px; }
    .terms-document { padding-inline: 14px; }
    .terms-section { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-block: 20px; }
    .terms-section > .terms-number { width: 30px; height: 30px; font-size: 16px; }
    .terms-section h2 { font-size: 21px; }
    .terms-section p { font-size: 14px; line-height: 1.55; }
    .terms-section .terms-note { margin-left: -42px; padding: 12px; gap: 10px; }
    .terms-help { padding: 22px 18px; gap: 16px; }
    .terms-help .terms-headset { width: 60px; height: 60px; }
    .terms-help .terms-headset svg { width: 35px; height: 35px; }
    .terms-help h2 { font-size: 25px; }
    .terms-help p { font-size: 15px; }
    .terms-help-actions { margin-left: 0; width: 100%; justify-content: center; }
    .terms-help-actions .button { width: 100%; }
}

/* Approved full terms: preserve the page design with readable clause hierarchy. */
.terms-important { align-items: flex-start; line-height: 1.5; }
.terms-important strong { font-size: 14px; font-weight: 650; }
.terms-navigation a { font-size: 12px; gap: 8px; }
.terms-document-intro { padding: 24px 0; border-bottom: 1px solid #e6e0f2; }
.terms-document-intro h2 { font-size: 23px; font-weight: 750; margin-bottom: 8px; }
.terms-document-intro p { font-size: 14px; line-height: 1.6; color: #514971; margin-top: 12px; }
.terms-document-intro .terms-document-subtitle { font-weight: 700; color: var(--ink); }
.terms-section h2 { overflow-wrap: anywhere; }
.terms-section h3 { font-size: 17px; line-height: 1.4; font-weight: 700; margin: 22px 0 10px; }
.terms-section h2 + h3 { margin-top: 0; }
.terms-section p + p { margin-top: 10px; }
.terms-section ul { padding-left: 22px; margin-block: 10px 14px; }
.terms-section li { color: #514971; font-size: 14px; line-height: 1.55; margin-bottom: 5px; }
.terms-section .terms-emphasis { color: var(--ink); font-weight: 700; }
@media (min-width: 1200px) {
    .terms-document-intro p, .terms-section li { font-size: 16px; }
    .terms-navigation a { font-size: 14px; }
}
@media (max-width: 560px) {
    .terms-section h2 { font-size: 19px; }
    .terms-section h3 { font-size: 16px; }
    .terms-important strong { font-size: 12px; }
}

/* Keep long-page navigation within reach on desktop only. */
@media (min-width: 801px) {
    .terms-sidebar {
        position: sticky;
        top: 24px;
        max-height: calc(100vh - 48px);
        max-height: calc(100dvh - 48px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}
