Your symptoms are caused by the body going into an inflammatory response directed by the immune system. Your body releases histamine, which in turn causes the redness and swelling you experience.
Blood vessels dilate, which results in increased circulation. Hives develop with areas of redness. Several triggers can exist, including perspiration, heat or emotional stress. Scratching your itchy legs can aggravate the condition and increase your discomfort.