using css media queries on legend