la legalidad

feminine noun

legality

"Dudamos de la legalidad del contrato."

We doubted the legality of the contract.