So are Windows 11/10 keys that you buy from another site like Amazon, etc., legitimate or legal? That depends!
But you need to be careful if you buy them from third-party websites. When you buy Windows Keys from Microsoft websites or get them from the OEMs, you can be sure that they are genuine. A copy of Windows is genuine only if it has been activated using a valid key.