/* ========================================
   TERMS PAGE - EXCLUSIVE STYLES
   آتریانا - صفحه قوانین و مقررات
======================================== */

:root {
    --primary-orange: #F59E0B;
    --dark-navy: #1E293B;
    --bg-cream: #FFF8F0;
    --text-dark: #0F172A;
    --accent-gold: #D97706;
    --border-light: rgba(245, 158, 11, 0.2);
    --danger-red: #DC2626;
    --danger-bg: #FEF2F2;
    --warning-bg: #FEF3C7;
    --info-bg: #DBEAFE;
    --success-bg: #DCFCE7;
}

/* Page Loader Override */
.page-loader {
    background: var(--bg-cream);
}

/* ========================================
   PROGRESS BAR
======================================== */
.terms-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(245, 158, 11, 0.2);
    z-index: 9999;
}

.terms-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-gold));
    transition: width 0.1s ease;
}

/* ========================================
   HERO SECTION
======================================== */
.terms-hero {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #334155 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: termsFloat 8s ease-in-out infinite;
}

.terms-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: termsFloat 10s ease-in-out infinite reverse;
}

@keyframes termsFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.terms-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.terms-hero-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--danger-red), #B91C1C);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.terms-hero-icon:hover {
    transform: rotate(0deg) scale(1.05);
}

.terms-hero-icon i {
    font-size: 48px;
    color: white;
}

.terms-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.terms-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.terms-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.terms-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-orange);
    font-size: 0.95rem;
}

.terms-meta-item i {
    font-size: 1.2rem;
}

.terms-last-update {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 38, 38, 0.2);
    padding: 12px 25px;
    border-radius: 30px;
    color: #FCA5A5;
    font-size: 0.95rem;
    margin-top: 25px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.terms-last-update i {
    color: #F87171;
}

/* ========================================
   WARNING SECTION
======================================== */
.terms-warning-section {
    background: var(--danger-bg);
    padding: 0;
}

.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-critical-alert {
    background: linear-gradient(135deg, var(--danger-red), #B91C1C);
    padding: 40px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.terms-critical-alert::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.terms-critical-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.terms-critical-icon i {
    font-size: 32px;
    color: white;
    animation: termsPulse 2s infinite;
}

@keyframes termsPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.terms-critical-content {
    position: relative;
    z-index: 1;
}

.terms-critical-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.terms-critical-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   MAIN CONTENT
======================================== */
.terms-main {
    background: var(--bg-cream);
    padding: 80px 0;
}

/* ========================================
   TABLE OF CONTENTS
======================================== */
.terms-toc {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-light);
}

.terms-toc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.terms-toc-header i {
    font-size: 28px;
    color: var(--primary-orange);
}

.terms-toc-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.terms-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.terms-toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-cream);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.terms-toc-item:hover {
    background: white;
    border-color: var(--primary-orange);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.15);
}

.terms-toc-number {
    width: 35px;
    height: 35px;
    min-width: 35px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ========================================
   SECTIONS
======================================== */
.terms-section {
    background: white;
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.15);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-orange);
}

.section-title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title-icon i {
    font-size: 28px;
    color: white;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.section-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-content ul li {
    padding: 15px 0;
    padding-right: 40px;
    position: relative;
    font-size: 1.05rem;
    color: #475569;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.7;
}

.section-content ul li:last-child {
    border-bottom: none;
}

.section-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-orange);
    font-size: 18px;
}

