Those two purposes are one and the same. The biggest reason for corporations to hire lawyers is to figure out the exact amount of consumer screwing they can legally get away with.
Whenever people come across any "terms" document, they are well served by simply ignoring it entirely and assuming it contains the following statements:
> you own nothing
> the company owns everything
> you have no rights
> you promise not to try and exercise any right you think you have
> if you ever convince yourself that you actually have rights, you agree to binding arbitration with the firm we pay
> you cannot do anything the company doesn't like
> the company can do literally anything it wants whether you like it or not
> the company is not responsible for anything, ever
> the company makes absolutely no guarantees about literally anything
> you agree to indemnify us in all possible circumstances