/* ============================================
   قوانین و مقررات - استایل اختصاصی
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --primary-deep: #312e81;
    --gold: #f59e0b;
    --gold-light: #facc15;
    --red: #ef4444;
    --green: #22c55e;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1e1e2e;
    --text-soft: #6b7280;
    --border: #e2e8f0;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    --transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ======================
   Hero Section
   ====================== */
.terms-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.terms-hero__title {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.terms-hero__highlight {
    color: #facc15;
}

.terms-hero__desc {
    opacity: 0.85;
    position: relative;
    z-index: 1;color:whitesmoke;
    font-size: 0.9rem;
}


/* ======================
   Container
   ====================== */
.terms-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ======================
   Table of Contents
   ====================== */
.terms-toc {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    border: 2px solid blue;
}

.terms-toc__title {
    font-weight: 900;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.terms-toc__list {
    padding-right: 20px;
}

.terms-toc__list li {
    margin-bottom: 8px;
}

.terms-toc__list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.terms-toc__list a:hover {
    color: var(--primary-dark);
    padding-right: 6px;
}

/* ======================
   Terms Section
   ====================== */
.terms-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.terms-section__title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 16px;
    padding-right: 14px;
    color: #1e1b4b;
}

.terms-section__subtitle {
    font-weight: 800;
    margin: 16px 0 8px;
    color: var(--primary-deep);
    font-size: 1rem;
}

.terms-section__text {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.9;
}

.terms-section__list {
    padding-right: 20px;
    margin-bottom: 12px;
}

.terms-section__list li {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.9;
}

/* ======================
   رنگ‌بندی هر بخش
   ====================== */

/* بخش ۱ - قرمز */
.terms-section--s1 {
    border-color: #dc2626;
    background: #fef2f2;
}
.terms-section--s1 .terms-section__title {
    border-right: 4px solid #dc2626;
    color: #dc2626;
}
.terms-section--s1 .terms-section__subtitle {
    color: #dc2626;
}
.terms-section--s1 .terms-section__text,
.terms-section--s1 .terms-section__list li {
    color: #7f1d1d;
}

/* بخش ۲ - نارنجی */
.terms-section--s2 {
    border-color: #d97706;
    background: #fff7ed;
}
.terms-section--s2 .terms-section__title {
    border-right: 4px solid #d97706;
    color: #d97706;
}
.terms-section--s2 .terms-section__subtitle {
    color: #d97706;
}
.terms-section--s2 .terms-section__text,
.terms-section--s2 .terms-section__list li {
    color: #78350f;
}

/* بخش ۳ - سبز */
.terms-section--s3 {
    border-color: #16a34a;
    background: #f0fdf4;
}
.terms-section--s3 .terms-section__title {
    border-right: 4px solid #16a34a;
    color: #16a34a;
}
.terms-section--s3 .terms-section__subtitle {
    color: #16a34a;
}
.terms-section--s3 .terms-section__text,
.terms-section--s3 .terms-section__list li {
    color: #14532d;
}

/* بخش ۴ - آبی */
.terms-section--s4 {
    border-color: #2563eb;
    background: #eff6ff;
}
.terms-section--s4 .terms-section__title {
    border-right: 4px solid #2563eb;
    color: #2563eb;
}
.terms-section--s4 .terms-section__subtitle {
    color: #2563eb;
}
.terms-section--s4 .terms-section__text,
.terms-section--s4 .terms-section__list li {
    color: #1e3a5f;
}

/* بخش ۵ - بنفش */
.terms-section--s5 {
    border-color: #7c3aed;
    background: #f5f3ff;
}
.terms-section--s5 .terms-section__title {
    border-right: 4px solid #7c3aed;
    color: #7c3aed;
}
.terms-section--s5 .terms-section__subtitle {
    color: #7c3aed;
}
.terms-section--s5 .terms-section__text,
.terms-section--s5 .terms-section__list li {
    color: #4c1d95;
}

/* بخش ۶ - صورتی */
.terms-section--s6 {
    border-color: #db2777;
    background: #fdf2f8;
}
.terms-section--s6 .terms-section__title {
    border-right: 4px solid #db2777;
    color: #db2777;
}
.terms-section--s6 .terms-section__subtitle {
    color: #db2777;
}
.terms-section--s6 .terms-section__text,
.terms-section--s6 .terms-section__list li {
    color: #831843;
}

/* بخش ۷ - آبی روشن */
.terms-section--s7 {
    border-color: #0284c7;
    background: #f0f9ff;
}
.terms-section--s7 .terms-section__title {
    border-right: 4px solid #0284c7;
    color: #0284c7;
}
.terms-section--s7 .terms-section__subtitle {
    color: #0284c7;
}
.terms-section--s7 .terms-section__text,
.terms-section--s7 .terms-section__list li {
    color: #0c4a6e;
}

/* بخش ۸ - نارنجی تیره */
.terms-section--s8 {
    border-color: #ea580c;
    background: #fff7ed;
}
.terms-section--s8 .terms-section__title {
    border-right: 4px solid #ea580c;
    color: #ea580c;
}
.terms-section--s8 .terms-section__subtitle {
    color: #ea580c;
}
.terms-section--s8 .terms-section__text,
.terms-section--s8 .terms-section__list li {
    color: #7c2d12;
}

/* بخش ۹ - سبز زمردی */
.terms-section--s9 {
    border-color: #059669;
    background: #ecfdf5;
}
.terms-section--s9 .terms-section__title {
    border-right: 4px solid #059669;
    color: #059669;
}
.terms-section--s9 .terms-section__subtitle {
    color: #059669;
}
.terms-section--s9 .terms-section__text,
.terms-section--s9 .terms-section__list li {
    color: #064e3b;
}

/* بخش ۱۰ - نیلی */
.terms-section--s10 {
    border-color: #4f46e5;
    background: #eef2ff;
}
.terms-section--s10 .terms-section__title {
    border-right: 4px solid #4f46e5;
    color: #4f46e5;
}
.terms-section--s10 .terms-section__subtitle {
    color: #4f46e5;
}
.terms-section--s10 .terms-section__text,
.terms-section--s10 .terms-section__list li {
    color: #312e81;
}


/* ======================
   Highlight Box
   ====================== */
.highlight-box {
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 16px 0;
}

.highlight-box p {
    font-weight: 600;
    margin: 0;
    line-height: 1.8;
}

.highlight-box--blue {
    background: #d9dbff;
    border: 2px dashed #0300b3;
}

.highlight-box--yellow p {
    color: #1e1b4b;
}

.highlight-box--green {
    background: #c2f7d2;
    border: 2px dashed #22c55e;
}

.highlight-box--green p {
    color: #166534;
}

.highlight-box--red {
    background: #fef2f2;
    border: 2px dashed #ef4444;
}

.highlight-box--red p {
    color: #991b1b;
}

.terms-section--s1 strong { color: #dc2626; }
.terms-section--s2 strong { color: #d97706; }
.terms-section--s3 strong { color: #16a34a; }
.terms-section--s4 strong { color: #2563eb; }
.terms-section--s5 strong { color: #7c3aed; }
.terms-section--s6 strong { color: #db2777; }
.terms-section--s7 strong { color: #0284c7; }
.terms-section--s8 strong { color: #ea580c; }
.terms-section--s9 strong { color: #059669; }
.terms-section--s10 strong { color: #4f46e5; }
/* ======================
   Contact Box
   ====================== */
.terms-contact {direction:ltr;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    border: 2px solid var(--primary);
}

.terms-contact__title {
    font-weight: 900;
    color: var(--primary-deep);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.terms-contact__desc {
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.terms-contact__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.terms-contact__btn {
    display: inline-block;
    padding: 5px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.terms-contact__btn--primary {
    background: var(--primary);
    color: var(--white);
}

.terms-contact__btn--primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.terms-contact__btn--whatsapp {
    background: #25d366;
    color: var(--white);
}

.terms-contact__btn--whatsapp:hover {
    transform: scale(1.05);
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 640px) {
    .terms-hero {
        padding: 30px 16px;
    }

    .terms-hero__title {
        font-size: 1.3rem;
    }

    .terms-section {
        padding: 20px 16px;
    }

    .terms-section__title {
        font-size: 1.1rem;
    }

    .terms-contact__actions {
        flex-direction: column;
        align-items: center;
    }
}