Lego to cut 1,400 staff as decade-long sales boom ends