.terms-return {
    display: block;
    margin: 38px 36px 16px 0;
    color: #fff;
    font-size: 14px;
    text-align: right;
    text-shadow: 0 2px 4px #000;
}

.terms-content { position: relative; padding: 0 41px 46px; }

.terms-card {
    position: relative;
    min-height: 735px;
    padding: 45px 32px 35px;
    overflow: hidden;
    border-radius: 12px;
    background: url("../images/page-terms/Black-Glass.webp") center/100% 100% no-repeat;
    box-shadow: inset 0 0 34px rgba(114, 35, 255, 0.28);
}

.terms-card.main-text { font-size: clamp(14px, 1.45vw, 20px); }
.terms-title { width: 430px; max-width: 86%; margin: 0 auto 24px; }

.terms-intro {
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 3px #000;
}

.terms-section { margin: 0 auto 33px; }

.terms-section-title {
    width: 440px;
    max-width: 100%;
    min-height: 43px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/bg/Shape Yellow.webp") center/100% 100% no-repeat;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 3px #000;
}

.terms-text { max-width: 830px; margin: 0 auto; line-height: 1.25; text-shadow: 0 1px 2px #000; }
.terms-text p { margin: 0 0 12px; }

.third-party-grid {
    max-width: 760px;
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.third-party-grid .small {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/page-terms/Small-Shape.webp") center/100% 100% no-repeat;
    text-align: center;
}

.third-party-grid .borders {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url("../images/page-terms/Long-Shape.webp") center/100% 100% no-repeat;
}

.third-party-grid span:last-child { grid-column: 1 / -1; }

.terms-email {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 55px;
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 20px;
    text-align: center;
}

.accept-wrap { position: relative; width: 330px; max-width: 72%; margin: 44px auto 0; display: block; }
.accept-wrap:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -55px;
    width: 510px;
    height: 88px;
    background: url("../images/page-terms/Shape-Yellow.webp") center/100% 100% no-repeat;
    opacity: 0.45;
    transform: translateX(-50%);
    pointer-events: none;
}

.accept-button { position: relative; z-index: 1; display: block; }
.accept-button img { width: 100%; }

@media (max-width: 767px) {
    .terms-return { margin: 23px 21px 12px 0; font-size: 14px; }
    .terms-content { padding: 0 13px 25px; }
    .terms-card { min-height: 720px; padding: 24px 13px 24px; border-radius: 6px; }
    .terms-card.main-text { font-size: 14px; }
    .terms-title { width: 250px; margin-bottom: 15px; }
    .terms-intro { margin-bottom: 25px; line-height: 1.28; }
    .terms-section { margin-bottom: 26px; }
    .terms-section-title { min-height: 25px; margin-bottom: 13px; font-size: 14px; }
    .terms-text { line-height: 1.2; }
    .third-party-grid { gap: 9px 8px; }
    .third-party-grid span { min-height: 27px; }
    .terms-email { bottom: 24px; font-size: 14px; }
    .accept-wrap { width: 164px; margin-top: 21px; }
    .accept-wrap:after { top: -30px; width: 250px; height: 47px; }
}
