Z -boson decays into an invisible dark photon at the LHC, HL-LHC, and future lepton colliders