Law firms invest heavily in AI adoption