Conforming to laws and/or rules. Accepted by a ruling or administrative body.
Hippy1: Alcohol is legal, man, but pot isn't, man.
Hippy 2: I know, man, what's up with that, man? I mean, who says what's legal, man?
Police: Open up! We know what you're doing and it's not legal!