:root {
    --terms-gold: #e3bb3d;
    --terms-gold-soft: #f3d46c;
    --terms-border: rgba(227, 187, 61, 0.2);
    --terms-muted: #a4a5ad;
    --terms-panel: #101114;
}

body {
    background:
        radial-gradient(
            circle at 50% 205px,
            rgba(227, 187, 61, 0.08),
            transparent 370px
        ),
        #08090b;
}

.terms-page {
    width: min(1140px, calc(100% - 30px));
    margin: 0 auto;
    padding: 68px 0 84px;
    direction: ltr;
}

.terms-hero {
    max-width: 880px;
    margin: 0 auto 30px;
    text-align: center;
}

.terms-hero > span {
    min-height: 33px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 14px;
    color: var(--terms-gold-soft);
    font-size: 11px;
    font-weight: 900;
    background: rgba(227, 187, 61, 0.08);
    border: 1px solid var(--terms-border);
    border-radius: 999px;
}

.terms-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 6.5vw, 68px);
    font-weight: 900;
    line-height: 1.3;
}

.terms-hero p {
    max-width: 780px;
    margin: 17px auto 0;
    color: var(--terms-muted);
    font-size: 14px;
    line-height: 2;
}

.terms-hero small {
    display: inline-block;
    margin-top: 13px;
    color: #74757d;
    font-size: 10px;
}

.terms-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.terms-principles article {
    min-width: 0;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 17px;
    background: rgba(16, 17, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}

.terms-principles article > span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--terms-gold);
    font-size: 10px;
    font-weight: 900;
    background: rgba(227, 187, 61, 0.07);
    border: 1px solid var(--terms-border);
    border-radius: 12px;
}

.terms-principles strong,
.terms-principles small {
    display: block;
}

.terms-principles strong {
    color: #f7f7f8;
    font-size: 12px;
}

.terms-principles small {
    margin-top: 3px;
    color: var(--terms-muted);
    font-size: 9px;
    line-height: 1.7;
}

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

.terms-summary {
    position: sticky;
    top: 145px;
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(227, 187, 61, 0.08), transparent 52%),
        var(--terms-panel);
    border: 1px solid var(--terms-border);
    border-radius: 21px;
}

.terms-summary-mark {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    color: #090a0b;
    font-size: 21px;
    font-weight: 900;
    background: var(--terms-gold);
    border-radius: 13px;
}

.terms-summary > span {
    display: block;
    margin-top: 17px;
    color: var(--terms-gold-soft);
    font-size: 9px;
    font-weight: 900;
}

.terms-summary h2 {
    margin: 4px 0 15px;
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

.terms-summary ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: terms-summary;
}

.terms-summary li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    color: #a7a8b0;
    font-size: 10px;
    counter-increment: terms-summary;
}

.terms-summary li::before {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    color: var(--terms-gold);
    font-size: 8px;
    content: counter(terms-summary);
    background: rgba(227, 187, 61, 0.07);
    border-radius: 7px;
}

.terms-summary a {
    min-height: 40px;
    display: grid;
    place-items: center;
    margin-top: 18px;
    color: var(--terms-gold-soft);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid var(--terms-border);
    border-radius: 10px;
}

.terms-card {
    padding: clamp(27px, 5vw, 52px);
    color: #c5c6cb;
    font-size: 13px;
    line-height: 2.1;
    background:
        linear-gradient(145deg, rgba(227, 187, 61, 0.045), transparent 34%),
        var(--terms-panel);
    border: 1px solid var(--terms-border);
    border-radius: 23px;
}

.terms-card h2 {
    margin: 36px 0 10px;
    color: var(--terms-gold-soft);
    font-size: 21px;
    line-height: 1.6;
}

.terms-card h2:first-child {
    margin-top: 0;
}

.terms-card p {
    margin: 0 0 16px;
}

.terms-card ul,
.terms-card ol {
    padding-left: 22px;
}

.terms-card li {
    margin-bottom: 7px;
}

.terms-card li::marker {
    color: var(--terms-gold);
}

.terms-card blockquote {
    margin: 26px 0;
    padding: 18px 20px;
    color: #f2f2f3;
    font-size: 14px;
    font-weight: 700;
    background:
        linear-gradient(100deg, rgba(227, 187, 61, 0.1), transparent),
        #131417;
    border-left: 4px solid var(--terms-gold);
    border-radius: 14px;
}

.terms-card a {
    color: var(--terms-gold-soft);
    font-weight: 900;
    text-underline-offset: 4px;
}

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

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

    .terms-summary {
        position: static;
    }

    .terms-summary ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .terms-page {
        width: min(100% - 18px, 1140px);
        padding: 42px 0 60px;
    }

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

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

    .terms-principles {
        gap: 7px;
    }

    .terms-principles article {
        padding: 14px;
    }

    .terms-summary {
        padding: 18px;
    }

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

    .terms-card {
        padding: 24px 17px;
        font-size: 12px;
        border-radius: 19px;
    }

    .terms-card h2 {
        font-size: 18px;
    }

    .terms-card blockquote {
        margin: 22px 0;
        padding: 16px;
        font-size: 12px;
    }
}
