; (iii) the person has the prior written consent in the person's possession at all times when a covered firearm or covered ammunition is in the possession of the person; and (iv) in accordance with State and local law; (B) a person who is less than 21 years of age who is a member of the Armed Forces of the United States or the National Guard who possesses or is armed with a covered firearm or covered ammunition in the line of duty; (C) a transfer by inheritance of title (but not possession) of a covered firearm or covered ammunition to a person who is less than 21 years of age; or (D) the possession of a covered firearm or covered ammunition by a person who is less than 21 years of age taken in defense of the person or other individuals against an intruder into the residence of the person or a residence in which the person is an invited guest. (4) A covered firearm or covered ammunition, the possession of which is transferred to a person who is less than 21 years of age in circumstances in which the transferor is not in violation of this subsection shall not be subject to permanent confiscation by the Government if its possession by the person who is less than 21 years of age subsequently becomes unlawful because of the conduct of the person who is less than 21 years of age, but shall be returned to the lawful owner when such covered firearm or covered ammunition is no longer required by the Government for the purposes of investigation or prosecution. (5) For purposes of this subsection— (A) the term covered ammunition means ammunition that is suitable for use only in a handgun or a semiautomatic assault weapon; and (B) the term covered firearm means— (i) a handgun; (ii) a semiautomatic assault weapon; or (iii) a large capacity ammunition feeding device. ; and (iv) in paragraph (6)— (I) in subparagraph (A), by striking a juvenile defendant's parent or legal guardian and inserting the parent or legal guardian of a defendant who is less than 21 years of age