Agreements reached during mediation can be made legally binding if both parties consent and the terms are formalized in a written contract. Once signed, the agreement can be submitted to a court for approval, making it enforceable under law. This ensures that the decisions made during mediation have the same legal standing as those made in a courtroom.