lawful vs. legal
Lawful is what is right to do, in a moral or libertarian sense. Legal is what is permitted to do by government.
unlawful vs. illegal
Unlawful is morally wrong (malum in se). Illegal is artificially wrong (malum prohibitum) because the government says so.
Boston T. Party
Boston's Gun Bible