A more thorough explanation:
Definition: Turpis causa is a Latin term that means "immoral
consideration." It refers to a type of consideration that is so offensive to society's norms that it is not valid. A contract supported by immoral consideration is usually voidable or
unenforceable. For example, if someone promises to pay another person to commit a crime, the contract is based on immoral consideration and is not valid.