In Spacesuits, especially in newer ones like the Exploration Extravehicular Mobility Unit (xEMU), there are a large number of rotating joints at different portions like wrists, arms, torso, etc.
According to my logic, between a rotating part and a stationary part, there must a small gap to allow rotation. For example, consider a conventional DC Motor, there is a small circular gap between the rotating shaft and the non-rotating motor body. Now coming to space suits, if there are gaps between rotating and stationary parts in a spacesuit, it leads to decompression, but in reality, it doesn't happen. Further, I could think of gas-tight spacesuits with rotating joints with limited range of rotation about its axis, but the new Artemis Generation Spacesuits have the full degree of rotation in arms especially.
How do engineers tackle the problem of gas leaks or decompression due to the rotating joints (bearings) when the suit is pressurized?