I accidentally cut a little bit of the side of my toe and it was bleeding but I managed to stop it, but now my legs hurt what now?

See doctor. You were trimming your nails and cut the skin which caused bleeding. The bleeding stopped but your leg hurts now. You'll need to see your doctor for the risk of infection if the pain is associated with any infection. So if you have fever, redness around area of injury or swelling. The risk is that the clippers are not clean and you may have introduced bacteria. See a doctor to be safe.