Simply put, by signing binding legal treaties absent deserved legal counsel.How do you legally take over another country's EEZ? My biggest worry when it came to the MoU was Ethiopia establishing a naval base but now that has gone to dust.
Here is a reference to the treaty, as referenced in the Ankara communique: land-locked nations vs transit states.
UNC Law of the Sea, III.