Gluing of Lorentzian length spaces and the causal ladder