The EU Parliament is composed of 705 members (MEPs). It represents the second-largest democratic electorate in the world (after the Parliament of India), with an electorate of 375 million eligible voters
p.s. even the US president is a non-directly elected entity
The people who do write the laws are directly elected at all levels of government.
While judges in some places are directly elected, at the federal level they are not. Beyond that, enforcement of laws is at the prerogative of the executive. If the laws written by directly elected officials are ignored, that is making law as well in some sense. For instance, marijuana remains illegal at the federal level, but the laws are unenforced and states are legalizing it themselves (contravening federal law).
Like most governments?