If you have own a mere copy of ROMs game which you are trying to download then there is no issue. There are many ways in which you can get rid of the cartridges to ROMs file using some hardware and software then It’s legal. In case of emulators, they are legal to use ROMs.