; or (C) affects the use of water conveyance infrastructure associated with a water right described in subparagraph (B). (c) Grazing permits (1) In general If land conveyed under this Act is subject to a lease, permit, or contract for the grazing of domestic livestock in effect on the date of the conveyance, the Secretary (or the Secretary of Agriculture for land located within the National Forest System) and the western State shall allow the grazing to continue for the remainder of the term of the lease, permit, or contract, subject to the related terms and conditions of user agreements, including permitted stocking rates, grazing fee levels, access, and ownership and use of range improvements. (2) Renewal On expiration of any grazing lease, permit, or contract described in paragraph (1), the party that has jurisdiction over the land on the date of expiration may elect to renew the lease, permit, or contract if permitted under applicable law. (3) Cancellation (A) In general Nothing in this Act prevents the Secretary (or the Secretary of Agriculture for land located within the National Forest System) or the western State from canceling or modifying a grazing permit, lease, or contract if the land subject to the permit, lease, or contract is sold, conveyed, transferred, or leased for nongrazing purposes. (B) Limitation Except to the extent reasonably necessary to accommodate surface operations in support of mineral development, the Secretary (or the Secretary of Agriculture for land located within the National Forest System) or the western State shall not cancel or modify a grazing permit, lease, or contract for land conveyed pursuant to this Act because the land subject to the permit, lease, or contract has been leased for mineral development. (4) Base properties If land conveyed by the western State under this Act is used by a grazing permittee or lessee to meet the base property requirements for a Federal grazing permit or lease, the land shall continue to qualify as a base property for the remaining term of