Statistical Complexity and Optimal Algorithms for Non-linear Ridge Bandits