legality
noun
LAW uk/liːˈɡæləti/ us [ U ]
the state of being legal:
the legality of sth Negotiations are taking place between Justice Department officials and White House aides over the legality of the wiretapping program.
legalities [ plural ]
the legal rules that are involved in something:
the legalities of sth A good lawyer should help you understand the legalities of the contract you are signing.
Compare
illegality