contract a legal document ( usually expensive pieces of paper because of the combined cost of expertise and needed paperwork to make it enforceable by law ) that outlines an agreement often between two or more competent people ( or companies ) that offers rewards for doing what you agree to do and consequences for breaking the rules .