The Chinese government blocks Google but does not forbid its citizens from using Google abroad, for example. There is no law forbidding the use of Google or Overleaf, and the government could not care less.