﻿/* استایل اصلی صفحه قوانین */
body {
    background: white !important; /* زمینه خارج از کانتینر سفید */
    margin: 0;
    padding: 0;
}

.legal-page {
    background: white; /* سفید کردن پس‌زمینه */
    min-height: 100vh;
    padding: 60px 0;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

.legal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .legal-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.legal-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.legal-header p {
    font-size: 1.1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.legal-content {
    padding: 40px;
    background: white;
}

.section-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-right: 4px solid #667eea;
    transition: transform 0.3s ease;
}

    .section-card:hover {
        transform: translateX(-5px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    }

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: white;
    font-size: 1.2em;
}

.section-title h2 {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

.section-content {
    color: #666;
    line-height: 1.8;
}

    .section-content p {
        margin-bottom: 15px;
    }

    /* حذف bullet از لیست‌ها */
    .section-content ul,
    .section-content ol {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .section-content li {
        margin-bottom: 12px;
        padding-right: 25px;
        position: relative;
        list-style-type: none; /* حذف bullet */
    }

        /* اضافه کردن علامت دلخواه به جای bullet */
        .section-content li::before {
            content: '•';
            color: #667eea;
            font-weight: bold;
            position: absolute;
            right: 0;
            font-size: 1.2em;
        }

    /* برای لیست‌های تو در تو */
    .section-content ul ul,
    .section-content ol ol {
        padding-right: 20px;
        margin-top: 10px;
    }

        .section-content ul ul li::before,
        .section-content ol ol li::before {
            content: '◦';
            color: #999;
        }

.badge {
    display: inline-block;
    background: #e8f0fe;
    color: #667eea;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-right: 10px;
}

.important-note {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

    .important-note i {
        color: #ffc107;
        margin-left: 10px;
    }

    .important-note ul {
        margin-top: 10px;
    }

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    background: white;
}

.btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-accept:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    }

.btn-print {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-print:hover {
        background: #667eea;
        color: white;
    }

.last-updated {
    color: #999;
    font-size: 0.9em;
    margin-top: 20px;
    text-align: left;
}

/* استایل برای شماره‌های ردیف */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

    .numbered-list li {
        counter-increment: item;
        margin-bottom: 10px;
        padding-right: 35px;
        position: relative;
    }

        .numbered-list li::before {
            content: counter(item) ".";
            position: absolute;
            right: 0;
            color: #667eea;
            font-weight: bold;
        }

@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 1.8em;
    }

    .legal-content {
        padding: 20px;
    }

    .section-card {
        padding: 15px;
    }

    .footer-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-accept, .btn-print {
        width: 100%;
    }
}
