/* terms.css - استایل کامل صفحه قوانین و مقررات */

:root {
    --primary: #FF9800;
    --primary-dark: #F57C00;
    --primary-light: #FFE0B2;
    --secondary: #FF5722;
    --secondary-dark: #D84315;
    --secondary-light: #FFCCBC;
    --dark: #333333;
    --dark-light: #555555;
    --gray: #666666;
    --gray-light: #888888;
    --light-gray: #F5F5F5;
    --lighter-gray: #FAFAFA;
    --white: #FFFFFF;
    --border-color: #EEEEEE;
    --border-dark: #DDDDDD;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* استایل‌های پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* استایل‌های عمومی دکمه‌ها */
.btn {
    padding: 14px 30px;
    border-radius: var(--radius);
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

/* هدر */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.6rem;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

.logo span {
    color: var(--primary);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    display: block;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    background: var(--light-gray);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.1rem;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--secondary);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--white);
}

/* هیرو */
.terms-hero {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(33, 150, 243, 0.08) 100%);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 65%, rgba(255, 152, 0, 0.03) 65%, rgba(255, 152, 0, 0.03) 70%, transparent 70%),
                linear-gradient(135deg, transparent 30%, rgba(33, 150, 243, 0.03) 30%, rgba(33, 150, 243, 0.03) 35%, transparent 35%);
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.terms-hero h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
}

.terms-hero h1 i {
    color: var(--primary);
    font-size: 2.2rem;
}

.terms-hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 152, 0, 0.1);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid rgba(255, 152, 0, 0.2);
}

.hero-badge i {
    margin-left: 8px;
}

