/* استایل‌های صفحه قوانین و مقررات */
/* Terms and conditions page styles */

/* انیمیشن fade-in-up */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s cubic-bezier(.4, 0, .2, 1) both;
}

/* انیمیشن fade-in */
@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 1.2s cubic-bezier(.4, 0, .2, 1) both;
}

/* تاخیرهای انیمیشن */
.animate-fade-in.delay-100 {
    animation-delay: .1s;
}

.animate-fade-in.delay-200 {
    animation-delay: .2s;
}

.animate-fade-in.delay-300 {
    animation-delay: .3s;
}

.animate-fade-in.delay-400 {
    animation-delay: .4s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

/* استایل عناوین مواد */
.material-title {
    color: #5C51E8;
}

/* استایل متن‌های مهم */
.important-text {
    color: #5C51E8;
}

/* استایل‌های محتوای TinyMCE */
.terms-content {
    line-height: 1.8;
    color: #374151;
}

/* اطمینان از اعمال استایل‌ها */
.terms-content * {
    box-sizing: border-box;
}

.terms-content h1,
.terms-content h2,
.terms-content h3,
.terms-content h4,
.terms-content h5,
.terms-content h6 {
    color: #5C51E8;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.terms-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #5C51E8;
    padding-bottom: 0.5rem;
}

.terms-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.25rem;
}

.terms-content h3 {
    font-size: 1.5rem;
}

.terms-content h4 {
    font-size: 1.25rem;
}

.terms-content p {
    margin: 1rem 0;
    text-align: justify;
}

.terms-content ul,
.terms-content ol {
    margin: 1rem 0;
    padding-right: 2rem;
}

.terms-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.terms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.terms-content th,
.terms-content td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.terms-content th {
    background: #5C51E8;
    color: white;
    font-weight: bold;
}

.terms-content tr:hover {
    background: #f9fafb;
}

.terms-content blockquote {
    border-right: 4px solid #5C51E8;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    font-style: italic;
}

.terms-content a {
    color: #5C51E8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.terms-content a:hover {
    border-bottom-color: #5C51E8;
}

.terms-content strong,
.terms-content b {
    color: #5C51E8;
    font-weight: bold;
}

/* استایل‌های اضافی برای TinyMCE */
.terms-content p {
    margin: 1rem 0;
    text-align: justify;
}

.terms-content br {
    line-height: 1.8;
}

.terms-content span {
    display: inline;
}

.terms-content div {
    margin: 0.5rem 0;
}

/* استایل‌های فونت */
.terms-content [style*="font-size"] {
    font-size: inherit !important;
}

.terms-content [style*="color"] {
    color: inherit !important;
}

/* استایل‌های جدول پیشرفته */
.terms-content table td[style*="background-color"],
.terms-content table th[style*="background-color"] {
    background-color: #5C51E8 !important;
    color: white !important;
}

.terms-content table td[style*="text-align"] {
    text-align: right !important;
}

.terms-content em,
.terms-content i {
    font-style: italic;
    color: #6b7280;
}

.terms-content code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #5C51E8;
}

.terms-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.terms-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .terms-content h1 {
        font-size: 1.75rem;
    }
    
    .terms-content h2 {
        font-size: 1.5rem;
    }
    
    .terms-content h3 {
        font-size: 1.25rem;
    }
    
    .terms-content table {
        font-size: 0.875rem;
    }
    
    .terms-content th,
    .terms-content td {
        padding: 0.5rem 0.75rem;
    }
}