Consult with a healthcare professional or a certified trainer to explore alternative exercises or modifications that accommodate your condition while still targeting leg muscles.