Is it illegal for girls and boys to play a compettive football match together?

No. And who says "match"?