Can a woman sunbathe topless on remote Australian beaches and not get in legal trouble?

…visiting Australia again soon and asking for a friend. :)

Does it also differ state to state like, say, NSW and Victoria? Again, asking for a friend. :)

The Backstory: I (erm, the friend) did it a few times in secluded areas and absolutely nothing happened but also have a really nice career and don’t want to inadvertently break a law or go viral in a foreign country.