; or (2) the transaction involves proceeds from— (A) cannabis-related activities described in subsection (n)(4)(B) conducted by a cannabis-related legitimate business; or (B) activities described in subsection (n)(13)(A) conducted by a service provider. (d) Protections under federal law (1) In general With respect to providing a financial service to a cannabis-related legitimate business or service provider within a State, political subdivision of a State, or Indian country that allows the cultivation, production, manufacture, sale, transportation, display, dispensing, distribution, or purchase of cannabis pursuant to a law or regulation of such State, political subdivision, or Indian Tribe that has jurisdiction over the Indian country, as applicable, a depository institution, entity performing a financial service for or in association with a depository institution, or insurer that provides a financial service to a cannabis-related legitimate business or service provider, and the officers, directors, and employees of that depository institution, entity, or insurer may not be held liable pursuant to any Federal law or regulation— (A) solely for providing such a financial service