Yes it is Legal.
I took a Bag of mixed change to pay a fine once.
when I set the bag on the table the secretary Sighed ,
and the District Justice come out and told me under no uncertain terms would she have to count it out
Of course My next words were: if you don't want my money,
I guess we are squared up

& walked.
took almost 2 years before they came after me
point is , as he said, if they don't want to count it out,
your a Pain in their side & if you get too rude
they can add charges.
Legal Tender does not mean they have to accept it.
They can put up a sign accepting livestock only.
Legal Tender just means it is not counterfeit.
noun 1. currency that may be lawfully tendered in payment of a debt, such as paper money, Federal Reserve notes, or coins.
doesn't say it must be accepted