A Flexible Fairness Framework with Surrogate Loss Reweighting for Addressing Sociodemographic Disparities