/* قوانين الشركة - terms.css */

/* متغيرات CSS الأساسية */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --gray-light: #f0f0f0;
    --gray-medium: #666666;
    --gray-dark: #333333;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --red-gradient: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    --blue-gradient: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    --green-gradient: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    --yellow-gradient: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
    --aqua-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --border-radius: 15px;
    --border-radius-sm: 10px;
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(102, 126, 234, 0.15);
    --transition: all 0.3s ease;
}

/* تحسينات للوصول (Accessibility) */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* إيقاف الأنيميشن لمستخدمي prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* خلفية الصفحة */
.terms-page {
    background: var(--bg-color);
    min-height: 100vh;
}

/* الهيدر الداخلي */
.terms-header {
    position: relative;
    padding: 120px 0 80px;
    background: var(--primary-gradient);
    overflow: hidden;
    min-height: 400px;
}

.terms-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.terms-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.term-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.term-shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: floatShape 30s ease-in-out infinite;
}

.term-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: 15%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.term-shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 25%;
    animation: floatShape 35s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

.legal-animation {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    display: flex;
    gap: 40px;
    pointer-events: none;
}

.legal-animation .scale,
.legal-animation .gavel,
.legal-animation .book {
    font-size: 52px;
    color: rgba(255, 255, 255, 0.85);
    animation: floatLegal 8s ease-in-out infinite;
}

.legal-animation .gavel {
    animation-delay: 1.5s;
}

.legal-animation .book {
    animation-delay: 3s;
}

