The general consenus I've seen is that 1) projects/code that enables MacOS to be emulated is legal, but 2) running MacOS VMs on non-Apple hardware is a violation of the EULA you agree to when installing MacOS.
So if it's on an Apple device (even one not running MacOS as the host) it's fine, otherwise it's a violation of the EULA, and something a business probably doesn't want to get tangled in.
I’ve considered using this for running simulators but I always get asked about how legal this is.