Fetching details from the dictionary...
illegality
行為の違法性を問われた。
He was questioned about the illegality of his actions.
契約書の内容について違法性を弁護士に確認した。
I had a lawyer check whether the contract contents were illegal.
著作権を無断で使用することの違法性を認識していなかった。
I was unaware of the illegality of using copyrighted material without permission.