> . . . I have no idea how you’d enforce that. . .
Most countries already have a professional lawyering organization that oversees ethics. Those organizations already enforce such rules by either fines, mediation, revocation of the license to practice law, or ultimately by referral to the criminal justice system.