Freshfields’ flexibility heads off job losses