"legally binding" doesn't really work on nation level. The nation will follow the deal as long as it's worth it for them (considering sanctions, etc)