It is the "contract law" which best govern the legal aspects of this decision.
Contract law is the assemblage of law that identifies with making and implementing agreements. An agreement is an understanding that a gathering can take to a court to uphold. Contract law is the territory of law that oversees making contracts, doing them and molding a reasonable cure when there's a rupture.