/* ========================================
   ALERT BOXES (ادامه)
======================================== */
.alert-box {
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-right: 5px solid;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.alert-box i {
    font-size: 24px;
    margin-top: 3px;
    flex-shrink: 0;
}

.alert-box strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.alert-box p {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

.alert-box.alert-danger {
    background: var(--danger-bg);
    border-color: var(--danger-red);
}

.alert-box.alert-danger i,
.alert-box.alert-danger strong {
    color: var(--danger-red);
}

.alert-box.alert-warning {
    background: var(--warning-bg);
    border-color: var(--primary-orange);
}

.alert-box.alert-warning i,
.alert-box.alert-warning strong {
    color: var(--accent-gold);
}

.alert-box.alert-info {
    background: var(--info-bg);
    border-color: #3B82F6;
}

.alert-box.alert-info i,
.alert-box.alert-info strong {
    color: #2563EB;
}

.alert-box.alert-success {
    background: var(--success-bg);
    border-color: #22C55E;
}

.alert-box.alert-success i,
.alert-box.alert-success strong {
    color: #16A34A;
}

/* ========================================
   DEFINITIONS GRID
======================================== */
.terms-definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.terms-definition-card {
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.terms-definition-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.terms-definition-term {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.terms-definition-term i {
    font-size: 24px;
    color: var(--primary-orange);
}

.terms-definition-term strong {
    font-size: 1.15rem;
    color: var(--text-dark);
}

.terms-definition-card p {
    margin: 0 !important;
    color: #64748B;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* ========================================
   VIOLATION BOX
======================================== */
.terms-violation-box {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-radius: 16px;
    overflow: hidden;
    margin: 30px 0;
    border: 2px solid rgba(220, 38, 38, 0.2);
}

.terms-violation-header {
    background: linear-gradient(135deg, var(--danger-red), #B91C1C);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terms-violation-header i {
    font-size: 28px;
    color: white;
}

.terms-violation-header h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.terms-violation-content {
    padding: 25px;
}

.terms-violation-content p {
    color: #7F1D1D;
    margin-bottom: 20px !important;
}

.terms-penalty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.terms-penalty-item {
    background: white;
    padding: 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.terms-penalty-item:hover {
    border-color: var(--danger-red);
    transform: scale(1.02);
}

.terms-penalty-item i {
    font-size: 22px;
    color: var(--danger-red);
}

.terms-penalty-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ========================================
   DATA LICENSE BOX
======================================== */
.terms-data-license {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #FEF3C7 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    border: 2px solid var(--border-light);
}

.terms-data-license h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.terms-data-license h4 i {
    font-size: 24px;
}

.terms-data-license > p {
    color: #78350F !important;
    margin-bottom: 15px !important;
}

.terms-data-license ul {
    margin: 0;
    padding: 0;
}

.terms-data-license ul li {
    padding: 10px 0 !important;
    padding-right: 30px !important;
    border-bottom: 1px dashed rgba(217, 119, 6, 0.3) !important;
    color: #78350F !important;
}

.terms-data-license ul li::before {
    content: '\f058' !important;
    color: var(--accent-gold) !important;
}

/* ========================================
   AI WARNING BOX
======================================== */
.terms-ai-warning {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin: 30px 0;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.terms-ai-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-ai-icon i {
    font-size: 32px;
    color: white;
}

.terms-ai-content h4 {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.terms-ai-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    line-height: 1.8 !important;
}

/* ========================================
   LIABILITY GRID
======================================== */
.terms-liability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.terms-liability-item {
    background: var(--danger-bg);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(220, 38, 38, 0.15);
    transition: all 0.3s ease;
}

.terms-liability-item:hover {
    border-color: var(--danger-red);
    background: #FEE2E2;
}

.terms-liability-item i {
    font-size: 22px;
    color: var(--danger-red);
    flex-shrink: 0;
}

.terms-liability-item span {
    font-weight: 500;
    color: #7F1D1D;
    font-size: 0.95rem;
}

/* ========================================
   MAX LIABILITY BOX
======================================== */
.terms-max-liability {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 30px 0;
    border: 3px solid var(--primary-orange);
}

.terms-max-liability-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-max-liability-icon i {
    font-size: 36px;
    color: white;
}

.terms-max-liability-content h4 {
    color: var(--primary-orange);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.terms-max-liability-content > p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 20px !important;
}

.terms-max-amount {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.terms-max-amount span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.terms-max-amount .terms-or {
    background: var(--primary-orange);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.terms-max-amount .terms-note {
    width: 100%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
}

/* ========================================
   NO REFUND BOX
======================================== */
.terms-no-refund-box {
    background: linear-gradient(135deg, var(--danger-red), #B91C1C);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.terms-no-refund-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.terms-no-refund-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.terms-no-refund-icon i {
    font-size: 40px;
    color: white;
}

.terms-no-refund-content {
    position: relative;
    z-index: 1;
}

.terms-no-refund-content h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.terms-no-refund-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 12px !important;
    line-height: 1.8 !important;
}

/* ========================================
   VIOLATIONS TABLE
======================================== */
.terms-violations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.terms-violations-table thead {
    background: linear-gradient(135deg, var(--dark-navy), #334155);
}

.terms-violations-table th {
    padding: 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: right;
}

.terms-violations-table tbody tr {
    background: white;
    transition: background 0.3s ease;
}

.terms-violations-table tbody tr:nth-child(even) {
    background: var(--bg-cream);
}

.terms-violations-table tbody tr:hover {
    background: #FEF3C7;
}

.terms-violations-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #475569;
    font-size: 0.95rem;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.terms-badge i {
    font-size: 14px;
}

.terms-badge-danger {
    background: var(--danger-bg);
    color: var(--danger-red);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.terms-badge-warning {
    background: var(--warning-bg);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ========================================
   ACCEPTANCE SECTION
======================================== */
.terms-acceptance-section {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #334155 100%);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.terms-acceptance-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.terms-acceptance-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.3);
}

.terms-acceptance-icon i {
    font-size: 48px;
    color: white;
}

.terms-acceptance-section h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.terms-acceptance-section > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.terms-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.terms-checkbox-wrapper input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.terms-checkbox-wrapper label {
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
}

.terms-accept-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.terms-accept-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.terms-accept-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.terms-accept-btn i {
    font-size: 24px;
}

.terms-contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.terms-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.terms-contact-item i {
    color: var(--primary-orange);
    font-size: 18px;
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
.terms-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(245, 158, 11, 0.4);
}

.terms-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.terms-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.5);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .terms-hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-section {
        padding: 35px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .terms-acceptance-section {
        padding: 40px 30px;
    }
    
    .terms-max-liability {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .terms-ai-warning {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .terms-no-refund-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .terms-critical-alert {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   RESPONSIVE DESIGN (ادامه)
======================================== */
@media (max-width: 768px) {
    .terms-back-to-top {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .terms-definitions-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-penalty-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-liability-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-box {
        flex-direction: column;
        text-align: center;
    }
    
    .terms-acceptance-section h3 {
        font-size: 1.5rem;
    }
    
    .terms-acceptance-icon {
        width: 80px;
        height: 80px;
    }
    
    .terms-acceptance-icon i {
        font-size: 36px;
    }
    
    .terms-checkbox-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .terms-checkbox-wrapper label {
        font-size: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .terms-hero h1 {
        font-size: 1.7rem;
    }
    
    .terms-hero p {
        font-size: 1rem;
    }
    
    .terms-section {
        padding: 20px;
        border-radius: 16px;
    }
    
    .section-title h2 {
        font-size: 1.2rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    .section-icon i {
        font-size: 22px;
    }
    
    .terms-max-liability {
        padding: 25px;
    }
    
    .terms-max-liability-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .terms-max-liability-icon i {
        font-size: 28px;
    }
    
    .terms-no-refund-box {
        padding: 25px;
    }
    
    .terms-no-refund-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .terms-no-refund-icon i {
        font-size: 30px;
    }
    
    .terms-ai-warning {
        padding: 25px;
    }
    
    .terms-ai-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .terms-ai-icon i {
        font-size: 26px;
    }
    
    .terms-critical-alert {
        padding: 25px;
    }
    
    .terms-critical-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .terms-critical-icon i {
        font-size: 28px;
    }
    
    .terms-acceptance-section {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .terms-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .terms-violations-table th,
    .terms-violations-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .terms-hero {
        background: white !important;
        color: black !important;
        padding: 30px 0 !important;
    }
    
    .terms-hero::before,
    .terms-hero::after {
        display: none !important;
    }
    
    .terms-hero h1 {
        color: black !important;
        font-size: 24pt !important;
    }
    
    .terms-hero p {
        color: #333 !important;
    }
    
    .terms-progress-container,
    .terms-back-to-top,
    .terms-acceptance-section,
    .terms-toc {
        display: none !important;
    }
    
    .terms-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section-icon {
        background: #f5f5f5 !important;
    }
    
    .section-icon i {
        color: #333 !important;
    }
    
    .alert-box {
        border: 2px solid !important;
        background: white !important;
    }
    
    .terms-critical-alert,
    .terms-max-liability,
    .terms-no-refund-box,
    .terms-ai-warning {
        background: #f9f9f9 !important;
        border: 2px solid #333 !important;
        color: black !important;
    }
    
    .terms-critical-alert h3,
    .terms-critical-alert p,
    .terms-max-liability-content h4,
    .terms-max-liability-content p,
    .terms-no-refund-content h4,
    .terms-no-refund-content p,
    .terms-ai-content h4,
    .terms-ai-content p {
        color: black !important;
    }
    
    .terms-violations-table {
        box-shadow: none !important;
    }
    
    .terms-violations-table thead {
        background: #333 !important;
    }
    
    a {
        text-decoration: none !important;
        color: inherit !important;
    }
}

/* ========================================
   COOKIE BANNER
======================================== */
.terms-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-navy), #334155);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.terms-cookie-banner.show {
    transform: translateY(0);
}

.terms-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.terms-cookie-text {
    flex: 1;
    min-width: 300px;
}

.terms-cookie-text h4 {
    color: var(--primary-orange);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-cookie-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.terms-cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.terms-cookie-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.terms-cookie-btn.accept {
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    color: white;
}

.terms-cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.terms-cookie-btn.essential {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-cookie-btn.essential:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .terms-cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .terms-cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.terms-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.terms-section:nth-child(1) { animation-delay: 0.1s; }
.terms-section:nth-child(2) { animation-delay: 0.2s; }
.terms-section:nth-child(3) { animation-delay: 0.3s; }
.terms-section:nth-child(4) { animation-delay: 0.4s; }
.terms-section:nth-child(5) { animation-delay: 0.5s; }
.terms-section:nth-child(6) { animation-delay: 0.6s; }
.terms-section:nth-child(7) { animation-delay: 0.7s; }
.terms-section:nth-child(8) { animation-delay: 0.8s; }
.terms-section:nth-child(9) { animation-delay: 0.9s; }
.terms-section:nth-child(10) { animation-delay: 1.0s; }
.terms-section:nth-child(11) { animation-delay: 1.1s; }
.terms-section:nth-child(12) { animation-delay: 1.2s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .terms-section {
        animation: none;
        opacity: 1;
    }
    
    .terms-back-to-top,
    .terms-cookie-banner,
    .terms-accept-btn,
    .terms-toc-item,
    .terms-definition-card,
    .terms-penalty-item,
    .terms-liability-item {
        transition: none;
    }
}

/* ========================================
   SCROLLBAR STYLING
======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-gold));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ========================================
   SELECTION STYLING
======================================== */
::selection {
    background: var(--primary-orange);
    color: white;
}

::-moz-selection {
    background: var(--primary-orange);
    color: white;
}
