/* Modal Overlay for Footer Links */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f9fafb;
    color: #1f2937;
    transform: rotate(90deg);
}

#modal-body {
    color: #1f2937;
}

#modal-body h2 {
    color: #4f46e5;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#modal-body h3 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

#modal-body p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1rem;
}

#modal-body ul {
    list-style: none;
    padding-left: 0;
}

#modal-body ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6b7280;
    line-height: 1.6;
}

#modal-body ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4f46e5;
    font-weight: bold;
}

#modal-body strong {
    color: #1f2937;
    font-weight: 600;
}

#modal-body a {
    color: #4f46e5;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }

    #modal-body h2 {
        font-size: 1.5rem;
    }

    #modal-body h3 {
        font-size: 1.1rem;
    }
}
