Dolphin itself is legal. How you source your games is your responsibility.