A bit of a grim topic, but something many of us sadly deal with in our lives. The short answer to a question as grim as burying pets in your yard is yes it is legal.
The company Meta supposedly let Netflix read private messages from Facebook users for about ten years, breaking rules against unfair competition and privacy.