Is it truly legal to set up a contract like this?