Thus , royal politics resulted in personal unions between the Nordic countries , eventually bringing the thrones of Norway , Denmark , and Sweden under the control of Queen Margaret when the country entered into the Kalmar Union .