Nothing in mediation is binding until it is written down in the settlement agreement. If you reach a settlement during the mediation then you must make sure you record the terms in a settlement agreement before you leave the mediation.
The settlement agreement is a contract like any other and therefore legally binding.