/* ==========================================================================
   Custom Legal & Policy Pages Styling - Syncoders AI Sdn Bhd
   ========================================================================== */

.legal-breadcrumb-section {
    position: relative;
    padding: 160px 0 90px;
    background: linear-gradient(135deg, #18093d 0%, #301b6b 50%, #4a2185 100%);
    overflow: hidden;
    color: #ffffff;
}

.legal-breadcrumb-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 78, 120, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(88, 56, 236, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.legal-breadcrumb-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.legal-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffb8d0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.legal-breadcrumb-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.25;
}

.legal-breadcrumb-subtitle {
    font-size: 16px;
    color: #d1c8ea;
    max-width: 680px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.legal-breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #b7aacf;
}

.legal-breadcrumb-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-breadcrumb-nav a:hover {
    color: #ff6897;
}

.legal-breadcrumb-nav span {
    color: #8c7ea8;
}

/* Main Content Area */
.legal-main-section {
    padding: 80px 0 100px;
    background-color: #f7f9fc;
}

.legal-container-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(22, 28, 45, 0.06);
    padding: 50px 60px;
    border: 1px solid #edf2f7;
}

@media (max-width: 767px) {
    .legal-container-card {
        padding: 30px 20px;
    }
    .legal-breadcrumb-title {
        font-size: 28px;
    }
}

.legal-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 24px;
    margin-bottom: 40px;
    gap: 12px;
}

.legal-meta-item {
    font-size: 13.5px;
    color: #4a5568;
}

.legal-meta-item strong {
    color: #1a202c;
}

.legal-section-block {
    margin-bottom: 42px;
}

.legal-section-block:last-child {
    margin-bottom: 0;
}

.legal-section-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    position: relative;
}

.legal-section-block h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: #5838ec;
}

.legal-section-block h4 {
    font-size: 17px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section-block p, 
.legal-section-block li {
    font-size: 15px;
    line-height: 1.75;
    color: #4a5568;
    margin-bottom: 12px;
}

.legal-section-block ul,
.legal-section-block ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-section-block li {
    margin-bottom: 8px;
}

/* Callout Highlights */
.legal-highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.legal-highlight-box.highlight-success {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.legal-highlight-box.highlight-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.legal-highlight-box h4 {
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.legal-highlight-box.highlight-success h4 {
    color: #065f46;
}

.legal-highlight-box.highlight-warning h4 {
    color: #92400e;
}

.legal-highlight-box p {
    margin-bottom: 0;
    font-size: 14.5px;
    color: #334155;
}

/* Info Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14.5px;
}

.legal-table th,
.legal-table td {
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.legal-table th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 600;
}

.legal-table td {
    color: #475569;
}

.legal-table tr:nth-child(even) {
    background-color: #fcfdfe;
}

/* Company Contact Card in Legal / Contact */
.legal-company-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 25px;
}

.legal-company-card .company-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 6px;
}

.legal-company-card .reg-number {
    display: inline-block;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.legal-company-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.legal-company-card ul li {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legal-company-card ul li i {
    color: #5838ec;
    font-size: 16px;
    margin-top: 3px;
    width: 18px;
    text-align: center;
}

/* Quick Legal Switcher Tabs/Nav */
.legal-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-nav-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.legal-nav-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.legal-nav-btn.active {
    background: #5838ec;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(88, 56, 236, 0.25);
}

/* Contact Us Section Enrichment */
.contact-official-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.contact-official-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 6px;
}

.contact-official-card .reg-badge {
    display: inline-block;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.contact-info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.contact-info-list li {
    font-size: 14.5px;
    color: #4b5563;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.contact-info-list li i {
    color: #5838ec;
    font-size: 16px;
    margin-top: 2px;
    width: 20px;
}

/* Footer bottom menu responsive polish */
.ei-footer-copyright-content .ei-copyright-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.ei-footer-copyright-content .ei-copyright-menu a {
    margin-left: 0 !important;
    font-size: 13px;
    color: #7b88a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ei-footer-copyright-content .ei-copyright-menu a:hover {
    color: #5838ec;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .ei-footer-copyright-content .ei-copyright-menu {
        justify-content: flex-start;
        margin-top: 15px;
        gap: 12px;
    }
}
