Capacity
Generally minors (people under 18 years of age) cannot enter into legally binding contracts. However, capacity also covers people suffering from mental illness, disability and who are intoxicated when the contract is made.
Generally contracts made with someone in these states will still be valid unless it can be shown that at the time that the contract is made one person is incapable of understanding the nature of the transaction and the other person knows this.
In such circumstances the contract is voidable (ie the party suffering from the lack of capacity can decide whether they want to terminate it).