Criminal law isn't the only law, so not the only source of illegality.
Your definition is not compatible with any common understanding of the word, or with any major dictionary.
Maybe you should check the definition of the word before taking a position on what it is, next time.
Contracts are civil law. It is not illegal to breach a contract. It is a tort.