/**
 * modais.css
 * Estilos para os modais de termos legais
 */

.modal-legal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}
 
.modal-conteudo {
    background-color: #2d2d2d;
    background-image: repeating-linear-gradient(45deg, rgba(var(--cor-primaria-rgb), 0.05), rgba(var(--cor-primaria-rgb), 0.05) 1px, transparent 1px, transparent 10px);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalEntrada 0.4s ease-out;
    color: #fff;
}

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

.modal-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #4a5568;
    position: sticky;
    top: 0;
    background-color: #2d2d2d;
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

.modal-cabecalho h3 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    color: #fff;
}

.fechar-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #e2e8f0;
    transition: color 0.2s;
}

.fechar-modal:hover {
    color: #fff;
}

.modal-corpo {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-corpo h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #6e60d1; /* Cor dos tópicos */
    font-family: 'Sora', sans-serif;
}

.modal-corpo p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #e2e8f0;
    font-family: 'Manrope', sans-serif;
}

.modal-corpo h4:first-child {
    margin-top: 0;
}

/* Estilo para os bullets */
.modal-corpo ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.modal-corpo ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Estilo para links que abrem os modais */
.link-modal {
    cursor: pointer;
    text-decoration: underline;
    color: inherit;
}

.link-modal:hover {
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-conteudo {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-corpo {
        max-height: 60vh;
    }
}
