legalness
noun
°The state of being legal, the property of being within the law.
"The legalness of the act does not change its immorality, only whether you can be arrested for it."