It is perfectly legal as is, but since you asked for opinions, everything said above should be taken in like a sponge.

I like the idea of extending the A-pillar tubes to another mounting point, but I don't think your knees are at risk with the cross bar.

You could actually cut out the main hoop brace behind the seat and "flip it" to have a better seat brace distance to span.