:root {
    --terms-max-width: 1200px;
    --terms-gap: 30px;
    --terms-card-bg: rgba(255, 255, 255, 0.04);
    --terms-card-border: rgba(255, 255, 255, 0.08);
    --terms-card-hover: rgba(255, 255, 255, 0.08);
    --terms-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.terms_btn {
    border-radius: 10px;
    padding: 14px 26px;
    font-size: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.terms_btn--primary {
    background: var(--base-accient-color);
    color: var(--base-text-color);
    border: none;
}

.terms_btn--primary:hover {
    background: var(--base-accient-color-hover);
    transform: translateY(-2px);
}


.terms_section {
    width: min(var(--terms-max-width), 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--terms-gap);
}

.terms_section__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms_section__title {
    margin: 0;
    color: var(--base-text-color);
    font-size: 36px;
    font-weight: 400;
}

.terms_section__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 300;
}

.terms_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.terms_card {
    background: var(--terms-card-bg);
    border: 1px solid var(--terms-card-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 160px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: termsFadeUp 0.8s ease both;
    animation-delay: calc(var(--i) * 0.08s);
}

.terms_card:hover {
    background: var(--terms-card-hover);
    transform: translateY(-4px);
}

.terms_card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(150, 66, 33, 0.2);
    border: 1px solid rgba(150, 66, 33, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.terms_card__icon::before,
.terms_card__icon::after {
    content: "";
    position: absolute;
    display: block;
}

.terms_card--experience .terms_card__icon::before {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.terms_card--age .terms_card__icon::before {
    width: 20px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    top: 12px;
    left: 10px;
}

.terms_card--age .terms_card__icon::after {
    width: 14px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    top: 18px;
    left: 12px;
}

.terms_card--passport .terms_card__icon::before {
    width: 20px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.terms_card--passport .terms_card__icon::after {
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    top: 22px;
    left: 16px;
}

.terms_card--license .terms_card__icon::before {
    width: 22px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.terms_card--license .terms_card__icon::after {
    width: 14px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    top: 22px;
    left: 15px;
}

.terms_card--deposit .terms_card__icon::before {
    width: 20px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    top: 14px;
    left: 10px;
}

.terms_card--deposit .terms_card__icon::after {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    top: 20px;
    left: 14px;
}

.terms_card--safety .terms_card__icon::before {
    width: 20px;
    height: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(-45deg);
    top: 14px;
    left: 12px;
}

.terms_card__title {
    margin: 0;
    color: var(--base-text-color);
    font-weight: 500;
    font-size: 20px;
}

.terms_card__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    font-size: 16px;
}

.terms_section--info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.terms_info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.terms_info--wide {
    grid-column: span 2;
}

.terms_info__title {
    margin: 0;
    color: var(--base-text-color);
    font-size: 26px;
    font-weight: 500;
}

.terms_info__text,
.terms_info__note {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    font-weight: 300;
}

.terms_info__accent {
    margin: 0;
    color: var(--base-accient-color);
    font-weight: 500;
    font-size: 17px;
}

.terms_list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms_columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.terms_columns__title {
    margin: 0 0 10px 0;
    color: var(--base-text-color);
    font-weight: 400;
    font-size: 18px;
}

.terms_docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.terms_doc {
    background: var(--terms-card-bg);
    border: 1px solid var(--terms-card-border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--base-text-color);
}

.terms_doc:hover {
    background: var(--terms-card-hover);
    transform: translateY(-3px);
}

.terms_doc__title {
    font-size: 20px;
    font-weight: 500;
}

.terms_doc__meta {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.terms_payments {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.terms_payment {
    background: var(--terms-card-bg);
    border: 1px solid var(--terms-card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--base-text-color);
}

.terms_payment__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.terms_payment__icon::before,
.terms_payment__icon::after {
    content: "";
    position: absolute;
}

.terms_payment--cash .terms_payment__icon::before {
    width: 22px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.terms_payment--cash .terms_payment__icon::after {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    right: 10px;
}

.terms_payment--card .terms_payment__icon::before {
    width: 24px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.terms_payment--card .terms_payment__icon::after {
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    top: 16px;
    left: 14px;
}

.terms_payment--bank .terms_payment__icon::before,
.terms_payment--account .terms_payment__icon::before {
    width: 20px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    top: 16px;
    left: 10px;
}

.terms_payment--bank .terms_payment__icon::after,
.terms_payment--account .terms_payment__icon::after {
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    top: 12px;
    left: 11px;
}

.terms_payment--digital .terms_payment__icon::before,
.terms_payment--crypto .terms_payment__icon::before {
    width: 14px;
    height: 22px;
    border-left: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: skew(-15deg);
    top: 10px;
    left: 18px;
}

.terms_payment__title {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.terms_faq {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.terms_faq__item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.terms_faq__button {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: var(--base-text-color);
    font-size: 18px;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.terms_faq__icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    flex-shrink: 0;
}

.terms_faq__icon::before,
.terms_faq__icon::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms_faq__icon::before {
    width: 10px;
    height: 2px;
}

.terms_faq__icon::after {
    width: 2px;
    height: 10px;
    transition: opacity 0.2s ease;
}

.terms_faq__button[aria-expanded="true"] .terms_faq__icon::after {
    opacity: 0;
}

.terms_faq__content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding: 0 22px;
    background: rgba(0, 0, 0, 0.2);
}

.terms_faq__content p {
    margin: 0;
    padding: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    font-size: 16px;
}

.terms_faq__content.open {
    opacity: 1;
}

.terms_forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.terms_form_card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms_form_card__title {
    margin: 0;
    color: var(--base-text-color);
    font-size: 24px;
    font-weight: 500;
}

.terms_form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.terms_form__label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 300;
}

.terms_form__input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--base-text-color);
    outline: none;
}

.terms_form__input:focus {
    border-color: var(--base-accient-color);
}

.terms_form__textarea {
    min-height: 120px;
    resize: vertical;
}

@keyframes termsFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms_card {
        animation: none;
    }
    .terms_btn,
    .terms_doc,
    .terms_card {
        transition: none;
    }
}

@media only screen and (max-width: 1200px) {
    .terms_payments {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 980px) {
    .terms_hero__content {
        padding: 150px 40px 60px;
    }
    .terms_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .terms_section--info {
        grid-template-columns: 1fr;
    }
    .terms_info--wide {
        grid-column: span 1;
    }
    .terms_docs {
        grid-template-columns: 1fr;
    }
    .terms_forms {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 760px) {
    .terms_page {
        gap: 60px;
        padding-bottom: 60px;
    }
    .terms_hero {
        margin: 16px;
        min-height: 520px;
    }
    .terms_hero__title {
        font-size: 36px;
    }
    .terms_section__title {
        font-size: 30px;
    }
    .terms_columns {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 560px) {
    .terms_hero__content {
        padding: 140px 24px 50px;
    }
    .terms_hero__title {
        font-size: 30px;
    }
    .terms_hero__text {
        font-size: 17px;
    }
    .terms_grid {
        grid-template-columns: 1fr;
    }
    .terms_payments {
        grid-template-columns: 1fr;
    }
    .terms_btn {
        width: 100%;
    }
}
