A contract is an agreement voluntarily entered into by two or more parties that is intended to create legal obligations between them.