The cards are stored in the app as long as the app is a member of the team. If they leave the team or they are removed from the team by the owner, the team cards are going to be removed from the app, but their cards shared or not with the team will remain intact.