Fix specificity problem and positioning of legend/margin