Observation of entanglement transitions in Cs2CoCl4