I'm a developer and I'm working in a company where i will have to develop cross-platform desktop apps (with electron), mobile apps (with Cordova) and even extensions, including Safari. So it goes without saying that I need all three platforms.
I currently have really powerful laptop (so virtualization is not a problem) where I have Windows and Linux (as dual-boot & vagrant VirtualBox).
I have MacOS and iPhones at work, but i would like to install MacOS in a VirtualBox, so i can work from home too (that I do a lot), since I don't have any apple products at home (and I can't take any from work).
The problem is not MacOS itself as I have already installed Hackintosh in the past.
My question is, is it, somehow, legal to install MacOs or Hackintosh on my laptop, so I can use it in commercial environment (work), as we get legal checks quite often. (Buying new licence is not a problem, or I can use one of the MacOs at my work - I don't know how this works with Apple)