SATA: Safe and Adaptive Torque-Based Locomotion Policies Inspired by Animal Learning