.terms-page {
    width: min(100%, 1160px);
    margin: 28px auto 44px;
    color: var(--cmc-text, #e8eef7);
    font-family: "Noto Sans Georgian", "Plus Jakarta Sans", sans-serif;
}

.terms-page *,
.terms-page *::before,
.terms-page *::after {
    box-sizing: border-box;
}

.terms-page .terms-hero,
.terms-page .terms-summary__card,
.terms-page .terms-toc,
.terms-page .terms-section {
    border: 1px solid var(--cmc-border, rgba(148, 163, 184, 0.16));
    background: var(--cmc-surface, rgba(17, 24, 39, 0.88));
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.16);
}

.terms-page .terms-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 92% 0%, rgba(0, 186, 246, 0.18), transparent 35%),
        linear-gradient(145deg, var(--cmc-surface-strong, #17243a), var(--cmc-bg-alt, #0f172a));
}

.terms-page .terms-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--cmc-accent, #00baf6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.terms-page .terms-eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cmc-accent, #00baf6);
    box-shadow: 0 0 16px var(--cmc-accent, #00baf6);
}

.terms-page .terms-hero__title {
    display: block;
    margin: 0 0 12px;
    color: var(--cmc-text, #f8fafc);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.3;
}

.terms-page .terms-hero__lead {
    max-width: 780px;
    margin: 0;
    color: var(--cmc-muted, #94a3b8);
    font-size: 15px;
    line-height: 1.9;
}

.terms-page .terms-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.terms-page .terms-hero__meta span {
    padding: 7px 11px;
    border: 1px solid var(--cmc-border, rgba(148, 163, 184, 0.16));
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--cmc-muted, #94a3b8);
    font-size: 11px;
    font-weight: 600;
}

.terms-page .terms-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.terms-page .terms-summary__card {
    min-width: 0;
    padding: 19px 20px;
    border-radius: 16px;
}

.terms-page .terms-summary__index {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--cmc-accent, #00baf6);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.terms-page .terms-summary__card h2 {
    display: block;
    margin: 0 0 8px;
    color: var(--cmc-text, #f8fafc);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.terms-page .terms-summary__card p {
    margin: 0;
    color: var(--cmc-muted, #94a3b8);
    font-size: 12px;
    line-height: 1.8;
}

.terms-page .terms-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 16px 0 24px;
    padding: 16px 19px;
    border: 1px solid rgba(0, 186, 246, 0.26);
    border-radius: 14px;
    background: var(--cmc-accent-soft, rgba(0, 186, 246, 0.12));
}

.terms-page .terms-notice__icon {
    display: inline-grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--cmc-accent, #00baf6);
    color: #061824;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.terms-page .terms-notice p {
    margin: 0;
    color: var(--cmc-text, #e8eef7);
    font-size: 13px;
    line-height: 1.8;
}

.terms-page .terms-layout {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.terms-page .terms-toc {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    border-radius: 16px;
}

.terms-page .terms-toc h2 {
    display: block;
    margin: 0 8px 8px;
    color: var(--cmc-text, #f8fafc);
    font-size: 13px;
    font-weight: 700;
}

.terms-page .terms-toc a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 8px;
    border-radius: 9px;
    color: var(--cmc-muted, #94a3b8) !important;
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.terms-page .terms-toc a span {
    flex: 0 0 auto;
    color: var(--cmc-accent, #00baf6);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.terms-page .terms-toc a:hover,
.terms-page .terms-toc a:focus-visible {
    outline: none;
    background: var(--cmc-accent-soft, rgba(0, 186, 246, 0.12));
    color: var(--cmc-text, #f8fafc) !important;
}

.terms-page .terms-sections {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.terms-page .terms-section {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
    border-radius: 16px;
    scroll-margin-top: 20px;
}

.terms-page .terms-section__number {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(0, 186, 246, 0.24);
    border-radius: 10px;
    background: var(--cmc-accent-soft, rgba(0, 186, 246, 0.12));
    color: var(--cmc-accent, #00baf6);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.terms-page .terms-section h2 {
    display: block;
    margin: 2px 0 10px;
    color: var(--cmc-text, #f8fafc);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.terms-page .terms-section p {
    margin: 0;
    color: var(--cmc-muted, #aab8ca);
    font-size: 12px;
    line-height: 1.9;
}

.terms-page .terms-section p + p {
    margin-top: 10px;
}

.terms-page .terms-section a {
    color: var(--cmc-accent, #00baf6) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-page .terms-section a:hover {
    color: var(--cmc-text, #f8fafc) !important;
}

@media (max-width: 900px) {
    .terms-page .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-page .terms-toc {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terms-page .terms-toc h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .terms-page {
        margin: 16px auto 28px;
    }

    .terms-page .terms-hero {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .terms-page .terms-hero__lead {
        font-size: 13px;
    }

    .terms-page .terms-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .terms-page .terms-summary__card {
        padding: 16px;
    }

    .terms-page .terms-toc {
        grid-template-columns: 1fr;
    }

    .terms-page .terms-section {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 10px;
        padding: 17px 14px;
    }

    .terms-page .terms-section__number {
        width: 28px;
        height: 28px;
    }

    .terms-page .terms-section h2 {
        font-size: 14px;
    }
}
