Created by, permitted by, in conformity with, or relating to, law; as, a legal obligation; a legal standard or test; a legal procedure; a legal claim…
Open English WordNet links these adjective senses as similar in meaning; they are not necessarily interchangeable.
