Legality is unjudged, self-righteous exaction, whether it is severity on others or on oneself, for the sake of glorying.
The Epistle to the Galatians provides the antidote for legality, and that is grace, the grace of Christ.