The European Union has a legal personality and its own legal system. EU legislation has a direct or indirect impact on the national law of its Member States. The legal system is usually subdivided into primary legislation (treaties and general principles of law) and in secondary legislation (legal acts based on EU Treaties).