Definitions of legality:

  • noun:   lawfulness by virtue of conformity to a legal statute