.subscription-terms-page {
    --terms-bg: #f3f7f8;
    --terms-card: #ffffff;
    --terms-ink: #17343e;
    --terms-muted: #667b83;
    --terms-line: #dce8ea;
    --terms-teal-soft: #e8f7f6;
    --terms-violet-soft: #f0ebfa;
    min-height: 100vh;
    background: var(--terms-bg);
    color: var(--terms-ink);
}

.terms-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.subscription-terms-page button,
.subscription-terms-page input {
    font: inherit;
}

.subscription-terms-page button:focus-visible,
.subscription-terms-page a:focus-visible,
.subscription-terms-page summary:focus-visible {
    outline: 3px solid rgba(85, 214, 217, .48);
    outline-offset: 3px;
}

.terms-header .nav-wrap {
    height: 74px;
}

.terms-header .brand {
    flex-basis: 190px;
}

.terms-header .brand img {
    height: 44px;
}

.terms-header .desktop-nav {
    gap: 24px;
    font-size: 12px;
}

.terms-header .desktop-nav a {
    padding: 26px 0 21px;
}

.back-to-plans {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 13px;
    border: 1px solid #cddfe2;
    border-radius: 11px;
    background: var(--terms-card);
    color: #23515c;
    font-size: 10px;
    font-weight: 800;
}

.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 74px;
    background:
        linear-gradient(rgba(255, 255, 255, .46), rgba(255, 255, 255, .46)),
        radial-gradient(circle at 80% 14%, rgba(200, 155, 234, .24), transparent 29%),
        radial-gradient(circle at 72% 88%, rgba(85, 214, 217, .23), transparent 31%),
        linear-gradient(180deg, #fbfdfe 0%, #edf8f8 100%);
    border-bottom: 1px solid var(--terms-line);
}

.terms-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -170px;
    width: 430px;
    height: 430px;
    border: 70px solid rgba(20, 126, 145, .045);
    border-radius: 50%;
}

.terms-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 70px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 24px;
    color: var(--terms-muted);
    font-size: 11px;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: #147e91;
}

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6f4a9f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 12px 0 15px;
    font: 700 clamp(44px, 5.2vw, 68px)/1.04 Sora, sans-serif;
    letter-spacing: -.052em;
}

.terms-hero-copy > p {
    max-width: 680px;
    margin: 0;
    color: var(--terms-muted);
    font-size: 17px;
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 25px;
    color: #4c6971;
    font-size: 10px;
}

.terms-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.terms-meta i {
    color: #147e91;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.terms-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border: 1px solid #075563;
    border-radius: 11px;
    background: #075563;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .2s, background .2s;
}

.terms-button:hover {
    transform: translateY(-1px);
    background: #064854;
}

.terms-button.outline {
    border-color: rgba(7, 85, 99, .22);
    background: rgba(255, 255, 255, .72);
    color: #174e59;
}

.terms-summary-card {
    position: relative;
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 25px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 28px 70px rgba(6, 78, 91, .13);
    backdrop-filter: blur(14px);
}

.summary-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0f8796, #63419e);
    box-shadow: 0 12px 28px rgba(6, 78, 91, .18);
    color: #fff;
    font-size: 24px;
}

.terms-summary-card h2 {
    margin: 7px 0 17px;
    font: 600 20px/1.25 Sora, sans-serif;
}

.terms-summary-card ul {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-summary-card li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.terms-summary-card li > i {
    margin-top: 2px;
    color: #147e91;
    font-size: 16px;
}

.terms-summary-card li span {
    display: flex;
    flex-direction: column;
}

.terms-summary-card li strong {
    font-size: 11px;
}

.terms-summary-card li small {
    margin-top: 2px;
    color: var(--terms-muted);
    font-size: 9px;
    line-height: 1.5;
}

.legal-notice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 17px 20px;
    border: 1px solid rgba(20, 126, 145, .18);
    border-radius: 17px;
    background: linear-gradient(135deg, #eaf8f7, #f3f0fa);
}

.legal-notice > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #147e91;
    font-size: 19px;
}

.legal-notice div {
    display: flex;
    flex-direction: column;
}

.legal-notice strong {
    font-size: 11px;
}

.legal-notice p {
    margin: 2px 0 0;
    color: var(--terms-muted);
    font-size: 9px;
}

.legal-notice > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0f7180;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.terms-workspace {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    align-items: start;
    gap: 27px;
    padding-block: 30px 82px;
}

.terms-sidebar {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border: 1px solid var(--terms-line);
    border-radius: 20px;
    background: var(--terms-card);
    box-shadow: 0 16px 40px rgba(6, 78, 91, .055);
}

