Does the planet have rights?
The planet was here first and likely will outlive humans at the rate we are taking care of our health as a species.
The question of whether the planet should have legal rights with human courts is discussed here: Protecting the Rights of Planet Earth, (ThoughtEconomics).
In New Zealand the Whanganui River river won legal rights with the help of human representatives, aborigines who consider the river to be an ancestor with living rights. See # 9 in The Real Fight Against Fake News - Project Censored's top 10 under-reported stories, Nov. 2018, (ProjectCensored). "Ashes to ashes, dust to dust," (origin) - by molecular count we are more water than ash or dust.
Disclaimer: Information provided for educational purposes within guidelines of fair use.