Most emulators fall in a legal grey area, but any kind of emulation itself is entirely legal. Be it Yuzu, Ryujinx, Cemu, or any other emulator, they are all legal. You can download emulators legally without worrying. However, downloading and playing a game through ROMs is considered illegal.