Our mediator told us that she can draw up a memorandum of understanding with all of our agreements on it etc... We would then have to take it to our respective Solicitors (or i've heard of a single solicitor doing it for both parties but in my case it would be two separate ones) the Solicitors then give advice on the terms of the agreements and write up the order this is then taken to Court to be ratified.
