Seahawks’ Sherman signs 3-year deal with 49ers