/* Legal Pages Specific Styles - Premium Redesign */

/* Page Background */
body {
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    min-height: 100vh;
}

/* Header Styling */
.header.legal-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.legal-header .logo {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Back Button Styling - Premium */
.header.legal-header .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hero-cyan) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.header.legal-header .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.header.legal-header .btn-back i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.header.legal-header .btn-back:hover i {
    transform: translateX(4px);
    /* RTL: Move right */
}

/* Container Enhancements */
.legal-content-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    padding: 80px 60px;
    margin-top: 50px;
    margin-bottom: 80px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Decorative Top Bar */
.legal-content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--hero-cyan));
}

@media (max-width: 768px) {
    .legal-content-container {
        padding: 40px 25px;
        margin-top: 30px;
        margin-bottom: 40px;
    }
}

/* Typography Enhancements */
.legal-content-container h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.legal-content-container h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 6px;
    background: rgba(33, 150, 243, 0.2);
    margin-top: 10px;
    border-radius: 3px;
}

.legal-content-container p.last-updated {
    color: #8898aa;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-content-container p.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 40px;
    border-right: 4px solid var(--primary-color);
    padding-right: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px 0 0 8px;
}

.legal-content-container h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-content-container h2 i {
    color: var(--primary-color);
    font-size: 1.4rem;
    background: rgba(33, 150, 243, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.legal-content-container p {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.legal-content-container ul,
.legal-content-container ol {
    margin-bottom: 2rem;
    padding-right: 20px;
    /* RTL */
}

.legal-content-container li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4a5568;
    position: relative;
}

/* Custom List Bullets */
.legal-content-container ul {
    list-style: none;
    padding-right: 10px;
}

.legal-content-container ul li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--hero-cyan);
    margin-left: 10px;
    font-size: 0.9em;
}

/* English Section Styling */
.legal-en-section {
    direction: ltr;
    text-align: left;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px dashed #e2e8f0;
    position: relative;
}

.legal-en-section::before {
    content: 'English Version';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 20px;
    color: #8898aa;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.legal-en-section h1::after {
    margin-right: auto;
    /* LTR alignment fix if needed, but block element handles it */
}

.legal-en-section p.intro-text {
    border-right: none;
    border-left: 4px solid var(--primary-color);
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 0 8px 8px 0;
}

.legal-en-section ul {
    padding-right: 0;
    padding-left: 10px;
}

.legal-en-section ul li::before {
    margin-left: 0;
    margin-right: 10px;
}

.legal-en-section .btn-back:hover i {
    transform: translateX(-4px);
    /* LTR: Move left */
}