Is this a compound or complex sentence and tell me if it is cc or sc

Good kids don't get in trouble, but consequences are severe for those who misbehave.

This is a compound sentence because it consists of two independent clauses connected by the coordinating conjunction "but".