/* جدول المحتويات */
.terms-toc {
    padding: 60px 0;
    background: var(--bg-color);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.toc-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.toc-card:hover {
    box-shadow: var(--shadow-md);
}

.toc-title {
    color: var(--text-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.toc-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.toc-link:hover,
.toc-link:focus {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.toc-link i {
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.toc-link span {
    font-weight: 500;
}

/* محتوى القوانين */
.terms-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-section {
    margin-bottom: 70px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.terms-section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--bg-color);
}

.section-number {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
    transition: var(--transition);
}

.terms-section:hover .section-number {
    transform: scale(1.1) rotate(10deg);
}

.section-title {
    color: var(--text-color);
    font-size: 36px;
    margin: 0;
    font-weight: 700;
}

.section-content {
    color: var(--gray-medium);
    line-height: 1.8;
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* البطاقات */
.terms-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.terms-card:hover,
.terms-card:focus-within {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.terms-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.terms-card:hover .terms-icon {
    transform: rotate(15deg);
}

.terms-text h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

.terms-text p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* الملاحظات المهمة */
.important-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    margin-top: 40px;
    background: var(--yellow-gradient);
    border-radius: 12px;
    border: 2px solid #ffb300;
    transition: var(--transition);
}

.important-note:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.important-note i {
    color: #ff9800;
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 5px;
}

.important-note h4 {
    margin: 0 0 10px 0;
    color: #ff6f00;
    font-size: 1.2rem;
    font-weight: 600;
}

.important-note p {
    margin: 0;
    color: #5d4037;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* خدمات النطاقات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-term {
    padding: 25px;
    background: var(--bg-color);
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.service-term:hover,
.service-term:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.service-term h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.service-term h4 i {
    color: var(--primary-color);
    font-size: 20px;
}

.service-term ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-term li {
    padding: 8px 0;
    color: var(--gray-medium);
    border-bottom: 1px dashed #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-term li:last-child {
    border-bottom: none;
}

/* حدود الاستخدام */
.service-limitations {
    margin: 40px 0;
    padding: 30px;
    background: var(--primary-gradient);
    border-radius: 12px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.service-limitations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
}

.service-limitations h4 {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.limitation {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.limitation:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.limit-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1;
}

.limit-label {
    font-size: 14px;
    opacity: 0.9;
}

/* طرق الدفع */
.payment-methods {
    margin: 30px 0;
}

.payment-methods h4 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--bg-color);
    border-radius: 25px;
    font-weight: 500;
    color: var(--gray-medium);
    transition: var(--transition);
    border: 2px solid transparent;
}

.method:hover,
.method:focus {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.method i {
    font-size: 20px;
}

/* شروط الدفع */
.payment-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.payment-term {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.payment-term:hover,
.payment-term:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.term-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.payment-term:hover .term-icon {
    transform: rotate(15deg);
}

.term-content h5 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.term-content p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.6;
}

/* سياسة الاسترداد */
.refund-policy {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.refund-policy:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.refund-policy h4 {
    margin: 0 0 25px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.refund-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timeline-item {
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.timeline-item:hover,
.timeline-item:focus-within {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.timeline-period {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.timeline-details h5 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.timeline-details p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.5;
}

/* مستويات الضمان */
.warranty-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.warranty-level {
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.warranty-level:hover,
.warranty-level:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.warranty-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.warranty-header i {
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.warranty-level:hover .warranty-header i {
    transform: scale(1.1);
}

.warranty-header h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.warranty-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.warranty-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-medium);
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
}

.warranty-features li:last-child {
    border-bottom: none;
}

.warranty-features .fa-check {
    color: var(--success-color);
}

.warranty-features .fa-times {
    color: var(--danger-color);
}

/* حدود المسؤولية */
.liability-limits {
    margin: 40px 0;
    padding: 30px;
    background: var(--red-gradient);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.liability-limits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
}

.liability-limits h4 {
    margin: 0 0 25px 0;
    color: #d32f2f;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.limits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.limit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: var(--transition);
}

.limit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.limit-item i {
    color: #d32f2f;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.limit-item h5 {
    margin: 0 0 5px 0;
    color: #d32f2f;
    font-size: 1.1rem;
    font-weight: 600;
}

.limit-item p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.6;
}

/* التعويضات */
.compensation-info {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--aqua-gradient);
    border-radius: 12px;
    margin-top: 40px;
    transition: var(--transition);
}

.compensation-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.compensation-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    transition: var(--transition);
}

.compensation-info:hover .compensation-icon {
    transform: rotate(15deg);
}

.compensation-content h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.compensation-content p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* حقوق الملكية الفكرية */
.ip-rights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.ip-right {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.ip-right:hover,
.ip-right:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.ip-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.ip-right:hover .ip-icon {
    transform: rotate(15deg);
}

.ip-content h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.ip-content p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* الترخيص */
.licensing-terms {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.licensing-terms:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.licensing-terms h4 {
    margin: 0 0 25px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.license-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.license-type {
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.license-type:hover,
.license-type:focus-within {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.license-type h5 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.license-type ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.license-type li {
    padding: 8px 0;
    color: var(--gray-medium);
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
}

.license-type li:last-child {
    border-bottom: none;
}

/* سياسة محتوى المستخدم */
.user-content-policy {
    margin: 40px 0 0;
    padding: 30px;
    background: var(--blue-gradient);
    border-radius: 12px;
    transition: var(--transition);
}

.user-content-policy:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.user-content-policy h4 {
    margin: 0 0 20px 0;
    color: #1976d2;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-policy p {
    margin: 0 0 20px 0;
    color: #1565c0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.policy-points {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.policy-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--white);
    border-radius: 20px;
    color: #1976d2;
    font-weight: 500;
    transition: var(--transition);
}

.policy-point:hover {
    background: rgba(25, 118, 210, 0.1);
    transform: translateY(-2px);
}

.policy-point i {
    color: var(--success-color);
}

/* أسباب الإنهاء */
.termination-reasons {
    margin: 30px 0;
}

.termination-reasons h4 {
    margin: 0 0 25px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.reason {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.reason:hover,
.reason:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.reason-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.reason:hover .reason-icon {
    transform: rotate(15deg);
}

.reason-content h5 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.reason-content p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.6;
}

/* عملية الإنهاء */
.termination-process {
    margin: 40px 0;
}

.termination-process h4 {
    margin: 0 0 25px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.process-step:hover,
.process-step:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.step-content h5 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.6;
}

/* بعد الإنهاء */
.post-termination {
    margin-top: 40px;
}

.post-term-notice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--yellow-gradient);
    border-radius: 12px;
    border: 2px solid #ffb300;
    transition: var(--transition);
}

.post-term-notice:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-term-notice i {
    color: #ff9800;
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 5px;
}

.post-term-notice h4 {
    margin: 0 0 10px 0;
    color: #ff6f00;
    font-size: 1.2rem;
    font-weight: 600;
}

.post-term-notice p {
    margin: 0;
    color: #5d4037;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* القانون الحاكم */
.jurisdiction-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.jurisdiction-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.jurisdiction-card:hover,
.jurisdiction-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.jurisdiction-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    transition: var(--transition);
}

.jurisdiction-card:hover .jurisdiction-icon {
    transform: rotate(15deg);
}

.jurisdiction-content h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

.jurisdiction-content p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* الامتثال القانوني */
.compliance-notice {
    margin: 40px 0;
    padding: 30px;
    background: var(--green-gradient);
    border-radius: 12px;
    transition: var(--transition);
}

.compliance-notice:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.compliance-notice h4 {
    margin: 0 0 25px 0;
    color: #2e7d32;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.compliance-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    color: #2e7d32;
    font-weight: 500;
    transition: var(--transition);
}

.compliance-item:hover {
    background: rgba(46, 125, 50, 0.1);
    transform: translateX(5px);
}

.compliance-item i {
    color: var(--success-color);
}

/* التحديثات القانونية */
.legal-updates {
    margin: 40px 0 0;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.legal-updates:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.legal-updates h4 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-updates p {
    margin: 0 0 20px 0;
    color: var(--gray-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

.update-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--yellow-gradient);
    border-radius: 10px;
    color: #ff6f00;
    transition: var(--transition);
}

.update-notice:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.update-notice i {
    font-size: 24px;
    flex-shrink: 0;
}

.update-notice span {
    font-weight: 500;
}

/* تسوية المنازعات */
.dispute-resolution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.resolution-method {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.resolution-method:hover,
.resolution-method:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    transition: var(--transition);
}

.resolution-method:hover .method-icon {
    transform: rotate(15deg);
}

.method-content h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

.method-content p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* الجدول الزمني */
.dispute-timeline {
    margin: 40px 0;
    padding: 30px;
    background: var(--blue-gradient);
    border-radius: 12px;
    transition: var(--transition);
}

.dispute-timeline:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dispute-timeline h4 {
    margin: 0 0 30px 0;
    color: #1976d2;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: #1976d2;
    z-index: 1;
}

.timeline-phase {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 150px;
}

.timeline-phase::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #1976d2;
    border-radius: 50%;
    border: 5px solid white;
}

.phase-duration {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 18px;
}

.phase-name {
    color: var(--gray-medium);
    font-size: 14px;
}

/* جهة الاتصال */
.contact-resolution {
    margin: 40px 0 0;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.contact-resolution:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.contact-resolution h4 {
    margin: 0 0 25px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.contact-item:hover,
.contact-item:focus-within {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-item h5 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 16px;
}

/* قسم الالتزام */
.terms-compliance {
    padding: 80px 0;
    background: var(--primary-gradient);
}

.compliance-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--white);
    transition: var(--transition);
}

.compliance-banner:hover {
    background: rgba(255, 255, 255, 0.15);
}

.compliance-content h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
}

.compliance-content p {
    margin: 0;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: inherit;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* قسم الموافقة */
.terms-agreement {
    padding: 80px 0;
    background: var(--bg-color);
}

.agreement-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.agreement-card:hover {
    box-shadow: var(--shadow-lg);
}

.agreement-header {
    padding: 30px;
    background: var(--primary-gradient);
    color: var(--white);
    text-align: center;
}

.agreement-header i {
    font-size: 48px;
    margin-bottom: 20px;
}

.agreement-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.agreement-body {
    padding: 40px;
}

.agreement-body p {
    margin: 0 0 30px 0;
    color: var(--gray-medium);
    text-align: center;
    line-height: 1.7;
    font-size: 1rem;
}

.agreement-check {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    transition: var(--transition);
}

.agreement-check:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.agreement-check label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: var(--gray-medium);
    font-weight: 500;
    font-size: 1rem;
}

.agreement-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.agreement-check i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.agreement-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: inherit;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* الأنيميشن */
@keyframes floatLegal {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* الأسئلة الشائعة */
.terms-faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--bg-color);
    border: none;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    gap: 15px;
}

.faq-question:hover,
.faq-question:focus {
    background: #e9ecef;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.faq-answer.active {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* تحسينات الطباعة */
@media print {
    .terms-header,
    .terms-compliance,
    .terms-agreement,
    .btn-primary,
    .btn-outline,
    .agreement-check,
    .agreement-actions,
    .legal-animation,
    .toc-card,
    .method,
    .policy-point,
    .compliance-item,
    .update-notice,
    .faq-question i {
        display: none !important;
    }
    
    .terms-section,
    .terms-card,
    .service-term,
    .payment-term,
    .timeline-item,
    .warranty-level,
    .limit-item,
    .ip-right,
    .license-type,
    .reason,
    .process-step,
    .jurisdiction-card,
    .resolution-method,
    .contact-item,
    .faq-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 20px !important;
    }
    
    .terms-page {
        background: white !important;
    }
    
    .terms-toc,
    .terms-content,
    .terms-faq {
        padding: 20px 0 !important;
    }
    
    .toc-title,
    .section-title,
    .terms-text h3,
    .service-term h4,
    .payment-term h5,
    .timeline-details h5,
    .warranty-header h4,
    .limit-item h5,
    .ip-content h4,
    .license-type h5,
    .reason-content h5,
    .step-content h5,
    .jurisdiction-content h4,
    .method-content h4,
    .contact-item h5,
    .faq-question {
        color: black !important;
    }
    
    .section-content p,
    .terms-text p,
    .service-term li,
    .payment-term p,
    .timeline-details p,
    .warranty-features li,
    .limit-item p,
    .ip-content p,
    .license-type li,
    .reason-content p,
    .step-content p,
    .jurisdiction-content p,
    .method-content p,
    .contact-item p,
    .faq-answer p {
        color: #666 !important;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 15px !important;
        display: block !important;
    }
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .terms-header {
        padding: 100px 0 60px;
        min-height: 350px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .terms-section {
        padding: 25px;
    }
    
    .legal-animation {
        display: none;
    }
    
    .compliance-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .toc-nav,
    .services-grid,
    .limitations-grid,
    .payment-terms-grid,
    .refund-timeline,
    .warranty-levels,
    .limits-list,
    .ip-rights,
    .license-types,
    .reasons-grid,
    .process-steps,
    .jurisdiction-info,
    .compliance-list,
    .dispute-resolution,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        flex-direction: column;
        gap: 40px;
    }
    
    .timeline::before {
        left: 25px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
    }
    
    .timeline-phase {
        text-align: right;
        padding-right: 60px;
    }
    
    .timeline-phase::before {
        top: 0;
        left: 15px;
        transform: translateY(0);
    }
    
    .agreement-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .terms-header,
    .terms-toc,
    .terms-content,
    .terms-compliance,
    .terms-agreement,
    .terms-faq {
        padding: 40px 0;
    }
    
    .methods-list {
        justify-content: center;
    }
    
    .policy-points {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .methods-list {
        flex-direction: column;
        align-items: center;
    }
    
    .method {
        width: 100%;
        justify-content: center;
    }
    
    .policy-points {
        flex-direction: column;
        align-items: center;
    }
    
    .policy-point {
        width: 100%;
        justify-content: center;
    }
    
    .agreement-check label {
        font-size: 14px;
    }
    
    .agreement-body {
        padding: 20px;
    }
    
    .compensation-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .toc-card,
    .terms-section {
        padding: 20px;
    }
}

/* تحسينات للأجهزة التي تدعم اللمس */
@media (hover: none) and (pointer: coarse) {
    .toc-link:hover,
    .terms-card:hover,
    .service-term:hover,
    .payment-term:hover,
    .timeline-item:hover,
    .warranty-level:hover,
    .limit-item:hover,
    .ip-right:hover,
    .license-type:hover,
    .reason:hover,
    .process-step:hover,
    .jurisdiction-card:hover,
    .resolution-method:hover,
    .contact-item:hover,
    .method:hover,
    .policy-point:hover,
    .compliance-item:hover,
    .update-notice:hover,
    .important-note:hover,
    .post-term-notice:hover,
    .user-content-policy:hover,
    .dispute-timeline:hover,
    .compensation-info:hover,
    .liability-limits:hover,
    .service-limitations:hover,
    .licensing-terms:hover,
    .refund-policy:hover,
    .contact-resolution:hover,
    .legal-updates:hover,
    .compliance-notice:hover {
        transform: none;
    }
    
    .btn-primary,
    .btn-outline,
    .method,
    .policy-point,
    .toc-link,
    .agreement-check label {
        min-height: 44px;
        min-width: 44px;
    }
    
    .faq-question {
        min-height: 60px;
    }
}

/* تحسينات للوضع الداكن */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --bg-color: #1a1a1a;
        --white: #2d2d2d;
        --gray-light: #333333;
        --gray-medium: #b0b0b0;
        --gray-dark: #ffffff;
    }
    
    .terms-page {
        background: var(--bg-color);
    }
    
    .toc-card,
    .terms-section,
    .terms-card,
    .service-term,
    .payment-term,
    .timeline-item,
    .warranty-level,
    .limit-item,
    .ip-right,
    .license-type,
    .reason,
    .process-step,
    .jurisdiction-card,
    .resolution-method,
    .contact-item,
    .faq-item,
    .agreement-card,
    .agreement-check,
    .refund-policy,
    .licensing-terms,
    .contact-resolution,
    .legal-updates {
        background: var(--white);
    }
    
    .toc-link,
    .method {
        background: #333333;
    }
    
    .important-note,
    .post-term-notice {
        background: #422006;
        border-color: #ff9800;
    }
    
    .user-content-policy {
        background: #1e3a5f;
    }
    
    .compliance-notice {
        background: #1b5e20;
    }
    
    .dispute-timeline {
        background: #1e3a5f;
    }
    
    .compensation-info {
        background: #4a148c;
    }
    
    .toc-title,
    .section-title,
    .terms-text h3,
    .service-term h4,
    .payment-term h5,
    .timeline-details h5,
    .warranty-header h4,
    .limit-item h5,
    .ip-content h4,
    .license-type h5,
    .reason-content h5,
    .step-content h5,
    .jurisdiction-content h4,
    .method-content h4,
    .contact-item h5,
    .faq-question,
    .agreement-header h3,
    .important-note h4,
    .post-term-notice h4,
    .user-content-policy h4,
    .compliance-notice h4,
    .dispute-timeline h4,
    .compensation-content h4,
    .liability-limits h4,
    .service-limitations h4,
    .refund-policy h4,
    .termination-process h4,
    .termination-reasons h4,
    .licensing-terms h4,
    .contact-resolution h4,
    .legal-updates h4 {
        color: var(--text-color);
    }
    
    .section-content p,
    .terms-text p,
    .service-term li,
    .payment-term p,
    .timeline-details p,
    .warranty-features li,
    .limit-item p,
    .ip-content p,
    .license-type li,
    .reason-content p,
    .step-content p,
    .jurisdiction-content p,
    .method-content p,
    .contact-item p,
    .faq-answer p,
    .agreement-body p,
    .important-note p,
    .post-term-notice p,
    .user-content-policy p,
    .compliance-notice p,
    .dispute-timeline p,
    .compensation-content p,
    .liability-limits p,
    .legal-updates p {
        color: var(--gray-medium);
    }
    
    .limitation,
    .source-item,
    .badge,
    .compliance-banner {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .method:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .policy-point {
        background: #333333;
    }
}