Hello and welcome to JustAnswer. Please note: This is general information for educational purposes only and is not legal advice. No specific course of action is proposed herein, and no attorney-client relationship or privilege is formed by speaking to an expert on this site. By continuing, you confirm that you understand and agree to these terms.
It is feasible to create such an agreement. However, it would be a civil contract, enforceable in civil (non-family) court. It would have to be worded very carefully, ensuring that:
-it states "for valuable consideration," and
-that it does not have anything in it that can trigger an unconscionabily defense.
So yes, this is possible. However, it is recommended that an attorney draft such an agreement to ensure that it is held up in Court.
I hope this helps and clarifies. Please use the SEND or REPLY button to keep chatting, or please RATE when finished. You may always ask follow ups at no charge after rating. Kindly rate my answer as one of TOP THREE FACES/STARS and then SUBMIT, as this is how experts get credit for our time. Rating my answer the bottom two faces/stars (or failing to submit the rating) does not give me credit and reflects poorly on me, even if my answer is correct. I work very hard to formulate an informative and honest answer for you; please reciprocate my good faith with a positive rating.