.toc-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px;
    border-bottom: 1px solid var(--terms-line);
}

.toc-heading > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--terms-teal-soft);
    color: #147e91;
    font-size: 18px;
}

.toc-heading div {
    display: flex;
    flex-direction: column;
}

.toc-heading strong {
    font: 600 12px Sora, sans-serif;
}

.toc-heading small {
    color: var(--terms-muted);
    font-size: 9px;
}

.terms-sidebar nav {
    max-height: min(610px, calc(100vh - 270px));
    display: grid;
    gap: 2px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
}

.terms-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 9px;
    color: #536c74;
    font-size: 9px;
    font-weight: 700;
}

.terms-sidebar nav a > span {
    width: 23px;
    color: #87999f;
    font: 600 8px Sora, sans-serif;
}

.terms-sidebar nav a:hover,
.terms-sidebar nav a.active {
    background: var(--terms-teal-soft);
    color: #0d6977;
}

.terms-sidebar nav a.active > span {
    color: #147e91;
}

.toc-support {
    margin: 7px 10px 10px;
    padding: 15px;
    border-radius: 13px;
    background: #083f49;
    color: #fff;
}

.toc-support > i {
    color: #8be2df;
    font-size: 21px;
}

.toc-support strong {
    display: block;
    margin-top: 7px;
    font-size: 10px;
}

.toc-support p {
    margin: 4px 0 9px;
    color: rgba(255, 255, 255, .68);
    font-size: 8px;
    line-height: 1.5;
}

.toc-support a {
    color: #baf4f0;
    font-size: 9px;
    font-weight: 800;
}

.terms-document {
    min-width: 0;
    display: grid;
    gap: 17px;
}

.terms-section,
.terms-faq {
    scroll-margin-top: 94px;
    overflow: hidden;
    border: 1px solid var(--terms-line);
    border-radius: 21px;
    background: var(--terms-card);
    box-shadow: 0 15px 42px rgba(6, 78, 91, .05);
}

.terms-section > header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--terms-line);
    background: #fbfdfd;
}

.terms-section > header > span {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    border-radius: 11px;
    background: var(--terms-teal-soft);
    color: #147e91;
    font: 700 10px Sora, sans-serif;
}

.terms-section > header div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.terms-section > header small {
    color: #70519b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.terms-section h2,
.terms-faq h2 {
    margin: 2px 0 0;
    font: 600 19px/1.25 Sora, sans-serif;
    letter-spacing: -.02em;
}

.terms-copy {
    padding: 22px 24px 24px;
    color: #455f68;
    font-size: 12px;
    line-height: 1.78;
}

.terms-copy > *:first-child {
    margin-top: 0;
}

.terms-copy > *:last-child {
    margin-bottom: 0;
}

.terms-copy p {
    margin: 0 0 13px;
}

.terms-copy a {
    color: #0e7180;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(20, 126, 145, .3);
    text-underline-offset: 3px;
}

.terms-copy strong {
    color: var(--terms-ink);
}

.terms-copy ul,
.terms-copy ol {
    display: grid;
    gap: 7px;
    margin: 13px 0 16px;
    padding-left: 22px;
}

.terms-copy li::marker {
    color: #147e91;
    font-weight: 800;
}

.term-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 17px 0;
}

.term-cards article {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid var(--terms-line);
    border-radius: 14px;
    background: #fcfefe;
}

.term-cards i {
    color: #147e91;
    font-size: 20px;
}

.term-cards strong {
    margin-top: 8px;
    font-size: 11px;
}

.term-cards p {
    margin: 2px 0 0;
    color: var(--terms-muted);
    font-size: 9px;
    line-height: 1.5;
}

.inline-note,
.health-limit,
.contact-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 17px 0 3px;
    padding: 14px 15px;
    border-radius: 13px;
    background: linear-gradient(135deg, #ecf8f7, #f3f0fa);
}

.inline-note > i,
.contact-warning > i {
    margin-top: 2px;
    color: #147e91;
    font-size: 19px;
}

.inline-note p,
.contact-warning p {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}

.emphasis-section {
    border-color: rgba(20, 126, 145, .32);
}

.emphasis-section > header {
    background: linear-gradient(135deg, #eaf8f7, #f1eef9);
}

.renewal-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 17px;
    border: 1px solid var(--terms-line);
    border-radius: 15px;
    background: #fbfdfd;
}

.renewal-timeline > div {
    display: grid;
    justify-items: center;
    text-align: center;
}

.renewal-timeline > div > span {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--terms-teal-soft);
    color: #147e91;
    font-size: 17px;
}

