/* Estilos para os modais de Termos e Política de Privacidade - DARK THEME */

.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.legal-modal-content {
    background-color: #1a1a1a;
    margin: 3% auto;
    padding: 0;
    border: 1px solid #404040;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-in-out;
    overflow: hidden;
}

.legal-modal-header {
    padding: 18px 25px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-bottom: 2px solid #ffffff;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.legal-close {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.legal-close:hover,
.legal-close:focus {
    color: #cccccc;
    opacity: 1;
}

.legal-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 160px);
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.legal-modal-body h1,
.legal-modal-body h2,
.legal-modal-body h3 {
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-modal-body h1 {
    font-size: 28px;
    border-bottom: 2px solid #404040;
    padding-bottom: 10px;
}

.legal-modal-body h3 {
    font-size: 20px;
    color: #cccccc;
}

.legal-modal-body p {
    margin-bottom: 15px;
    color: #b0b0b0;
}

.legal-modal-body ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-modal-body li {
    margin-bottom: 8px;
    color: #b0b0b0;
}

.legal-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #0a0a0a;
}

.legal-modal-body table th,
.legal-modal-body table td {
    border: 1px solid #333333;
    padding: 12px;
    text-align: left;
}

.legal-modal-body table th {
    background-color: #2a2a2a;
    color: #ffffff;
    font-weight: bold;
}

.legal-modal-body table tr:nth-child(even) {
    background-color: #141414;
}

.legal-modal-body strong {
    color: #ffffff;
    font-weight: 600;
}

.legal-modal-footer {
    padding: 15px 25px;
    background-color: #0a0a0a;
    border-top: 2px solid #ffffff;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.legal-modal-footer button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 25px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.legal-modal-footer button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.legal-modal-footer button:active {
    transform: scale(0.98);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsividade */
@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        max-width: 100%;
    }

    .legal-modal-header {
        padding: 15px 18px;
    }

    .legal-modal-header h2 {
        font-size: 18px;
    }

    .legal-modal-body {
        padding: 18px;
        max-height: calc(90vh - 140px);
        font-size: 14px;
    }

    .legal-modal-body h1 {
        font-size: 22px;
    }

    .legal-modal-body h3 {
        font-size: 16px;
    }

    .legal-modal-body table {
        font-size: 13px;
    }

    .legal-modal-body table th,
    .legal-modal-body table td {
        padding: 8px;
    }

    .legal-modal-footer {
        padding: 12px 18px;
    }

    .legal-modal-footer button {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .legal-modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }

    .legal-modal-header h2 {
        font-size: 16px;
    }

    .legal-modal-body {
        padding: 15px;
        font-size: 13px;
    }

    /* Formulário responsivo em telas pequenas */
    .legal-modal-body form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
