EU membership has nothing to do with being physically located in Europe.
The UK, Switzerland, and most of the former Yugoslavian states are not in the EU. Same for Iceland.
But one European countries legal system also doesn’t constitute “most European legal systems”.
But one European countries legal system also doesn’t constitute “most European legal systems”.