Fix mismatched h3/h5 in legend; minor title margin fix