/**
 * EgyZone - Legal Documents Luxury Styling
 * Executive Modern Slate | Bi-Directional (RTL/LTR) | Responsive & Print-Optimized
 */

.ez-legal-wrapper {
    background-color: #f8fafc;
    padding: 40px 0 80px;
    min-height: 80vh;
}

/* Master Container & Card */
.ez-legal-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

/* Document Top Header Banner */
.ez-legal-header {
    background: linear-gradient(145deg, #090d16 0%, #0f172a 60%, #1e293b 100%);
    color: #ffffff;
    padding: 38px 40px;
    position: relative;
    overflow: hidden;
}

.ez-legal-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ez-legal-compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #f59e0b;
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
}

.ez-legal-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.ez-legal-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.6;
}

.ez-legal-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
}

.ez-legal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

.ez-legal-btn-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 7px 18px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ez-legal-btn-print:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-1px);
}

/* Document Nav Tabs / Quick Switcher */
.ez-legal-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 10px 24px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    white-space: nowrap;
}

.ez-legal-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
}

.ez-legal-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.ez-legal-tab-btn.active {
    background: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Document Content Body */
.ez-legal-body {
    padding: 44px 48px;
}

@media (max-width: 767.98px) {
    .ez-legal-header {
        padding: 28px 20px;
    }
    .ez-legal-title {
        font-size: 22px;
    }
    .ez-legal-body {
        padding: 28px 20px;
    }
}

/* Document Typography Elements */
.legal-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.legal-heading-major {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-heading-section {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-heading-sub {
    font-size: 16px;
    font-weight: 700;
    color: #2563eb;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-lead-text {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 10px;
}

.legal-text {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.legal-list li {
    position: relative;
    padding-inline-start: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #334155;
    line-height: 1.65;
}

.legal-list li::before {
    content: '•';
    position: absolute;
    inset-inline-start: 8px;
    color: #2563eb;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.legal-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-inline-start: 4px solid #2563eb;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 22px 0;
    font-size: 13.5px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.6;
}

.legal-alert-box i {
    color: #2563eb;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Sidebar Navigation Box */
.ez-legal-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.ez-legal-sidebar-card h5 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #f1f5f9;
}

.ez-legal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.ez-legal-nav-link:hover {
    color: #2563eb;
    background: #f8fafc;
}

.ez-legal-nav-link.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.ez-legal-nav-link i {
    font-size: 16px;
}

/* Print Mode */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .breadcrumb-section,
    .ez-legal-tabs-bar,
    .ez-legal-btn-print,
    .ez-legal-sidebar-col,
    .site-footer,
    .ez-subfooter-links,
    .nav-tabs,
    nav {
        display: none !important;
    }
    .ez-legal-card {
        border: none !important;
        box-shadow: none !important;
    }
    .ez-legal-header {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 0 20px 0 !important;
        border-bottom: 2px solid #000000 !important;
    }
    .ez-legal-title {
        color: #000000 !important;
    }
    .ez-legal-body {
        padding: 20px 0 !important;
    }
}
