Using Boot Camp or a virtual emulator to play Genshin Impact on a Mac does not violate the game's terms of service as long as you have a legitimate copy of the game and adhere to the terms and conditions set by the game's developers, miHoYo.