Legality, in respect of an act, agreement, or contract is the state of being consistent with the law or of being lawful or unlawful in a given jurisdiction, and the construct of power.
Merriam-Webster defines legality as 1: attachment to or...
Wikipedia