Flexible Functional Treatment Effect Estimation (Journal of Machine Learning Research, 2026)