Designer drug/Definition

In legal-regulatory environments where there is a specific molecular definition of each licit and some illicit drugs, a modification of a molecule such that the result provides the desired recreational drug effect, but is not prohibited by drug regulations; it is specifically the goal to protect recreational use rather than, for example, to modify the molecule to remove undesirable side effects