yes, it is legal. There is no requirement a creditor accept anything less than payment in full. It is a myth that if you offer to make payments and are refused the debt is considered forgiven. Just a myth.
So, since you did not pay the debt, they did what is typical which is turn the debt over to a collection agency who will make all efforts to collect the debt.

