/* ===================================================
   استایل‌های صفحه قوانین و مقررات - سروهاست
   =================================================== */

/* ===== هدر صفحه قوانین ===== */
.header-terms {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 50%, #1A237E 100%);
    min-height: auto;
    padding-bottom: 60px;
}

.hero-terms {
    padding: 40px 0 20px;
}

.hero-terms .hero-content-center {
    text-align: center;
}

.hero-terms h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.hero-terms .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* ===== محتوای اصلی ===== */
.terms-content {
    background: #f8fafc;
}

.terms-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== سایدبار ===== */
.terms-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A237E;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title svg {
    width: 20px;
    height: 20px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 5px;
}

.toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    background: #EEF2FF;
    color: #1A237E;
}

.toc-number {
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.toc-list a:hover .toc-number,
.toc-list a.active .toc-number {
    background: #1A237E;
    color: #fff;
}

/* ===== مقالات ===== */
.terms-articles {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.terms-article {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #f1f5f9;
}

.terms-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.article-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1A237E, #3949AB);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.article-content {
    color: #475569;
    line-height: 2;
    font-size: 1rem;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content ul {
    margin: 20px 0;
    padding-right: 25px;
}

.article-content li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 10px;
}

.article-content li::marker {
    color: #1A237E;
}

/* ===== هایلایت باکس ===== */
.highlight-box {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
    border-right: 4px solid #1A237E;
}

.highlight-box.warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-right-color: #F59E0B;
}

.highlight-box.danger {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-right-color: #EF4444;
}

.highlight-box.success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-right-color: #10B981;
}

.highlight-box-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-box-title svg {
    width: 18px;
    height: 18px;
}

.highlight-box p {
    margin: 0;
    color: #475569;
}

/* ===== جدول ===== */
.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.terms-table th,
.terms-table td {
    padding: 15px 20px;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
}

.terms-table th {
    background: #1A237E;
    color: #fff;
    font-weight: 600;
}

.terms-table tr:nth-child(even) {
    background: #f8fafc;
}

.terms-table tr:hover {
    background: #EEF2FF;
}

/* ===== باکس پذیرش ===== */
.acceptance-box {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.acceptance-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.acceptance-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ===== کارت‌های اطلاعات تماس ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.contact-card:hover {
    background: #EEF2FF;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.1);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: #1A237E;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.contact-card-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #00aaff);
}

.contact-card h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.contact-card a {
    color: #1A237E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #3949AB;
}

/* ===== CTA Section ===== */
.section-cta {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
    padding: 60px 0;
}

.section-cta .cta-box {
    text-align: center;
}

.section-cta .cta-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-cta .cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.section-cta .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
    }
    
    .terms-sidebar {
        position: static;
        display: none;
    }
    
    .terms-articles {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header-terms {
        padding-bottom: 40px;
    }
    
    .hero-terms h1 {
        font-size: 1.8rem;
    }
    
    .hero-terms .hero-subtitle {
        font-size: 1rem;
    }
    
    .terms-articles {
        padding: 25px 20px;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .acceptance-box {
        padding: 30px 20px;
    }
    
    .acceptance-box h3 {
        font-size: 1.3rem;
    }
    
    .section-cta .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .section-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .terms-table {
        font-size: 0.85rem;
    }
    
    .terms-table th,
    .terms-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .hero-terms h1 {
        font-size: 1.5rem;
    }
    
    .terms-articles {
        padding: 20px 15px;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .highlight-box {
        padding: 15px 18px;
    }
}