The law penalizes doctors who provide hormone therapy or puberty blockers for people under 18 with gender dysphoria.