/* ناوبری */
.breadcrumb {
    background: var(--white);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb a {
    color: var(--gray);
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumb a:hover {
    color: var(--primary);
    background: rgba(255, 152, 0, 0.1);
}

.breadcrumb i {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.breadcrumb li:last-child {
    color: var(--dark);
    font-weight: 600;
}

/* خلاصه قوانین */
.terms-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.summary-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(255, 152, 0, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.summary-card p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1;
}

.reading-time {
    width: 100%;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--gray);
    display: block;
    text-align: center;
}

/* فهرست مطالب */
.toc-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 40px 0;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.toc-header {
    background: linear-gradient(135deg, var(--primary-light), #FFF3E0);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
}

.toc-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toc-toggle:hover {
    background: rgba(255, 152, 0, 0.1);
}

.toc-toggle.active i {
    transform: rotate(180deg);
}

.toc-content {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.toc-content.collapsed {
    max-height: 0;
    padding: 0 30px;
    overflow: hidden;
}

.toc-content ul {
    list-style: none;
}

.toc-content li {
    margin-bottom: 15px;
    position: relative;
    padding-right: 25px;
}

.toc-content li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.toc-content a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 0;
    font-weight: 500;
}

.toc-content a:hover {
    color: var(--primary);
    padding-right: 10px;
}

.toc-content a.active {
    color: var(--primary);
    font-weight: 600;
}

/* بخش‌های قوانین */
.terms-sections {
    margin: 50px 0;
}

.term-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.term-section:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.section-header {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05), rgba(255, 152, 0, 0.1));
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.section-content {
    padding: 30px;
}

.section-content h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 25px 0 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.section-content .small-text {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: -10px;
    margin-bottom: 20px;
}

/* لیست تعاریف */
.definition-list {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 20px;
    margin: 25px 0;
    border-right: 4px solid var(--primary);
}

.definition-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.definition-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.definition-item strong {
    color: var(--dark);
    min-width: 100px;
    font-weight: 600;
    flex-shrink: 0;
}

.definition-item span {
    color: var(--gray);
    flex: 1;
    line-height: 1.6;
}

/* لیست قوانین */
.term-list {
    list-style: none;
    margin: 20px 0 25px;
    padding-right: 25px;
}

.term-list li {
    margin-bottom: 12px;
    color: var(--gray);
    line-height: 1.6;
    position: relative;
    padding-right: 30px;
}

.term-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* انواع نکات */
.important-note,
.warning-note,
.note,
.security-note {
    border-radius: var(--radius);
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.important-note {
    background: rgba(255, 152, 0, 0.1);
    border-right: 4px solid var(--primary);
}

.warning-note {
    background: rgba(244, 67, 54, 0.1);
    border-right: 4px solid #f44336;
}

.note {
    background: rgba(33, 150, 243, 0.1);
    border-right: 4px solid #2196F3;
}

.security-note {
    background: rgba(76, 175, 80, 0.1);
    border-right: 4px solid #4CAF50;
}

.important-note i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.warning-note i {
    color: #f44336;
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.note i {
    color: #2196F3;
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.security-note i {
    color: #4CAF50;
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.important-note p,
.warning-note p,
.note p {
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
    flex: 1;
}

.security-note div {
    flex: 1;
}

.security-note h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.security-note p {
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
}

/* مراحل فرآیند */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.process-step {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.process-step p {
    margin: 0;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* روش‌های پرداخت */
.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.method-tag {
    background: rgba(255, 152, 0, 0.1);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 152, 0, 0.3);
    transition: var(--transition);
}

.method-tag:hover {
    background: rgba(255, 152, 0, 0.2);
    transform: translateY(-2px);
}

/* جدول ارسال */
.shipping-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 25px 0;
    border: 1px solid var(--border-color);
}

.table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.header {
    background: var(--primary-light);
    font-weight: 600;
}

.table-row.header .cell {
    color: var(--dark);
}

.cell {
    padding: 15px 20px;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.cell:not(:last-child) {
    border-left: 1px solid var(--border-color);
}

/* مراحل بازگشت */
.return-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.return-step {
    text-align: center;
    padding: 25px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.return-step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.return-step i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    background: rgba(255, 152, 0, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.return-step h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.return-step p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* انواع اطلاعات */
.info-types {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.info-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.info-type i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(255, 152, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-type span {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
}

/* مالکیت معنوی */
.intellectual-property {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.ip-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.ip-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.ip-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    background: rgba(255, 152, 0, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ip-item h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.ip-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* مسئولیت‌ها */
.responsibility-list {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
    border: 2px solid var(--border-color);
}

.resp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.resp-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resp-item i {
    color: #4CAF50;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resp-item span {
    color: var(--gray);
    line-height: 1.5;
    flex: 1;
}

/* اطلاع تغییرات */
.change-notice {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border-radius: var(--radius);
    padding: 25px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.change-notice i {
    color: #2196F3;
    font-size: 2rem;
    flex-shrink: 0;
}

.change-notice div {
    flex: 1;
}

.change-notice h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.change-notice p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}

/* تأیید آگاهی */
.acceptance-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.acceptance-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.acceptance-header i {
    color: #4CAF50;
    font-size: 1.8rem;
}

.acceptance-header h4 {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    margin: 0;
}

.acceptance-box p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* قوانین حاکم */
.governing-law {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.law-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.law-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.law-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.law-item span {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
}

/* مراحل حل اختلاف */
.dispute-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.dispute-step {
    text-align: center;
    padding: 25px 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.dispute-step p {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* اطلاعات تماس */
.contact-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
    border: 2px solid var(--border-color);
}

.contact-info h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray);
    line-height: 1.6;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* دکمه‌های پایانی */
.terms-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 50px 0;
    flex-wrap: wrap;
}

.terms-actions .btn {
    width: auto;
    min-width: 200px;
}

/* تاریخ بروزرسانی */
.update-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.update-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.update-header i {
    color: var(--primary);
    font-size: 1.5rem;
}

.update-header h4 {
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 600;
    margin: 0;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    display: grid;
    grid-template-columns: 100px 120px 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.update-item:hover {
    background: rgba(255, 152, 0, 0.1);
    transform: translateX(-5px);
}

.version {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.date {
    color: var(--dark);
    font-weight: 500;
}

.changes {
    color: var(--gray);
    font-size: 0.95rem;
}

/* مدال نکات کلیدی */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--white) 0%, #fefefe 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.4s ease;
    position: relative;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.close-modal:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.modal-content h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.highlights-list {
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.highlight-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 152, 0, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.highlight-content p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.modal-actions {
    margin-top: 30px;
}

.modal-actions .btn {
    width: 100%;
}

/* نوتیفیکیشن */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: notificationSlideIn 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    max-width: 400px;
    border-right: 4px solid var(--primary);
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100px);
        opacity: 0;
    }
}

.notification.success {
    border-right-color: #4CAF50;
}

.notification.error {
    border-right-color: #f44336;
}

.notification.warning {
    border-right-color: #ff9800;
}

.notification.info {
    border-right-color: #2196F3;
}

.notification i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.notification.success i {
    color: #4CAF50;
}

.notification.error i {
    color: #f44336;
}

.notification.warning i {
    color: #ff9800;
}

.notification.info i {
    color: #2196F3;
}

.notification span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
}

.close-notification {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.close-notification:hover {
    background: var(--light-gray);
    color: var(--dark);
}

/* فوتر */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-section p {
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #aaa;
}

.footer-section ul {
    margin-top: 10px;
}

.footer-section li {
    margin-bottom: 15px;
}

.footer-section a {
    color: #aaa;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a:hover {
    color: var(--primary);
    padding-right: 8px;
}

.footer-section i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* واکنش‌گرایی */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .terms-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps,
    .return-steps,
    .dispute-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .intellectual-property {
        grid-template-columns: repeat(2, 1fr);
    }

    .terms-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .terms-hero {
        padding: 50px 0 40px;
    }

    .terms-hero h1 {
        font-size: 1.8rem;
    }

    .terms-hero p {
        font-size: 1.1rem;
    }

    .terms-summary {
        grid-template-columns: 1fr;
    }

    .process-steps,
    .return-steps,
    .dispute-steps,
    .intellectual-property {
        grid-template-columns: 1fr;
    }

    .table-row {
        grid-template-columns: 1fr;
    }

    .cell:not(:last-child) {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .terms-actions {
        flex-direction: column;
        align-items: center;
    }

    .terms-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .update-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .governing-law {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-content {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .terms-hero h1 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }

    .hero-badge {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .section-content {
        padding: 20px;
    }

    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .info-types {
        justify-content: center;
    }

    .method-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .notification {
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 1.4rem;
    }

    .terms-hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .section-content h3 {
        font-size: 1.1rem;
    }

    .summary-card h3 {
        font-size: 1.2rem;
    }

    .toc-header h3 {
        font-size: 1.2rem;
    }

    .update-header h4 {
        font-size: 1.2rem;
    }
}