Legal means having to do with the law, or following the law. Attorneys work in the legal profession but may not always be so lucky as to find a legal parking spot near their office.
A legal scholar is someone who studies law. A legal search and seizure is when the cops come to you house with a warrant. A legal apartment is one that meets building code and is in an appropriately zoned neighborhood. Legal's opposite is illegal, which means against the law.