That is what i wondered. I'm no expert, but here are some ideas...If she rarely lays, or has stopped, maybe switch her to a flock raiser, or feed for older hens now, instead of layer feed...and limit treats to see if she improves.
Has she been able to dust bathe the past few weeks? Maybe check her vent, and do an overall look for parasites, to look for sources of inflammation/irritation. Can't tell for sure but skin looks pink where feathers cover the legs. Maybe dust feathers, roosts, and spray her legs daily with olive oil...as there may be an irritant you can't see. Small chance - but was there a change in bedding to which she may have a skin allergy / or plant sap exposure?
Plenty of fresh water, helps flush swelling, Parsley and certain other greens like dandelon - are used in humans as seasonal kidney tonics. Can't hurt to try some, as they are loaded with Vitamins.
Maybe even a warm epsom salts soak, if there's a chance of a stuck egg restricting her movement and circulation?
Since both legs are affected it may be a sign of organ trouble. I don't know if using a wormer might be a cure...but do check feces for any sign when any are ill. Poo photos may help with a diagnosis.
In humans, sometimes leg swelling is a symptom of a weak heart...and more common with age and cardio disease. On a farm they'd probably do a swift cull rather than watch her quality of life deteriorate. Still, taking a close look to inspect for a cause is a good idea...as sometimes a small change can prevent it in other birds.
I feel for you, and your pretty girl.. Good Luck.