Safe Legged Locomotion using Collision Cone Control Barrier Functions (C3BFs)