/* ========================================================
   MotoFocuz - Legal & Contact Modal Stylesheet
   Theme: Luxury Dark (#0e0e10) with MotoFocuz Yellow (#fee900)
   Typography: Poppins, sans-serif
   ======================================================== */

/* Ensure footer links always stay on a single line */
.footer-links a,
.footer-section .footer-links a,
.footer-links-privacy-terms {
    white-space: nowrap !important;
}

.footer-section {
    min-width: 165px;
}

/* Footer Webberg Link */
.footer-webberg {
    display: inline-block;
    text-decoration: none;
    color: #0A6DFF;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-webberg:hover {
    transform: scale(1.05);
    margin-left: 5px;
}

/* ─── Modal Overlay ─── */
.mfz-legal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mfz-legal-overlay.mfz-legal-open {
    opacity: 1;
    visibility: visible;
}

/* ─── Modal Window ─── */
.mfz-legal-dialog {
    position: relative;
    background: linear-gradient(165deg, #18181c 0%, #0d0d0f 100%);
    border: 1px solid rgba(254, 233, 0, 0.25);
    border-radius: 18px;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(254, 233, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: 'Poppins', sans-serif;
    color: #e5e5e7;
    overflow: hidden;
    transform: scale(0.95) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mfz-legal-overlay.mfz-legal-open .mfz-legal-dialog {
    transform: scale(1) translateY(0);
}

/* Top Accent Glow Line */
.mfz-legal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fee900 30%, #fee900 70%, transparent);
    z-index: 10;
}

/* ─── Modal Header ─── */
.mfz-legal-header {
    padding: 22px 28px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    background: rgba(20, 20, 24, 0.7);
    flex-shrink: 0;
}

.mfz-legal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mfz-legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fee900;
    background: rgba(254, 233, 0, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(254, 233, 0, 0.2);
}

.mfz-legal-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fee900;
    box-shadow: 0 0 8px #fee900;
}

.mfz-legal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e5e7;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    line-height: 1;
}

.mfz-legal-close-btn:hover {
    background: #fee900;
    color: #000;
    border-color: #fee900;
    transform: rotate(90deg);
    box-shadow: 0 0 12px rgba(254, 233, 0, 0.4);
}

/* ─── Navigation Tabs ─── */
.mfz-legal-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mfz-legal-tabs::-webkit-scrollbar {
    display: none;
}

.mfz-legal-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a8a8b2;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mfz-legal-tab-btn:hover {
    color: #fff;
    background: rgba(254, 233, 0, 0.08);
    border-color: rgba(254, 233, 0, 0.3);
}

.mfz-legal-tab-btn.active {
    background: #fee900;
    color: #000000;
    border-color: #fee900;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(254, 233, 0, 0.3);
}

/* ─── Modal Scrollable Body ─── */
.mfz-legal-body {
    padding: 26px 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 233, 0, 0.4) rgba(255, 255, 255, 0.04);
}

.mfz-legal-body::-webkit-scrollbar {
    width: 6px;
}

.mfz-legal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.mfz-legal-body::-webkit-scrollbar-thumb {
    background: rgba(254, 233, 0, 0.35);
    border-radius: 4px;
}

.mfz-legal-body::-webkit-scrollbar-thumb:hover {
    background: #fee900;
}

/* ─── Section Content ─── */
.mfz-legal-pane {
    display: none;
    animation: mfzLegalFade 0.25s ease-out;
}

.mfz-legal-pane.active {
    display: block;
}

@keyframes mfzLegalFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mfz-legal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.mfz-legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #fee900;
    background: rgba(254, 233, 0, 0.08);
    border: 1px solid rgba(254, 233, 0, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 22px;
    font-weight: 500;
}

.mfz-legal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #fee900;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mfz-legal-card:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(254, 233, 0, 0.3);
}

.mfz-legal-section-h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fee900;
    margin: 0 0 8px 0;
    letter-spacing: 0.2px;
}

.mfz-legal-card p {
    font-size: 13.5px;
    color: #d1d1d6;
    margin: 0 0 10px 0;
    line-height: 1.65;
}

.mfz-legal-card p:last-child {
    margin-bottom: 0;
}

.mfz-legal-list {
    margin: 8px 0 10px 0;
    padding-left: 0;
    list-style: none;
}

.mfz-legal-list li {
    position: relative;
    padding-left: 20px;
    font-size: 13.5px;
    color: #cfcfe0;
    margin-bottom: 6px;
    line-height: 1.6;
}

.mfz-legal-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #fee900;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

/* ─── Contact Info Pane Specific Styles ─── */
.mfz-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.mfz-contact-tile {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(254, 233, 0, 0.18);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.mfz-contact-tile:hover {
    background: rgba(254, 233, 0, 0.08);
    border-color: #fee900;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mfz-contact-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(254, 233, 0, 0.15);
    border: 1px solid rgba(254, 233, 0, 0.3);
    color: #fee900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 6px;
}

.mfz-contact-tile-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9c9ca4;
    font-weight: 600;
}

.mfz-contact-tile-value {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    word-break: break-all;
}

.mfz-contact-tile:hover .mfz-contact-tile-value {
    color: #fee900;
}

.mfz-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.mfz-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.mfz-contact-btn-primary {
    background: #fee900;
    color: #000;
    box-shadow: 0 4px 18px rgba(254, 233, 0, 0.3);
}

.mfz-contact-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 255, 255, 0.35);
}

.mfz-contact-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mfz-contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fee900;
    color: #fee900;
    transform: translateY(-2px);
}

/* ─── Modal Footer ─── */
.mfz-legal-footer {
    padding: 14px 28px;
    background: rgba(14, 14, 17, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    font-size: 12px;
    color: #8c8c96;
}

.mfz-legal-close-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mfz-legal-close-action-btn:hover {
    background: #fee900;
    color: #000;
    border-color: #fee900;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
    .mfz-legal-dialog {
        max-height: 92vh;
        border-radius: 14px;
    }
    .mfz-legal-header {
        padding: 16px 20px 12px;
    }
    .mfz-legal-body {
        padding: 18px 20px;
    }
    .mfz-legal-title {
        font-size: 20px;
    }
    .mfz-contact-grid {
        grid-template-columns: 1fr;
    }
    .mfz-legal-footer {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
