indenture: a contract binding one party into the service of another for a specified term
written agreement: a legal document summarizing the agreement between parties
marriage of convenience: a marriage for expediency rather than love