A 45-45-90 triangle has a hypotenuse of length 14 units. What is the length of one of the legs?