While they may not embrace virtualization, they certainly don’t stop people from doing it. If they wanted to, they could disable the Intel VMX instructions, but VM programs on macOS clearly show that they don’t.
As for Hackintoshes, that’s just because Apple doesn’t have a financial incentive to write drivers for hardware that isn’t their own; They make money from the hardware, not software (macOS is actually free and has been for a few years). You’re free to buy compatible hardware or write your own drivers. In fact, many do write drivers for incompatible hardware; That’s how the Hackintosh hardware selection grows.
I never said it was legal or illegal; I said that they don’t stop people from doing it. For example, they don’t go: “oh, this is a Hackintosh? I’ll wipe your efivars so your computer won’t boot.”