/* ============================================ */
/* استایل اختصاصی صفحه قوانین و مقررات */
/* ============================================ */

/* ===== صفحه قوانین ===== */
.terms-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.terms-page {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 30px;
    background:
        radial-gradient(circle at 50% 0, rgba(0, 69, 165, 0.08), transparent 30%),
        #010815;
    height: 100%;
}

.terms-container {
    max-width: 920px;
    margin: 0 auto;
    padding-top: 8px;
    padding-bottom: 20px;
}

/* ===== تاریخ به‌روزرسانی ===== */
.terms-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 152, 234, 0.12);
    border: 1px solid rgba(0, 152, 234, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.terms-update-badge strong {
    color: #0098ea;
}

/* ===== مقدمه ===== */
.terms-intro {
    background: rgba(255, 255, 255, 0.03);
    border-right: 3px solid #0098ea;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.terms-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.9;
}

.terms-intro strong {
    color: #0098ea;
}

/* ===== آکاردئون قوانین ===== */
.terms-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-accordion-item {
    overflow: hidden;
    border: 1px solid rgba(25, 104, 205, 0.3);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(6, 26, 55, 0.5), rgba(4, 19, 41, 0.5));
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.terms-accordion-item.open {
    border-color: rgba(22, 143, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 116, 255, 0.08);
}

/* ===== هدر آکاردئون ===== */
.terms-accordion-header {
    width: 100%;
    min-height: 64px;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 36px 1fr 30px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-align: start;
    cursor: pointer;
}

.terms-accordion-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(10, 78, 158, 0.3);
    color: #6aa8ff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.terms-accordion-title {
    min-width: 0;
}

.terms-accordion-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.terms-accordion-title p {
    margin: 2px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.terms-accordion-arrow {
    color: #55b7ff;
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.terms-accordion-item.open .terms-accordion-arrow {
    transform: rotate(180deg);
}

/* ===== محتوای آکاردئون ===== */
.terms-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 14px;
}

.terms-accordion-inner {
    padding: 0 0 16px;
}

.terms-accordion-inner p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 2;
}

.terms-accordion-inner p:last-child {
    margin-bottom: 0;
}

.terms-accordion-inner strong {
    color: #8ac4ff;
}

/* ===== فوتر ===== */
.terms-footer {
    text-align: center;
    padding: 24px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 20px;
}

.terms-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* =========================================================
   اسکرول بار
   ========================================================= */
.terms-page::-webkit-scrollbar {
    width: 4px;
}

.terms-page::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.terms-page::-webkit-scrollbar-thumb {
    background: rgba(0, 152, 234, 0.3);
    border-radius: 4px;
}

/* =========================================================
   واکنش‌گرا
   ========================================================= */
@media (max-width: 480px) {
    .terms-page {
        padding: 0 12px 20px;
    }

    .terms-accordion-header {
        min-height: 56px;
        padding: 8px 12px;
        grid-template-columns: 30px 1fr 26px;
        gap: 8px;
    }

    .terms-accordion-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .terms-accordion-title h3 {
        font-size: 14px;
    }

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

    .terms-accordion-inner p {
        font-size: 14px;
    }

    .terms-intro p {
        font-size: 14px;
    }

    .terms-update-badge {
        font-size: 14px;
        padding: 4px 12px;
    }
}
