Legal infrastructure and urban networks for just and democratic smart cities