Law firms losing millions to tech