A restraining order is issued for either actually illegal activity, or for activity whose legal status is in dispute, and which would irreparably negatively impact a party in the case in which it that status was in dispute, or for activity which might straddle the line of legality but which is related to a broader pattern of activity which was found to be illegal.
Its not done for specifically legal activity.
> The possibilities of human behavior are infinite. We don't need and can't enumerate all possible bad behaviors as illegal. Thus the civil court system.
The civil court system is for addressing things which are illegal -- violations of the law -- but which are not violation of criminal law. The civil court system applies those things prohibited in civil law, it does not substitute for having laws to determine what is prohibited.
The subset of restraining orders (sometimes called "protective" orders) you are thinking of are available when something illegal has been done, and relate to patterns of activity related to that illegal thing. For California, there are several kinds [0] of such orders:
(1) Domestic Violence Restraining Order: available if someone close to you in specific ways defined in law has abused you in specific ways defined in law as acts of domestic violence.
(2) Elder or Dependent Adult Abuse Restraining Order: available if you are elderly or disabled and have been a victim of certain kinds of abuse.
(3) Civil Harassment Restraining Order: available if you are being harassed or stalked, etc., by someone not close enough to be covered by a domestic violence restraining order.
(4) Workplace Violence Restraining Order: available to an employer to protect an employee that has been a victim of stalking, harassment, violence, or serious threats.
Now, yes, they sometimes cover acts which would not otherwise be illegal, but they actual require something illegal to have happened as their basis (a temporary restraining order can be issued on the claim that such a thing has occurred, and a permanent restraining order only after a hearing to determine that.)
The possibilities of human behavior are infinite. We don't need to and can't enumerate all possible bad behaviors as illegal. Thus the civil court system.
On the second thought, I think there's some law against publishing images of people without their consent in some circumstances. I'm not clear on exactly what is allowed, but I know that TV broadcasters post notices in places that they are filming.