Whether the illegality is sufficient to cause legal consequences of the illegality depends on the facts of the case: that is, what happened and the law that made the treaty illegal. The investor did not keep the plan. For this reason, it is not contrary to the public interest to allow the investor to recover the money paid, when the money was paid for illegal purposes. As has already been said, whether a contract is considered illegal or not depends on the subject matter of the contract. However, a contract that only requires legal performance on the part of each party, such as for example. B the sale of decks of cards to a known player where the game is illegal, is nevertheless enforceable. However, a contract directly related to the law on gambling, such as for example. B the repayment of gambling debts (see direct cause), does not comply with the legal standards of opposability.