.terms-page {
    --terms-line: rgba(255, 255, 255, .09);
    --terms-line-strong: rgba(255, 255, 255, .15);
    --terms-text: var(--text-primary, #f0f0f5);
    --terms-muted: var(--text-secondary, #a0a0b0);
    --terms-soft: #c8c8cf;
    width: 100%;
    padding: 46px 0 68px;
    background: var(--bg-primary, #0f0f14);
    color: var(--terms-text);
    direction: rtl;
}

.terms-page * { box-sizing: border-box; }

.terms-page__wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.terms-page__heading,
.terms-sidebar__nav,
.terms-sidebar__contact,
.terms-card {
    border: 1px solid var(--terms-line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .012));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

.terms-page__heading {
    min-height: 92px;
    margin-bottom: 20px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.terms-page__heading-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid var(--terms-line);
    border-radius: 10px;
    background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.terms-page__heading h1 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 900;
}

.terms-page__layout {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    direction: rtl;
}

.terms-sidebar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 22px;
    display: grid;
    gap: 16px;
    direction: rtl;
}

.terms-content {
    grid-column: 2;
    display: grid;
    gap: 16px;
    min-width: 0;
    direction: rtl;
}

.terms-sidebar__nav { overflow: hidden; }

.terms-sidebar__nav header {
    height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--terms-line);
    color: #fff;
}

.terms-sidebar__nav header i { color: var(--terms-muted); font-size: 15px; }
.terms-sidebar__nav header strong { font-size: 14px; }
.terms-sidebar__nav ol { list-style: none; margin: 0; padding: 10px; }
.terms-sidebar__nav li { margin: 0; }

.terms-sidebar__nav a {
    min-height: 43px;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #aaaab2 !important;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.terms-sidebar__nav a:hover {
    background: rgba(255, 255, 255, .04);
    color: #fff !important;
}

.terms-sidebar__nav a.is-active {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .065);
    color: #fff !important;
}

.terms-sidebar__nav a > span {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b9ba3;
    font-size: 9px;
}

.terms-sidebar__nav a.is-active > span {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.terms-sidebar__nav a strong { font-size: 10px; font-weight: 700; line-height: 1.5; }

.terms-sidebar__contact { padding: 21px 16px; text-align: center; }

.terms-sidebar__contact-visual {
    width: 100%;
    height: 126px;
    margin: -3px auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.terms-sidebar__contact-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 25px rgba(0, 0, 0, .3));
}

.terms-sidebar__contact h2 { margin: 0; color: #fff; font-size: 16px; }
.terms-sidebar__contact p { margin: 8px 0 16px; color: #999; font-size: 9px; line-height: 1.9; }

.terms-sidebar__contact > a {
    min-height: 39px;
    margin-top: 8px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--terms-line);
    border-radius: 7px;
    background: rgba(255, 255, 255, .018);
    color: #c6c6cd !important;
    font-size: 9px;
    text-decoration: none !important;
}

.terms-sidebar__contact > a i { color: #fff; }
.terms-sidebar__contact > a span { direction: ltr; }

.terms-sidebar__contact .terms-sidebar__contact-button {
    margin-top: 12px;
    justify-content: center;
    background: #fff;
    border-color: #fff;
    color: #111 !important;
    font-weight: 900;
}

.terms-sidebar__contact .terms-sidebar__contact-button i { color: #111; }
.terms-card { overflow: hidden; scroll-margin-top: 24px; }

.terms-card__header {
    min-height: 68px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.terms-card__header h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 900; }
.terms-card__header p { margin: 6px 0 0; color: #999; font-size: 9px; }

.terms-card__index {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid var(--terms-line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    color: #b9b9c1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.terms-card__body { padding: 18px 20px; color: var(--terms-soft); font-size: 11px; line-height: 2.15; }
.terms-card__body > p { margin: 0 0 14px; color: #aaaab2; }
.terms-card__body > p:last-child { margin-bottom: 0; }
.terms-card__body ul, .terms-card__body ol { margin: 0; padding: 0; list-style: none; counter-reset: terms-rule; }

.terms-card__body li {
    position: relative;
    min-height: 47px;
    padding: 12px 43px 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    color: #c3c3ca;
}

.terms-card__body li:last-child { border-bottom: 0; }
.terms-card__body ol > li { counter-increment: terms-rule; }

.terms-card__body ol > li::before,
.terms-card__body ul > li::before {
    position: absolute;
    right: 0;
    top: 11px;
    width: 27px;
    height: 27px;
    border: 1px solid var(--terms-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: #aeb0b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
}

.terms-card__body ol > li::before { content: counter(terms-rule); }
.terms-card__body ul > li::before { content: '•'; font-size: 15px; }
.terms-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.terms-definition {
    min-height: 105px;
    padding: 15px;
    border: 1px solid var(--terms-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .022);
}

.terms-definition h3 { margin: 0 0 8px; color: #fff; font-size: 12px; }
.terms-definition p { margin: 0; color: #999; font-size: 10px; line-height: 2; }

.terms-payment-requirements {
    margin-top: 12px !important;
    padding: 14px !important;
    border: 1px solid var(--terms-line) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
}

.terms-card strong { color: #fff; }
.terms-content a { color: #d5d5dc !important; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .28); }

@media (max-width: 1050px) {
    .terms-page__layout { grid-template-columns: 250px minmax(0, 1fr); }
    .terms-sidebar__nav a strong { font-size: 9px; }
}

@media (max-width: 860px) {
    .terms-page { padding: 28px 0 48px; }
    .terms-page__wrap { width: min(calc(100% - 24px), 720px); }
    .terms-page__layout { grid-template-columns: 1fr; }
    .terms-sidebar { grid-column: 1; grid-row: auto; position: static; }
    .terms-content { grid-column: 1; }
    .terms-sidebar__nav ol { display: flex; gap: 7px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
    .terms-sidebar__nav li { flex: 0 0 auto; }
    .terms-sidebar__nav a { min-height: 38px; padding: 6px 9px; white-space: nowrap; }
    .terms-sidebar__nav a > span { width: 23px; height: 23px; flex-basis: 23px; }
    .terms-sidebar__contact { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; text-align: right; }
    .terms-sidebar__contact-visual { grid-row: 1 / 3; width: 82px; height: 82px; margin: 0; }
    .terms-sidebar__contact h2, .terms-sidebar__contact p { grid-column: 2 / 4; }
    .terms-sidebar__contact p { margin: 0; }
    .terms-sidebar__contact > a { margin: 0; }
    .terms-sidebar__contact .terms-sidebar__contact-button { grid-column: 2 / 4; margin: 0; }
    .terms-definitions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
    .terms-page__heading { min-height: 78px; padding: 15px; }
    .terms-page__heading-icon { width: 45px; height: 45px; flex-basis: 45px; }
    .terms-page__heading h1 { font-size: 21px; }
    .terms-card__header { min-height: 60px; padding: 14px 15px; }
    .terms-card__header h2 { font-size: 14px; }
    .terms-card__body { padding: 13px 15px; font-size: 10px; }
    .terms-card__body li { padding-right: 38px; }
    .terms-definitions { grid-template-columns: 1fr; }
    .terms-sidebar__contact { display: block; text-align: center; }
    .terms-sidebar__contact-visual { width: 100%; height: 118px; margin: 0 auto 10px; }
    .terms-sidebar__contact h2, .terms-sidebar__contact p { margin-right: 0; }
    .terms-sidebar__contact p { margin: 7px 0 13px; }
    .terms-sidebar__contact > a { margin-top: 7px; justify-content: center; }
}
