As in the case of criminal jurisdiction, while foreign merchant ships voluntarily
navigate or stay in internal waters of a coastal State, they subject themselves to the
civil jurisdiction of the State in the sense of both regulation and application, unless
otherwise agreed by treaty between the coastal State and the flag State