.renewal-timeline strong {
    margin-top: 7px;
    font-size: 9px;
}

.renewal-timeline small {
    color: var(--terms-muted);
    font-size: 7px;
}

.renewal-timeline > i {
    color: #90a4a9;
}

.problem-grid {
    display: grid;
    gap: 8px;
    margin: 17px 0;
}

.problem-grid article {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--terms-line);
    border-radius: 13px;
    background: #fcfefe;
}

.problem-grid article > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    background: var(--terms-violet-soft);
    color: #7049a3;
    font-size: 17px;
}

.problem-grid article div {
    display: flex;
    flex-direction: column;
}

.problem-grid strong {
    font-size: 10px;
}

.problem-grid p {
    margin: 1px 0 0;
    color: var(--terms-muted);
    font-size: 9px;
    line-height: 1.55;
}

.health-limit {
    background: linear-gradient(135deg, #2f2857, #0d5964);
    color: #fff;
}

.health-limit > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #d3b7f0;
    font-size: 20px;
}

.health-limit strong {
    color: #fff;
    font-size: 11px;
}

.health-limit p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 9px;
    line-height: 1.6;
}

.health-limit a {
    color: #baf4f0;
}

.terms-faq {
    padding: 25px;
}

.faq-heading {
    margin-bottom: 16px;
}

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-list details {
    overflow: hidden;
    border: 1px solid var(--terms-line);
    border-radius: 13px;
    background: #fcfefe;
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    color: var(--terms-ink);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary i {
    color: #147e91;
    font-size: 17px;
    transition: transform .2s;
}

.faq-list details[open] summary i {
    transform: rotate(45deg);
}

.faq-list details p {
    margin: 0;
    padding: 0 16px 15px;
    color: var(--terms-muted);
    font-size: 10px;
    line-height: 1.65;
}

.document-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 22px;
    border: 1px solid var(--terms-line);
    border-radius: 16px;
    background: var(--terms-card);
}

.document-footer > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-footer > div:first-child > i {
    color: #147e91;
    font-size: 22px;
}

.document-footer span {
    display: flex;
    flex-direction: column;
}

.document-footer strong {
    font-size: 10px;
}

.document-footer small {
    color: var(--terms-muted);
    font-size: 8px;
}

.document-footer button,
.document-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #0e7180;
    font-size: 9px;
    font-weight: 800;
}

.terms-site-footer {
    padding: 28px 0;
    background: #082f38;
    color: #d7e7ea;
}

.terms-site-footer .terms-container {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 30px;
}

.terms-site-footer img {
    width: 158px;
    filter: brightness(0) invert(1);
}

.terms-site-footer nav {
    display: flex;
    gap: 18px;
}

.terms-site-footer a,
.terms-site-footer span {
    color: #b3ccd1;
    font-size: 10px;
}

.terms-toast {
    position: fixed;
    z-index: 100;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border: 1px solid #cce5e2;
    border-radius: 13px;
    background: #f3fffd;
    box-shadow: 0 16px 45px rgba(6, 78, 91, .16);
    color: #276c70;
    font-size: 10px;
    font-weight: 700;
}

[hidden] {
    display: none !important;
}

[data-theme="dark"] .subscription-terms-page {
    --terms-bg: #082f38;
    --terms-card: #0c3943;
    --terms-ink: #eef8fa;
    --terms-muted: #a5bdc3;
    --terms-line: #244a53;
    --terms-teal-soft: #123f48;
    --terms-violet-soft: #302b50;
}

