For legacy versions like Sierra or El Capitan, Apple provides direct .dmg downloads via Safari.

Once you have a valid ISO, you can:

Do not download pre-made macOS ISO files from third-party websites. The safe, legal, and reliable method is to download the official installer from Apple and convert it to ISO yourself . This ensures integrity, security, and compatibility.

from the Mac App Store. (Do not run it.)