Improve layout of legend items for medium width screens, especially important for Chrome on Windows. Only move the legend above the chart for medium width viewports and above, improves experience on mobile.