The names of the legs are logical and based on the relative wind as seen looking down a runway facing into the wind. An aircraft flying upwind heads into the wind, flying crosswind heads across the wind, flying downwind heads in the direction of the wind just like blown smoke.