/* ============================================================
   MODAL DE POLÍTICA DE PRIVACIDADE
   ============================================================ */

/* Link do footer que abre o modal */
.privacy-link {
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: underline;
}

.privacy-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ============================================================
   OVERLAY DO MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Modal ativo */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   CONTEÚDO DO MODAL
   ============================================================ */
.modal-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botão de fechar - CERTIFIQUE-SE que está assim */
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #0f172a;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Certifique-se que o z-index do container está correto */
.modal-container {
    position: relative;
    /* ... outras propriedades ... */
}

/* ============================================================
   CONTEÚDO COM SCROLL
   ============================================================ */
.modal-content {
    padding: 32px 28px;
    overflow-y: auto;
    max-height: 85vh;
    scrollbar-width: thin;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #0fe500;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #0bc800;
}

/* ============================================================
   TÍTULOS E TEXTOS
   ============================================================ */
.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    border-bottom: 3px solid #0fe500;
    display: inline-block;
    padding-bottom: 8px;
}

.modal-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 24px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.modal-content h3:first-of-type {
    margin-top: 0;
}

.modal-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 16px;
    text-align: justify;
}

.modal-content strong {
    color: #0fe500;
    font-weight: 700;
}

/* Listas */
.modal-content ul {
    margin: 12px 0 20px 24px;
    list-style: disc;
}

.modal-content ul li {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-content ul li strong {
    color: #0f172a;
}

/* Badge de tecnologias */
.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #0fe500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 4px;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVIDADE MOBILE-FIRST
   ============================================================ */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content {
        padding: 24px 20px;
    }
    
    .modal-content h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    .modal-content h3 {
        font-size: 1.05rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .modal-content p,
    .modal-content ul li {
        font-size: 0.85rem;
    }
    
    .modal-close {
        top: 12px;
        right: 16px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
    
    .tech-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px 16px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .modal-content h3 {
        font-size: 1rem;
    }
    
    .modal-content p,
    .modal-content ul li {
        font-size: 0.8rem;
    }
}

/* Previne animação em dispositivos que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-container,
    .modal-close {
        transition: none;
        animation: none;
    }
    
    .modal-close:hover {
        transform: none;
    }
}