This is from the PCB design rulebook. As long as the circuitry is referenced to the same potential (or ground, which by the way is an ambigiuous term), they can have a low clearance (i.e. they can be close together) Who said engineering wasn’t practical.