Law firms operating in China are walking a geopolitical tightrope.

The fallout from ongoing tensions between China and the U.S. has created ripple effects in the legal industry, with scores of top American law firms scaling back and pulling out of the Chinese market.