/* ==================================================
   Terms & Conditions / Support Page
================================================== */

.support-section {
    position: relative;
    isolation: isolate;
    max-width: 1080px;
    min-height: 70vh;
    margin-inline: auto;
    padding-top: 56px;
    padding-bottom: 72px;
    direction: rtl;
}

/* نور تزئینی پشت کارت */
.support-section::before,
.support-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
}

.support-section::before {
    top: 80px;
    right: -90px;
    width: 280px;
    height: 280px;
    background: radial-gradient(
            circle,
            rgba(214, 173, 85, 0.16) 0%,
            rgba(214, 173, 85, 0) 70%
    );
}

.support-section::after {
    left: -100px;
    bottom: 20px;
    width: 320px;
    height: 320px;
    background: radial-gradient(
            circle,
            rgba(18, 52, 90, 0.55) 0%,
            rgba(18, 52, 90, 0) 72%
    );
}

/* کارت اصلی */
.support-card {
    position: relative;
    overflow: hidden;
    padding: 46px 52px;
    color: var(--text-light);
    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.095),
                    rgba(255, 255, 255, 0.035)
            );
    border: 1px solid rgba(214, 173, 85, 0.34);
    border-radius: 18px;
    box-shadow:
            0 22px 55px rgba(0, 0, 0, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* نوار طلایی بالای کارت */
.support-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 7%;
    left: 7%;
    height: 2px;
    background: linear-gradient(
            90deg,
            transparent,
            var(--gold-dark),
            var(--gold-light),
            var(--gold-dark),
            transparent
    );
    box-shadow: 0 0 18px rgba(242, 210, 122, 0.38);
}

/* طرح تزئینی گوشه کارت */
.support-card::after {
    content: "";
    position: absolute;
    top: -90px;
    left: -90px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(242, 210, 122, 0.12);
    border-radius: 50%;
    box-shadow:
            0 0 0 28px rgba(242, 210, 122, 0.025),
            0 0 0 58px rgba(242, 210, 122, 0.018);
    pointer-events: none;
}

/* عنوان اصلی */
.support-card > h1 {
    position: relative;
    margin: 0 0 34px;
    padding: 0 0 22px;
    color: var(--gold-light);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -0.7px;
}

/* آیکن کنار عنوان اصلی */
.support-card > h1::before {
    content: "§";
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: 14px;
    color: var(--navy-deep);
    background: linear-gradient(
            135deg,
            #ffe59b,
            var(--gold)
    );
    border-radius: 13px;
    box-shadow:
            0 7px 20px rgba(214, 173, 85, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1;
    vertical-align: middle;
}

/* خط زیر عنوان */
.support-card > h1::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
            90deg,
            rgba(214, 173, 85, 0.65),
            rgba(214, 173, 85, 0.12),
            transparent
    );
}

/* پاراگراف مقدمه */
.support-card > h1 + p {
    position: relative;
    margin-bottom: 38px;
    padding: 18px 20px;
    color: #e6ebf1;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(214, 173, 85, 0.18);
    border-right: 4px solid var(--gold);
    border-radius: 10px;
    font-size: 16px;
    line-height: 2.1;
}

/* شماره‌گذاری خودکار بخش‌ها */
.support-card {
    counter-reset: support-heading;
}

/* عناوین داخلی */
.support-card h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 38px 0 14px;
    color: var(--gold-light);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.7;
}

.support-card h2::before {
    counter-increment: support-heading;
    content: counter(support-heading);
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    color: var(--navy-deep);
    background: linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
    );
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(214, 173, 85, 0.18);
    font-size: 14px;
    font-weight: 900;
}

/* پاراگراف‌های متن */
.support-card p {
    margin: 0 0 18px;
    color: #d6dee8;
    font-size: 15px;
    line-height: 2.15;
    text-align: justify;
}

/* لیست قوانین */
.support-card ul {
    display: grid;
    gap: 11px;
    margin: 12px 0 28px;
    padding: 0;
    list-style: none;
}

.support-card li {
    position: relative;
    padding: 13px 46px 13px 16px;
    color: #dce3eb;
    background:
            linear-gradient(
                    90deg,
                    rgba(214, 173, 85, 0.08),
                    rgba(255, 255, 255, 0.025)
            );
    border: 1px solid rgba(214, 173, 85, 0.16);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.95;
    transition:
            transform 0.22s ease,
            border-color 0.22s ease,
            background 0.22s ease;
}

.support-card li::before {
    content: "✓";
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--navy-deep);
    background: linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
    );
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
    transform: translateY(-50%);
}

.support-card li:hover {
    transform: translateX(-4px);
    border-color: rgba(242, 210, 122, 0.38);
    background:
            linear-gradient(
                    90deg,
                    rgba(214, 173, 85, 0.13),
                    rgba(255, 255, 255, 0.04)
            );
}

/* بخش ارتباط با ما */
.support-card h2:last-of-type + p {
    margin-bottom: 0;
    padding: 18px 20px;
    color: #f0f3f7;
    background:
            linear-gradient(
                    135deg,
                    rgba(214, 173, 85, 0.12),
                    rgba(214, 173, 85, 0.045)
            );
    border: 1px solid rgba(214, 173, 85, 0.28);
    border-radius: 11px;
}

/* انتخاب متن */
.support-card ::selection {
    color: var(--navy-deep);
    background: var(--gold-light);
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 992px) {
    .support-section {
        padding-top: 42px;
        padding-bottom: 56px;
    }

    .support-card {
        padding: 38px 34px;
    }

    .support-card > h1 {
        font-size: 30px;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 768px) {
    .support-section {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .support-card {
        padding: 28px 20px;
        border-radius: 13px;
    }

    .support-card > h1 {
        margin-bottom: 24px;
        padding-bottom: 17px;
        font-size: 25px;
    }

    .support-card > h1::before {
        width: 40px;
        height: 40px;
        margin-left: 10px;
        border-radius: 10px;
        font-size: 25px;
    }

    .support-card > h1 + p {
        margin-bottom: 28px;
        padding: 15px;
        font-size: 14px;
        line-height: 2;
    }

    .support-card h2 {
        margin-top: 30px;
        gap: 10px;
        font-size: 18px;
    }

    .support-card h2::before {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
        border-radius: 8px;
        font-size: 13px;
    }

    .support-card p {
        font-size: 14px;
        line-height: 2;
        text-align: right;
    }

    .support-card li {
        padding: 12px 42px 12px 12px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .support-card {
        padding: 24px 15px;
    }

    .support-card > h1 {
        font-size: 21px;
    }

    .support-card > h1::before {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .support-card h2 {
        font-size: 16px;
    }
}

/* احترام به تنظیمات کاهش حرکت کاربر */
@media (prefers-reduced-motion: reduce) {
    .support-card li {
        transition: none;
    }

    .support-card li:hover {
        transform: none;
    }
}
