/* ==========================================================================
   EXILOZ LEGAL & COMPLIANCE SYSTEM STYLESHEET
   Isolated styling for legal pages and lightweight cookie consent banner
   ========================================================================== */

:root {
    --exz-navy: #021a44;
    --exz-navy-2: #06285f;
    --exz-blue: #0059d6;
    --exz-blue-2: #004dc2;
    --exz-blue-light: #edf3fc;
    --exz-text: #475569;
    --exz-muted: #64748b;
    --exz-line: rgba(6, 40, 95, 0.07);
    --exz-shadow: 0 20px 50px rgba(6, 31, 71, 0.05);
}

.ex-legal-section {
    padding: 80px 0 100px;
    background: #fcfdfe;
    font-family: "DM Sans", Arial, sans-serif;
}

.ex-legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 2-Column Responsive Split Layout */
.ex-legal-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Sidebar Navigation */
.ex-legal-sidebar {
    background: #ffffff;
    border: 1px solid var(--exz-line);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(6, 31, 71, 0.02);
    z-index: 10;
}

.ex-legal-sidebar h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--exz-navy);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--exz-line);
}

.ex-legal-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.ex-legal-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--exz-text);
    text-decoration: none;
    transition: all 0.25s ease;
}

.ex-legal-sidebar-menu a:hover {
    background: var(--exz-blue-light);
    color: var(--exz-blue);
}

.ex-legal-sidebar-menu li.is-active a {
    background: var(--exz-blue);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 89, 214, 0.15);
}

/* Right Main Content Card */
.ex-legal-card {
    background: #ffffff;
    border: 1px solid var(--exz-line);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--exz-shadow);
}

.ex-legal-last-updated {
    font-size: 13px;
    color: var(--exz-muted);
    font-weight: 500;
    margin-bottom: 24px;
    display: inline-block;
    background: var(--exz-blue-light);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--exz-blue);
}

.ex-legal-card h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--exz-navy);
    margin: 0 0 24px;
    line-height: 1.25;
}

.ex-legal-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--exz-text);
    margin-bottom: 20px;
}

.ex-legal-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--exz-navy);
    margin: 36px 0 16px;
    line-height: 1.35;
}

.ex-legal-card p strong {
    color: var(--exz-navy);
}

/* Bullet list styles */
.ex-legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 8px;
    display: grid;
    gap: 12px;
}

.ex-legal-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--exz-text);
}

.ex-legal-list li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--exz-blue);
    font-size: 14px;
}

/* Callout Boxes / Disclaimers */
.ex-legal-alert {
    background: #fff9eb;
    border-left: 4px solid #cf8400;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.ex-legal-alert p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #8c5d00;
    font-weight: 500;
}

.ex-legal-alert strong {
    color: #614000;
    font-weight: 800;
}

.ex-legal-alert.is-danger {
    background: #fff5f5;
    border-left-color: #d12e2e;
    color: #8f1d1d;
}

.ex-legal-alert.is-danger p {
    color: #8f1d1d;
}

.ex-legal-alert.is-danger strong {
    color: #610d0d;
}

/* Bottom Page Consultation CTA */
.ex-legal-cta {
    margin-top: 48px;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05), transparent 30%), linear-gradient(135deg, var(--exz-navy-2) 0%, var(--exz-navy) 100%);
    border-radius: 16px;
    padding: 38px 44px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.ex-legal-cta-info {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.ex-legal-cta-info h4 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
}

.ex-legal-cta-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #dbe8ff;
    margin: 0;
}

.ex-legal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--exz-blue);
    color: #ffffff;
    border-radius: 8px;
    min-height: 48px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 89, 214, 0.25);
}

.ex-legal-cta-btn:hover {
    background: var(--exz-blue-2);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 89, 214, 0.35);
}

/* ==========================================================================
   LIGHTWEIGHT COOKIE CONSENT BANNER
   ========================================================================== */
.ex-cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 24px;
    right: 24px;
    max-width: 500px;
    background: rgba(2, 26, 68, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(2, 26, 68, 0.3);
    z-index: 99999;
    font-family: "DM Sans", Arial, sans-serif;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ex-cookie-banner.is-active {
    bottom: 24px;
}

.ex-cookie-banner h4 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ex-cookie-banner h4 i {
    color: #ffb700;
}

.ex-cookie-banner p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #dbe8ff;
    margin: 0 0 18px;
}

.ex-cookie-banner p a {
    color: #00ffaa;
    text-decoration: underline;
}

.ex-cookie-banner p a:hover {
    color: #00e095;
}

.ex-cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ex-cookie-btn {
    flex: 1;
    min-height: 38px;
    border-radius: 6px;
    border: 0;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ex-cookie-btn.is-accept {
    background: #00ffaa;
    color: var(--exz-navy);
}

.ex-cookie-btn.is-accept:hover {
    background: #00d990;
    transform: translateY(-1px);
}

.ex-cookie-btn.is-reject {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ex-cookie-btn.is-reject:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ex-cookie-btn.is-settings {
    background: transparent;
    color: #dbe8ff;
    font-size: 11.5px;
    text-decoration: underline;
    border: 0;
    flex-grow: 0;
    padding: 0 10px;
}

/* Cookie settings panel (nested) */
.ex-cookie-settings {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.ex-cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 10px;
}

.ex-cookie-option label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ex-cookie-option label span {
    font-size: 10px;
    color: #a4b3cf;
}

.ex-cookie-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.ex-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ex-cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255,255,255,0.15);
    transition: .3s;
    border-radius: 34px;
}

.ex-cookie-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .ex-cookie-slider {
    background-color: #00ffaa;
}

input:checked + .ex-cookie-slider:before {
    transform: translateX(14px);
}

input:disabled + .ex-cookie-slider {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR LEGAL PAGE LAYOUT
   ========================================================================== */
@media (max-width: 1024px) {
    .ex-legal-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ex-legal-sidebar {
        position: static;
    }

    .ex-legal-card {
        padding: 30px;
    }

    .ex-legal-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .ex-legal-section {
        padding: 50px 0 70px;
    }

    .ex-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: -250px;
    }

    .ex-cookie-banner.is-active {
        bottom: 12px;
    }
}
