Emergence of spin-orbit order in the spinel CuCr$_2$O$_4$