Contract is a legal document that states or explains a formal agreement between two different people or groups , or the agreement itself.