contract
A contract is a legally binding agreement between two parties. A contract contains terms that both parties must agree and adhere with to avoid a breach of contract.
A written contract is a type of document, and typically requires one, or both parties to sign it before it can be considered a valid contract.