Like a pre-nuptial agreement , but entered into during the marriage rather than before it.