Not it is not legal.

But, you might want to ask for a discount, if there is any, at sales@avast.com