Adding media selector to style legend in narrower browser configurations