HR is pivotal to success in a shifting legal environment