.terms-page {
    background: #080b16;
}

.terms-program-bar i {
    color: var(--mint);
}

.terms-navbar {
    background: rgba(7, 9, 20, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.terms-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terms-nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.terms-home-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #8d95aa;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: color 0.2s ease, gap 0.2s ease;
}

.terms-home-link:hover,
.terms-home-link:focus {
    gap: 13px;
    color: #fff;
}

.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 220px 0 100px;
    background:
        radial-gradient(circle at 82% 28%, rgba(117, 168, 255, 0.12), transparent 29%),
        radial-gradient(circle at 14% 82%, rgba(240, 74, 55, 0.14), transparent 30%),
        linear-gradient(180deg, #080a15, #0a0d19);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terms-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 95%);
}

.terms-hero h1 {
    max-width: 760px;
    margin: 23px 0 25px;
    color: #f8f9ff;
    font-family: var(--font-display);
    font-size: clamp(58px, 7.5vw, 105px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.terms-hero h1 span {
    color: transparent;
    background: linear-gradient(105deg, #fff 6%, #f0b98a 45%, #f04a37 95%);
    -webkit-background-clip: text;
    background-clip: text;
}

.terms-hero p {
    max-width: 690px;
    margin: 0;
    color: #9ba3b8;
    font-size: 16px;
    line-height: 1.9;
}

.terms-hero__meta {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: rgba(17, 21, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.terms-hero__meta span,
.terms-hero__meta small {
    color: #727b92;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.terms-hero__meta strong {
    margin: 8px 0 15px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.terms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
}

.terms-hero__actions button,
.terms-hero__actions a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.terms-print {
    min-height: 48px;
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(135deg, #f35c44, #ba0922);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 35px rgba(240, 74, 55, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.terms-print:hover,
.terms-print:focus-visible {
    box-shadow: 0 18px 42px rgba(240, 74, 55, 0.32);
    outline: none;
    transform: translateY(-2px);
}

.terms-hero__actions a {
    color: #858da3;
    transition: color 0.2s ease, gap 0.2s ease;
}

.terms-hero__actions a:hover,
.terms-hero__actions a:focus {
    gap: 13px;
    color: #fff;
}

.terms-section {
    padding: 105px 0 130px;
    background:
        radial-gradient(circle at 100% 8%, rgba(117, 168, 255, 0.06), transparent 24%),
        #080b16;
}

.terms-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}

.terms-toc__inner {
    position: sticky;
    top: 130px;
}

.terms-toc__label {
    display: block;
    margin-bottom: 18px;
    color: #646d84;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.terms-toc nav {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-toc a {
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 7px;
    padding: 11px 0;
    color: #565f76;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 700;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.terms-toc a span {
    color: #8d95aa;
    font-size: 10px;
}

.terms-toc a:hover,
.terms-toc a:focus,
.terms-toc a.is-active {
    padding-left: 4px;
    color: var(--accent);
}

.terms-toc a:hover span,
.terms-toc a:focus span,
.terms-toc a.is-active span {
    color: #fff;
}

.terms-document {
    overflow: hidden;
    background: #f4f4f6;
    border-radius: 30px;
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.34);
}

.terms-document__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 44px;
    color: #fff;
    background: linear-gradient(130deg, #181b2a, #23141d);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-document__head span,
.terms-document__head strong {
    display: block;
}

.terms-document__head span {
    color: #8e95aa;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.terms-document__head strong {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.terms-document__head i {
    color: var(--accent);
    font-size: 30px;
}

.term-article {
    padding: 48px 54px;
    color: #373a46;
    scroll-margin-top: 125px;
    border-bottom: 1px solid #dddde2;
}

.term-article header {
    margin-bottom: 25px;
}

.term-article header > span {
    display: block;
    margin-bottom: 8px;
    color: #cf2631;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.term-article h2 {
    margin: 0;
    color: #141620;
    font-family: var(--font-display);
    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.term-article p,
.term-article li {
    color: #4c505d;
    font-size: 14px;
    line-height: 1.9;
}

.term-article p {
    margin: 0;
}

.term-article ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: term-item;
}

.term-article ol > li {
    position: relative;
    min-height: 34px;
    padding: 0 0 18px 42px;
    counter-increment: term-item;
}

.term-article ol > li:last-child {
    padding-bottom: 0;
}

.term-article ol > li::before {
    position: absolute;
    top: 2px;
    left: 0;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    content: counter(term-item);
    color: #bb2230;
    background: #f6e5e7;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 800;
}

.term-article ul {
    margin: 14px 0 3px;
    padding: 14px 0 14px 22px;
    list-style: none;
    background: #e9e9ed;
    border-left: 2px solid #cf2631;
    border-radius: 0 12px 12px 0;
}

.term-article ul li {
    position: relative;
    padding: 5px 15px 5px 20px;
}

.term-article ul li::before {
    position: absolute;
    top: 16px;
    left: 1px;
    width: 5px;
    height: 5px;
    content: "";
    background: #cf2631;
    border-radius: 50%;
}

.term-article--supplementary {
    background: linear-gradient(135deg, #f2e6e6, #f2f0ee);
    border-bottom: 0;
}

.term-article--supplementary p {
    color: #222631;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 650;
}

.terms-document__end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 26px;
    color: #7f8799;
    background: #e7e7ea;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.terms-document__end i {
    color: #cf2631;
    font-size: 14px;
}

.terms-footer .footer-links .is-active {
    color: #fff;
}

.terms-footer .footer-links .is-active::after {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 6px;
    content: "";
    vertical-align: middle;
    background: var(--accent);
    border-radius: 50%;
}

.terms-back-to-top {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

@media (max-width: 991.98px) {
    .terms-hero {
        padding: 185px 0 85px;
    }

    .terms-hero__meta {
        min-height: auto;
    }

    .terms-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .terms-toc__inner {
        position: static;
        padding: 22px;
        background: #101425;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 18px;
    }

    .terms-toc nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .terms-toc a:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.055);
    }
}

@media (max-width: 767.98px) {
    .terms-nav-actions {
        gap: 8px;
    }

    .terms-home-link {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        font-size: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
    }

    .terms-home-link i {
        font-size: 14px;
    }

    .terms-nav-actions .btn-myoffice {
        min-height: 42px;
        padding: 9px 15px;
        font-size: 9px;
    }

    .terms-hero {
        padding: 165px 0 72px;
    }

    .terms-hero h1 {
        font-size: clamp(49px, 16vw, 70px);
    }

    .terms-hero p {
        font-size: 14px;
    }

    .terms-hero__meta strong {
        font-size: 25px;
    }

    .terms-section {
        padding: 70px 0 90px;
    }

    .terms-document {
        border-radius: 21px;
    }

    .terms-document__head {
        padding: 26px 24px;
    }

    .terms-document__head strong {
        font-size: 16px;
    }

    .term-article {
        padding: 37px 27px;
        scroll-margin-top: 110px;
    }

    .term-article h2 {
        font-size: 23px;
    }

    .term-article p,
    .term-article li {
        font-size: 13px;
        line-height: 1.85;
    }

    .term-article ol > li {
        padding-left: 37px;
    }
}

@media (max-width: 479.98px) {
    .terms-navbar .intro-brand__text {
        display: none;
    }

    .terms-nav-actions .btn-myoffice i {
        display: none;
    }

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

    .terms-toc a:nth-child(odd) {
        border-right: 0;
    }

    .terms-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .terms-hero__actions button,
    .terms-hero__actions a {
        justify-content: center;
    }

    .terms-document__head i {
        display: none;
    }
}

@media print {
    @page {
        margin: 16mm 17mm;
    }

    html,
    body,
    .terms-page {
        color: #111;
        background: #fff !important;
    }

    .program-bar,
    .terms-navbar,
    .terms-hero__actions,
    .terms-toc,
    .site-footer,
    .terms-back-to-top,
    .skip-link {
        display: none !important;
    }

    .terms-hero {
        padding: 0 0 18mm;
        color: #111;
        background: #fff !important;
        border-bottom: 1px solid #bbb;
    }

    .terms-hero__grid,
    .terms-hero .eyebrow,
    .terms-hero p {
        display: none;
    }

    .terms-hero h1,
    .terms-hero h1 span,
    .terms-hero__meta strong {
        color: #111 !important;
        background: none !important;
        -webkit-text-fill-color: #111;
    }

    .terms-hero h1 {
        margin: 0;
        font-size: 34pt;
    }

    .terms-hero__meta {
        min-height: auto;
        padding: 0;
        color: #111;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .terms-section {
        padding: 12mm 0 0;
        background: #fff;
    }

    .terms-layout {
        display: block;
    }

    .terms-document {
        overflow: visible;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
    }

    .terms-document__head {
        padding: 0 0 8mm;
        color: #111;
        background: #fff;
        border-bottom: 1px solid #aaa;
    }

    .terms-document__head i,
    .terms-document__end {
        display: none;
    }

    .term-article {
        padding: 9mm 0;
        color: #111;
        background: #fff;
        border-bottom: 1px solid #ccc;
        break-inside: auto;
    }

    .term-article header {
        break-after: avoid;
    }

    .term-article h2,
    .term-article p,
    .term-article li,
    .term-article--supplementary p {
        color: #111;
    }
}