[data-theme="dark"] .terms-hero {
    background:
        radial-gradient(circle at 80% 14%, rgba(123, 76, 201, .25), transparent 29%),
        radial-gradient(circle at 72% 88%, rgba(85, 214, 217, .13), transparent 31%),
        linear-gradient(180deg, #092f38 0%, #0b3640 100%);
}

[data-theme="dark"] .terms-summary-card,
[data-theme="dark"] .terms-section > header,
[data-theme="dark"] .term-cards article,
[data-theme="dark"] .renewal-timeline,
[data-theme="dark"] .problem-grid article,
[data-theme="dark"] .faq-list details {
    background: #103c46;
}

[data-theme="dark"] .legal-notice,
[data-theme="dark"] .inline-note,
[data-theme="dark"] .contact-warning,
[data-theme="dark"] .emphasis-section > header {
    background: linear-gradient(135deg, #113f47, #2c2b49);
}

[data-theme="dark"] .legal-notice > span {
    background: #0d3540;
}

[data-theme="dark"] .terms-copy,
[data-theme="dark"] .legal-notice p {
    color: #b2c8cd;
}

[data-theme="dark"] .terms-button.outline,
[data-theme="dark"] .back-to-plans {
    background: #103c46;
    color: #e4f2f4;
}

[data-theme="dark"] .terms-toast {
    border-color: #2d5960;
    background: #103c46;
    color: #c4e6e4;
}

@media (max-width: 1050px) {
    .terms-header .desktop-nav {
        display: none;
    }

    .terms-header .menu-btn {
        display: inline-flex;
    }

    .terms-hero-grid {
        grid-template-columns: 1fr 350px;
        gap: 38px;
    }

    .terms-workspace {
        grid-template-columns: 215px minmax(0, 1fr);
    }
}

@media (max-width: 850px) {
    .terms-hero-grid {
        grid-template-columns: 1fr;
    }

    .terms-summary-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 15px;
    }

    .terms-summary-card .summary-icon {
        grid-row: 1 / 3;
    }

    .terms-summary-card .terms-eyebrow,
    .terms-summary-card h2 {
        grid-column: 2;
    }

    .terms-summary-card ul {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        margin-top: 15px;
    }

    .terms-workspace {
        grid-template-columns: 1fr;
    }

    .terms-sidebar {
        position: static;
        overflow: visible;
    }

    .terms-sidebar nav {
        max-height: none;
        display: flex;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .terms-sidebar nav a {
        flex: 0 0 auto;
    }

    .toc-support {
        display: none;
    }
}

@media (max-width: 650px) {
    .terms-container {
        width: min(100% - 28px, 1180px);
    }

    .terms-header .nav-wrap {
        height: 66px;
        gap: 10px;
    }

    .terms-header .brand {
        flex-basis: auto;
        margin-right: auto;
    }

    .terms-header .brand img {
        height: 38px;
    }

    .terms-header .language-btn,
    .back-to-plans {
        display: none;
    }

    .terms-hero {
        padding: 48px 0 52px;
    }

    .terms-hero h1 {
        font-size: 43px;
    }

    .terms-hero-copy > p {
        font-size: 15px;
    }

    .terms-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .terms-summary-card {
        display: block;
        padding: 22px;
    }

    .terms-summary-card ul {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .legal-notice > a {
        grid-column: 2;
    }

    .terms-workspace {
        padding-block: 22px 55px;
    }

    .toc-heading {
        display: none;
    }

    .terms-sidebar {
        border-radius: 14px;
    }

    .terms-section > header {
        align-items: flex-start;
        padding: 17px;
    }

    .terms-section h2,
    .terms-faq h2 {
        font-size: 17px;
    }

    .terms-copy {
        padding: 19px 18px 21px;
        font-size: 11px;
    }

    .term-cards {
        grid-template-columns: 1fr;
    }

    .renewal-timeline {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .renewal-timeline > i {
        transform: rotate(90deg);
    }

    .terms-faq {
        padding: 19px;
    }

    .document-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .terms-site-footer .terms-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        text-align: center;
    }

    .terms-site-footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .terms-hero h1 {
        font-size: 37px;
    }

    .terms-summary-card,
    .legal-notice,
    .terms-section > header,
    .terms-copy,
    .terms-faq {
        padding-right: 15px;
        padding-left: 15px;
    }

    .terms-toast {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }
}

@media print {
    .terms-header,
    .terms-hero .hero-actions,
    .terms-summary-card,
    .legal-notice,
    .terms-sidebar,
    .terms-faq,
    .document-footer,
    .terms-site-footer,
    .terms-toast {
        display: none !important;
    }

    .subscription-terms-page,
    .terms-hero,
    .terms-section,
    .terms-section > header {
        background: #fff !important;
        color: #111 !important;
        box-shadow: none !important;
    }

    .terms-hero {
        padding: 20px 0 25px;
        border: 0;
    }

    .terms-hero-grid,
    .terms-workspace {
        display: block;
    }

    .terms-hero h1 {
        font-size: 36px;
    }

    .terms-workspace {
        padding: 0;
    }

    .terms-document {
        display: block;
    }

    .terms-section {
        break-inside: avoid;
        margin-bottom: 14px;
        border: 1px solid #bbb;
    }

    .terms-copy,
    .terms-copy strong,
    .terms-section h2,
    .terms-hero-copy > p,
    .terms-meta {
        color: #111 !important;
    }

    .health-limit {
        border: 1px solid #999;
        background: #fff !important;
        color: #111 !important;
    }

    .health-limit strong,
    .health-limit p,
    .health-limit a {
        color: #111 !important;
    }

    a {
        color: #111 !important;
        text-decoration: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subscription-terms-page *,
    .subscription-terms-page *::before,
    .subscription-terms-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
