I would try bleeding some new fluid in to it. Over time it retains moisture and will make the pedal feel worse and cause the fluid to "boil" and not operate correctly.
But if you were just driving normally then had to use the brakes hard then not sure. Have a look for small leaks in the system.
Bruce