Shape-Adaptive Conditional Calibration for Conformal Prediction via Minimax Optimization