Type D visa is a long-term visa allowing stays in Latvia for work, study or family reunion.