<?xml version="1.0" encoding="UTF-8"?><JUDGMENT xmlns:fmx="http://opoce" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://formex.publications.europa.eu/schema/formex-05.58-20161101.xd"><BIB.JUDGMENT><REF.CASE FILE="n.a."><NO.CASE>C-651/16</NO.CASE></REF.CASE><NO.CELEX>62016CJ0651</NO.CELEX><NO.ECLI ECLI="ECLI:EU:C:2018:162">EU:C:2018:162</NO.ECLI><NO.SEQ>0001</NO.SEQ><PAGE.FIRST.ECR>1</PAGE.FIRST.ECR><PAGE.SEQ>1</PAGE.SEQ><PAGE.LAST.ECR>8</PAGE.LAST.ECR><PAGE.TOTAL>8</PAGE.TOTAL><AUTHOR>CJ</AUTHOR></BIB.JUDGMENT><CURR.TITLE><PAGE.HEADER><P><HT TYPE="SC">Judgment of <DATE ISO="20180307">7. 3. 2018</DATE> — Case C‑651/16</HT></P><P>DW</P></PAGE.HEADER></CURR.TITLE><TITLE><TI><P><HT TYPE="UC">Judgment of the Court</HT> (Tenth Chamber)</P><P><DATE ISO="20180307">7 March 2018</DATE><NOTE TYPE="FOOTNOTE" NUMBERING="STAR" NOTE.ID="E0001"><P>Language of the case: Latvian.</P></NOTE></P></TI></TITLE><INTERMEDIATE><INDEX IDX.CLOSE=")" SEPARATOR=" — " IDX.OPEN="("><KEYWORD>Reference for a preliminary ruling</KEYWORD><KEYWORD>Social security</KEYWORD><KEYWORD>Maternity benefit</KEYWORD><KEYWORD>Calculation of the amount on the basis of the income of the insured person during a reference period of 12 months</KEYWORD><KEYWORD>Person employed, during that period, by an EU institution</KEYWORD><KEYWORD>National legislation fixing the amount at issue at 70% of the average contribution basis</KEYWORD><KEYWORD>Restriction on freedom of movement for workers</KEYWORD><KEYWORD>Principle of sincere cooperation</KEYWORD></INDEX></INTERMEDIATE><JUDGMENT.INIT><P>In Case C‑651/16,</P><P>REQUEST for a preliminary ruling under Article 267 TFEU from the Augstākā tiesa (Supreme Court, Latvia), made by decision of <DATE ISO="20161209">9 December 2016</DATE>, received at the Court on <DATE ISO="20161219">19 December 2016</DATE>, in the proceedings</P></JUDGMENT.INIT><PARTIES><PLAINTIFS><P><HT TYPE="BOLD">DW</HT></P></PLAINTIFS><AGAINST>v</AGAINST><DEFENDANTS><P><HT TYPE="BOLD">Valsts sociālās apdrošināšanas aģentūra,</HT></P></DEFENDANTS></PARTIES><PREAMBLE><PREAMBLE.INIT><P>THE COURT (Tenth Chamber),</P><P>composed of E. Levits, President of the Chamber, A. Borg Barthet and F. Biltgen (Rapporteur), Judges,</P><P>Advocate General: P. Mengozzi,</P><P>Registrar: A. Calot Escobar,</P></PREAMBLE.INIT><GR.VISA><VISA>having regard to the written procedure,</VISA></GR.VISA><GR.CONSID><CONSID><P>after considering the observations submitted on behalf of</P><LIST TYPE="NDASH"><ITEM><P>DW, by herself,</P></ITEM><ITEM><P>the Latvian Government, by I. Kucina and A. Bogdanova, acting as Agents,</P></ITEM><ITEM><P>the Estonian Government, by N. Grünberg, acting as Agent,</P></ITEM><ITEM><P>the European Commission, by I. Naglis and M. Kellerbauer, acting as Agents,</P></ITEM></LIST></CONSID></GR.CONSID><GR.VISA><VISA>having decided, after hearing the Advocate General, to proceed to judgment without an Opinion,</VISA></GR.VISA><PREAMBLE.FINAL>gives the following</PREAMBLE.FINAL></PREAMBLE><?PAGE NO="2"?><CONTENTS.JUDGMENT><GR.SEQ LEVEL="1"><TITLE><TI><P><HT TYPE="BOLD">Judgment</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0001"><NO.P>1</NO.P><TXT>This request for a preliminary ruling concerns the interpretation of Article 45 TFEU and Article 4(3) TEU.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0002"><NO.P>2</NO.P><TXT>The request has been made in proceedings between DW and the Valsts sociālās apdrošināšanas aģentūra (State Social Insurance Agency, Latvia) concerning the determination of the amount of maternity benefit to be granted to DW.</TXT></NP.ECR></GR.SEQ><GR.SEQ LEVEL="1"><TITLE><TI><P><HT TYPE="BOLD">Legal context</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0003"><NO.P>3</NO.P><TXT>Article 31 of the Likums <QUOT.START CODE="2018" REF.END="QE0001" ID="QS0001"/><HT TYPE="ITALIC">Par maternitātes un slimības apdrošināšanu</HT><QUOT.END REF.START="QS0001" CODE="2019" ID="QE0001"/> (Law on maternity and sickness insurance, <HT TYPE="ITALIC">Latvijas Vēstnesis</HT>, 1995, No 182, p. 465) provides in paragraphs 1, 6 and 7 thereof:</TXT><P><QUOT.S LEVEL="1"><PARAG IDENTIFIER="031.001"><NO.PARAG><QUOT.START CODE="2018" REF.END="QE0002" ID="QS0002"/>1.</NO.PARAG><ALINEA>The average contribution basis for the calculation of a State social insurance contribution shall be determined having regard to the contribution basis of the insured person for a period of 12 months, which period ends two calendar months before the month when the insurable event occurred ...</ALINEA></PARAG><P>...</P><PARAG IDENTIFIER="031.006"><NO.PARAG>6.</NO.PARAG><ALINEA>If an insured person was not registered as paying State social insurance contributions or was on unpaid leave during part of the period taken into account in the calculation of the average contribution basis provided for in subsection (1) above ..., then, in calculating a maternity or paternity benefit, the average contribution basis for the part of the period referred to, as well as the part of the period for which there is no average contribution basis due to the fact that the person was on unpaid leave, with the exception of periods of unpaid leave for the purpose of looking after a child, shall be established in the amount of 70% of the average monthly contribution basis in the State.</ALINEA></PARAG><PARAG IDENTIFIER="031.007"><NO.PARAG>7.</NO.PARAG><ALINEA>If an insured person has no average contribution basis due to the fact that that person was incapacitated from work, on leave relating to the period of pregnancy or on maternity leave, on paternity leave, on unpaid leave for the purpose of looking after a child, or on parental leave, during part of the period taken into account in the calculation of the average contribution basis provided for in subsection (1) above ..., then, the average contribution basis shall be the average contribution basis for the reference period minus the days of temporary incapacity, of leave relating to the period of pregnancy and maternity leave, of paternity leave, of unpaid leave for the purpose of looking after a child, and of parental leave.<QUOT.END REF.START="QS0002" CODE="2019" ID="QE0002"/></ALINEA></PARAG></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0004"><NO.P>4</NO.P><TXT>Under Article 7 of the Ministru Kabineta noteikumi Nr. 270 <QUOT.START CODE="2018" REF.END="QE0003" ID="QS0003"/><HT TYPE="ITALIC">Vidējās apdrošināšanas iemaksu algas aprēķināšanas kārtība un valsts sociālās apdrošināšanas pabalstu piešķiršanas, aprēķināšanas un izmaksas kārtība</HT><QUOT.END REF.START="QS0003" CODE="2019" ID="QE0003"/> (Decree of the Council of Ministers No 270 on the provisions relating to the calculation of the average contribution basis and provisions relating to the grant, calculation and payment of State social security benefits) of <DATE ISO="19980727">27 July 1998</DATE> (<HT TYPE="ITALIC">Latvijas Vēstnesis</HT>, 1998, No 223/224, p. 1284):</TXT><P><QUOT.S LEVEL="1"><PARAG IDENTIFIER="007.007"><NO.PARAG><QUOT.START CODE="2018" REF.END="QE0004" ID="QS0004"/>7.</NO.PARAG><ALINEA><P>In order to calculate the average contribution basis of an employee, the contribution basis shall include the entire contribution basis received by an employed worker in the period specified in Section 31(1) of the Law on maternity and sickness insurance:</P><NP><NO.P>7.1</NO.P><TXT>as an employed worker</TXT></NP><NP><NO.P>7.1.1.</NO.P><TXT>from an employer with whom, on the day of the occurrence of the insurable event, the employed worker has entered into one of the legal relationships referred to in Section 1(2) of the Law on State social insurance, which is the origin of the contribution basis.<QUOT.END REF.START="QS0004" CODE="2019" ID="QE0004"/></TXT></NP></ALINEA></PARAG></QUOT.S></P></NP.ECR><?PAGE NO="3"?><NP.ECR IDENTIFIER="NP0005"><NO.P>5</NO.P><TXT>Article 8 of the decree states:</TXT><P><QUOT.S LEVEL="1"><ALINEA><P><QUOT.START CODE="2018" REF.END="QE0005" ID="QS0005"/>The average contribution basis for the grant of social insurance benefits in all the cases specified in Section 7 of this Decree shall be calculated according to the following formula:</P><P>Vd = (A1 + A2 + … + A12)/D, where</P><P>Vd = the average contribution basis per calendar day ...</P><P>A1, A2... = the amount of the contribution basis obtained in the context of employment for the relevant month in the period of 12 calendar months specified in Section 31(1) of the Law on maternity and sickness insurance, except for premiums, bonuses, benefits and other types of compensation which the employer has paid, in accordance with that provided for in the collective work agreement or employment contract, to the person during their temporary incapacity or while the person was on leave relating to the period of pregnancy and on maternity leave, parental leave or unpaid leave for the purpose of looking after a child;</P><P>D = the number of calendar days of the period specified in Section 31(1) of the Law on maternity and sickness insurance, not including therein the calendar days of temporary incapacity for which sickness benefit has been paid, of leave relating to the period of pregnancy and maternity leave, of paternity leave, of unpaid leave for the purpose of looking after a child and of parental leave.<QUOT.END REF.START="QS0005" CODE="2019" ID="QE0005"/></P></ALINEA></QUOT.S></P></NP.ECR></GR.SEQ><GR.SEQ LEVEL="1"><TITLE><TI><P><HT TYPE="BOLD">The dispute in the main proceedings and the question referred for a preliminary ruling</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0006"><NO.P>6</NO.P><TXT>On <DATE ISO="20140102">2 January 2014</DATE>, DW applied to the State Social Insurance Agency for a grant of maternity benefit for the period relating to her pregnancy. On <DATE ISO="20140402">2 April 2014</DATE>, she also applied for a grant of that benefit for the period relating to her maternity leave.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0007"><NO.P>7</NO.P><TXT>The State Social Insurance Agency granted the benefit for the periods from <DATE ISO="20140102">2 January</DATE> to <DATE ISO="20140312">12 March 2014</DATE> and from <DATE ISO="20140313">13 March</DATE> to <DATE ISO="20140521">21 May 2014</DATE>, respectively. The amount of maternity benefit was set at 80% of the average contribution basis per calendar day, which was determined on the basis of the income received by DW in the 12 calendar months from <DATE ISO="20121101">1 November 2012</DATE> to <DATE ISO="20131031">31 October 2013</DATE> and the number of days in that period. Given that during the 12-month reference period DW was employed by an EU institution for 11 months and that she was therefore not registered as an employed worker in Latvia, the State Social Insurance Agency, in accordance with Section 31(6) of the Law on maternity and sickness insurance, set the contribution basis for each of those months at 70% of the average contribution basis in that Member State, namely EUR 395.70. In respect of the month in which DW was registered as an employed worker and paying contributions in Latvia, her effective average contribution basis for that month was taken into account, namely EUR 1 849.73.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0008"><NO.P>8</NO.P><TXT>DW lodged a request seeking recalculation of the amount of her benefit before the administratīvā rajona tiesa (District Administrative Court, Latvia). That court granted her request, on the basis of the provisions of Regulation (EC) No 883/2004 of the European Parliament and of the Council of <DATE ISO="20040429">29 April 2004</DATE> on the coordination of social security systems (<REF.DOC.OJ COLL="L" NO.OJ="166" PAGE.FIRST="1" DATE.PUB="2004">OJ 2004 L 166, p. 1</REF.DOC.OJ>, and Corrigendum <REF.DOC.OJ COLL="L" NO.OJ="200" PAGE.FIRST="1" DATE.PUB="2004">OJ 2004 L 200, p. 1</REF.DOC.OJ>) as well as those of the FEU Treaty on freedom of movement for workers.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0009"><NO.P>9</NO.P><TXT>The appeal lodged by the State Social Insurance Agency was upheld by the Administratīvā apgabaltiesa (Regional Administrative Court, Latvia). That court held that Regulation No 883/2004, which provides for the aggregation of the periods completed for the purpose of acquiring the entitlement to the benefit, did not apply in the present case since Latvian legislation does not require any prior period of insurance in Latvia in order for maternity benefit to be granted. From this the court inferred that the benefit had been calculated correctly in the light of Latvian legislation alone.</TXT></NP.ECR><?PAGE NO="4"?><NP.ECR IDENTIFIER="NP0010"><NO.P>10</NO.P><TXT>DW applied for review of that decision before the Augstākā tiesa (Supreme Court, Latvia) arguing that the provisions relating to the calculation of that benefit are contrary to Articles 45 to 48 TFEU and the Court’s case-law (judgment of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI></REF.DOC.ECR>). According to DW, when calculating the benefit to be granted, periods of insurance completed in the institutions of the European Union should not be taken into account and the amount of the benefit should be added to the amount she would have received had she worked in Latvia during the entire reference period. In DW’s view, that reasoning is supported by the objective of the benefit at issue, namely to improve the maternity benefit of persons who have been in employment while guaranteeing a minimum wage to persons who are out of work.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0011"><NO.P>11</NO.P><TXT>The State Social Insurance Agency, for its part, is of the opinion that the Court’s case-law on the aggregation of periods of activity for the determination of the entitlement to a parental benefit does not apply in the present case, which concerns the calculation of the amount of the maternity benefit.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0012"><NO.P>12</NO.P><TXT>The referring court has doubts as to whether the provisions of Latvian law on the calculation of the amount of the maternity benefit comply with EU law. In that regard, it notes that DW is placed at a disadvantage after exercising her freedom of movement by having decided to work for an EU institution. Indeed, the average contribution basis chosen under Latvian legislation for the 11 months in which DW was employed by an EU institution is considerably less than the basis chosen for the remaining month of work carried out by DW in Latvia. According to the referring court, the method of calculation used to determine the maternity benefit has the effect that, in fact, the amount of that benefit depends on the period of activity of the worker concerned in Latvia.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0013"><NO.P>13</NO.P><TXT>The referring court recalls, in that respect, that under the Court’s case-law such legislation may constitute a barrier to freedom of movement for workers is prohibited under Article 45 TFEU. Such legislation cannot be accepted either in the light of the duty of genuine cooperation and assistance which Member States owe and which finds expression in the obligation laid down in Article 4(3) TEU (judgments of <REF.DOC.ECR><DATE ISO="20041216">16 December 2004</DATE>, <NAME.CASE><HT TYPE="ITALIC">My</HT></NAME.CASE>, <NO.CASE>C‑293/03</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2004:821">EU:C:2004:821</NO.ECLI>, paragraphs <REF.NP.ECR REF="NP0045">45</REF.NP.ECR> to <REF.NP.ECR REF="NP0048">48</REF.NP.ECR></REF.DOC.ECR>; of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI>, paragraphs <REF.NP.ECR REF="NP0016">16</REF.NP.ECR> and <REF.NP.ECR REF="NP0017">17</REF.NP.ECR></REF.DOC.ECR>; and of <REF.DOC.ECR><DATE ISO="20150204">4 February 2015</DATE>, <NAME.CASE><HT TYPE="ITALIC">Melchior</HT></NAME.CASE>, <NO.CASE>C‑647/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2015:54">EU:C:2015:54</NO.ECLI>, paragraphs <REF.NP.ECR REF="NP0026">26</REF.NP.ECR> and <REF.NP.ECR REF="NP0027">27</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0014"><NO.P>14</NO.P><TXT>In those circumstances, the Augstākā Tiesa (Supreme Court) decided to stay the proceedings and to refer the following question to the Court for a preliminary ruling:</TXT><P><QUOT.S LEVEL="1"><P><QUOT.START CODE="2018" REF.END="QE0006" ID="QS0006"/>Must Article 4(3) TEU and Article 45(1) and (2) TFEU be interpreted as not precluding legislation of a Member State such as that at issue in the main proceedings that, for the purposes of determining the amount of a maternity benefit, does not exclude from the 12-month period which is to be used in determining the average contribution basis the months in which the person worked in an EU institution and was covered by the joint insurance scheme of the [European Union], but that, on the grounds that, during that period, the person was not insured in Latvia, equates her income with the average contribution basis in the State, which may substantially reduce the amount of the maternity benefit granted in comparison with the possible amount of the benefit that the person could have received if, during the period under consideration for the purposes of the calculation, she had not worked for an EU institution ... but had been employed in Latvia?<QUOT.END REF.START="QS0006" CODE="2019" ID="QE0006"/></P></QUOT.S></P></NP.ECR></GR.SEQ><GR.SEQ LEVEL="1"><TITLE><TI><P><HT TYPE="BOLD">Consideration of the question referred</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0015"><NO.P>15</NO.P><TXT>By its question, the referring court asks, in essence, whether Article 4(3) TEU and Article 45 TFEU must be interpreted as precluding legislation of a Member State such as that at issue in the main proceedings that, for the purposes of determining the average contribution basis when calculating the amount of maternity benefit, equates the months of the reference period in which the person concerned worked in an EU institution and was not insured in that Member State with a period of unemployment and applies to them the average contribution basis in that Member State, which has<?PAGE NO="5"?> the effect of substantially reducing the amount of the maternity benefit granted to that person in comparison with the amount to which she would have been entitled had she been gainfully employed in that Member State alone.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0016"><NO.P>16</NO.P><TXT>As a preliminary point, it must be borne in mind that, although Member States retain the power to organise their social security schemes, by determining, inter alia, the conditions on which social security benefits are granted, they must nonetheless, when exercising that power, observe EU law and, in particular, the provisions of the Treaty on freedom of movement for workers (see, to that effect, judgments of <REF.DOC.ECR><DATE ISO="20080401">1 April 2008</DATE>, <NAME.CASE><HT TYPE="ITALIC">Government of the French Community and Walloon Government</HT></NAME.CASE>, <NO.CASE>C‑212/06</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2008:178">EU:C:2008:178</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0043">43</REF.NP.ECR></REF.DOC.ECR>; of <REF.DOC.ECR><DATE ISO="20160121">21 January 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Commission</HT> v <HT TYPE="ITALIC">Cyprus</HT></NAME.CASE>, <NO.CASE>C‑515/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:30">EU:C:2016:30</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0038">38</REF.NP.ECR></REF.DOC.ECR>; and of <REF.DOC.ECR><DATE ISO="20161006">6 October 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Adrien and Others</HT></NAME.CASE>, <NO.CASE>C‑466/15</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:749">EU:C:2016:749</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0022">22</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0017"><NO.P>17</NO.P><TXT>It is thus appropriate to ascertain whether the provisions of the Treaty on freedom of movement for workers apply in a situation such as that at issue in the main proceedings. If that is the case, it must then be determined, first, whether national legislation such as that at issue in the main proceedings constitutes an obstacle to the freedom of movement for workers and, secondly, if that is the case, whether that obstacle is justified.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0018"><NO.P>18</NO.P><TXT>With regard, in the first place, to whether the provisions of the Treaty relating to the free movement for workers apply, it is important to recall that it is settled case-law that an EU national who, irrespective of his place of residence and his nationality, exercises the right to freedom of movement for workers and who has been employed in a Member State other than that of origin falls within the scope of Article 45 TFEU (judgments of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Rockler</HT></NAME.CASE>, <NO.CASE>C‑137/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:106">EU:C:2006:106</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0014">14</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0011">11</REF.NP.ECR></REF.DOC.ECR> and the case-law cited).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0019"><NO.P>19</NO.P><TXT>In addition, an EU national working in a Member State other than his State of origin and who has accepted a post in an international organisation also comes within the scope of that provision (see in particular, to that effect, judgments of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Rockler</HT></NAME.CASE>, <NO.CASE>C‑137/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:106">EU:C:2006:106</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0015">15</REF.NP.ECR></REF.DOC.ECR>; of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0012">12</REF.NP.ECR></REF.DOC.ECR> and the case-law cited; and of <REF.DOC.ECR><DATE ISO="20130704">4 July 2013</DATE>, <NAME.CASE><HT TYPE="ITALIC">Gardella</HT></NAME.CASE>, <NO.CASE>C‑233/12</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2013:449">EU:C:2013:449</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0025">25</REF.NP.ECR></REF.DOC.ECR>). Such a national does not lose his status as worker for the purposes of Article 45 TFEU because his post is with an international organisation (judgment of <REF.DOC.ECR><DATE ISO="20130704">4 July 2013</DATE>, <NAME.CASE><HT TYPE="ITALIC">Gardella</HT></NAME.CASE>, <NO.CASE>C‑233/12</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2013:449">EU:C:2013:449</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0026">26</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0020"><NO.P>20</NO.P><TXT>It follows that DW’s situation comes within the scope of Article 45 TFEU.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0021"><NO.P>21</NO.P><TXT>With regard, in the second place, to whether the application of national legislation such as that at issue in the main proceedings constitutes an obstacle to the freedom of movement for workers, it should be observed that the provisions of the Treaty relating to the free movement of persons are intended to facilitate the pursuit by EU citizens of occupational activities of all kinds throughout the European Union, and preclude measures which might place EU citizens at a disadvantage when they wish to pursue an economic activity in the territory of another Member State (judgments of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Rockler</HT></NAME.CASE>, <NO.CASE>C‑137/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:106">EU:C:2006:106</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0017">17</REF.NP.ECR></REF.DOC.ECR>; of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0014">14</REF.NP.ECR></REF.DOC.ECR> and the case-law cited; of <REF.DOC.ECR><DATE ISO="20080401">1 April 2008</DATE>, <NAME.CASE><HT TYPE="ITALIC">Government of the French Community and Walloon Government</HT></NAME.CASE>, <NO.CASE>C‑212/06</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2008:178">EU:C:2008:178</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0044">44</REF.NP.ECR></REF.DOC.ECR>; and of <REF.DOC.ECR><DATE ISO="20160121">21 January 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Commission</HT> v <HT TYPE="ITALIC">Cyprus</HT></NAME.CASE>, <NO.CASE>C‑515/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:30">EU:C:2016:30</NO.ECLI>, point <REF.NP.ECR REF="NP0039">39</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0022"><NO.P>22</NO.P><TXT>Thus, provisions which preclude or deter a national of a Member State from leaving his country of origin to exercise his right to freedom of movement constitute an obstacle to that freedom even if they apply without regard to the nationality of the workers concerned (judgments of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Rockler</HT></NAME.CASE>, <NO.CASE>C‑137/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:106">EU:C:2006:106</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0018">18</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0015">15</REF.NP.ECR></REF.DOC.ECR> and the case-law cited).</TXT></NP.ECR><?PAGE NO="6"?><NP.ECR IDENTIFIER="NP0023"><NO.P>23</NO.P><TXT>Indeed, Articles 45 TFEU is intended in particular to prevent a worker who, by exercising his right of freedom of movement, has been employed in more than one Member State from being treated, without objective justification, less favourably than one who has completed his entire career in only one Member State (see, inter alia, to that effect, judgments of <REF.DOC.ECR><DATE ISO="19910307">7 March 1991</DATE>, <NAME.CASE><HT TYPE="ITALIC">Masgio</HT></NAME.CASE>, <NO.CASE>C‑10/90</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:1991:107">EU:C:1991:107</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0017">17</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20160121">21 January 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Commission</HT> v <HT TYPE="ITALIC">Cyprus</HT></NAME.CASE>, <NO.CASE>C‑515/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:30">EU:C:2016:30</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0042">42</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0024"><NO.P>24</NO.P><TXT>In the present case, it is apparent from the file before the Court that under the applicable national legislation a worker who was not registered as paying State social insurance contributions during the 12-month reference period due to the fact that she worked in an EU institution is equated with a person without an occupation and receives a minimum amount of maternity benefit calculated on the basis of the average contribution in the Member State in question, whereas the maternity benefit of a worker who has carried out her career in that Member State is calculated on the basis of the contributions paid to the State social security system during the reference period.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0025"><NO.P>25</NO.P><TXT>It is important, in that regard, to note that although the applicable national legislation does not, as such, require payment of State social insurance contributions during the reference period as a condition for a maternity benefit to be granted, the fact remains that the application of the rules for calculating the benefit at issue produce a similar result, since the amount of the benefit granted to a worker who was employed by an EU institution is substantially less than that to which she could have been entitled had she worked in the territory of the Member State concerned and contributed to its social security system.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0026"><NO.P>26</NO.P><TXT>The Court has indeed held that national legislation which does not take into account, for the calculation of the amount of parental benefit, periods of employment completed under the Joint Sickness Insurance Scheme of the European Union is likely to dissuade citizens of a Member State from working within an institution of the European Union situated in another Member State since, by accepting employment with such an institution, they lose the right to benefit under the national sickness insurance scheme from family benefits to which they would have been entitled had they not accepted that employment (judgments of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Rockler</HT></NAME.CASE>, <NO.CASE>C‑137/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:106">EU:C:2006:106</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0019">19</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0016">16</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0027"><NO.P>27</NO.P><TXT>It follows that national legislation such as that at issue in the main proceedings constitutes an obstacle to and, therefore, discourages the pursuit of an occupation outside the Member State in question, whether in another Member State or within an EU institution or an international organisation, in so far as, by accepting such a post, a worker who was previously or subsequently insured in the Member State in question receives, under the social security regime of that Member State, a benefit of an amount substantially lower than that to which she would have been entitled had she not exercised her right to free movement.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0028"><NO.P>28</NO.P><TXT>Consequently, such national legislation constitutes an obstacle to the freedom of movement for workers which is, in principle, prohibited by Article 45 TFEU.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0029"><NO.P>29</NO.P><TXT>That finding is not called into question by the Latvian Government’s argument that temporary benefits, like maternity benefits, are not likely to constitute a major obstacle when a worker is deciding whether or not to accept a post within an EU institution or in the territory of a Member State other than that of origin. In that regard, suffice it to note that the question whether or not there is a barrier to freedom of movement for workers is not assessed in the light of the durability of the benefit concerned. In accordance with the Court’s case-law, the articles of the Treaty concerning the free movement of persons are fundamental provisions of the European Union and any restriction, even minor, of that freedom is prohibited (judgment of <REF.DOC.ECR><DATE ISO="20000215">15 February 2000</DATE>, <NAME.CASE><HT TYPE="ITALIC">Commission</HT> v <HT TYPE="ITALIC">France</HT></NAME.CASE>, <NO.CASE>C‑34/98</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2000:84">EU:C:2000:84</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0049">49</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><?PAGE NO="7"?><NP.ECR IDENTIFIER="NP0030"><NO.P>30</NO.P><TXT>In order to provide a comprehensive reply to the referring court, it is appropriate to analyse, in the third place, whether there is any justification for the restriction of the freedom of movement for workers.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0031"><NO.P>31</NO.P><TXT>In that regard, it follows from the Court’s case-law that a measure restricting one of the fundamental freedoms guaranteed by the Treaty may be justified only if it pursues a legitimate objective which is compatible with the Treaty and respects the principle of proportionality. For that to be the case, such a measure must be appropriate for securing the attainment of the objective which it pursues and must not go beyond what is necessary in order to attain it (see, inter alia, judgments of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Rockler</HT></NAME.CASE>, <NO.CASE>C‑137/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:106">EU:C:2006:106</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0022">22</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20060216">16 February 2006</DATE>, <NAME.CASE><HT TYPE="ITALIC">Öberg</HT></NAME.CASE>, <NO.CASE>C‑185/04</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2006:107">EU:C:2006:107</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0019">19</REF.NP.ECR></REF.DOC.ECR> and the case-law cited).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0032"><NO.P>32</NO.P><TXT>The Latvian Government submits in that regard that the national legislation at issue in the main proceedings is based on reasons in the public interest and that the maternity benefit, which relies on the principle of solidarity, was introduced to guarantee the stability of the State social security system. According to the Latvian Government, that system, the self-financing of which is ensured by the direct link between the contributions paid and the maternity benefit granted, supports the improvement of the demographic situation.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0033"><NO.P>33</NO.P><TXT>In that respect, it must be noted that, while reasons of a purely economic nature cannot constitute overriding reasons in the public interest justifying a restriction of a fundamental freedom guaranteed by the Treaty, national legislation may, however, constitute a justified restriction of a fundamental freedom when it is dictated by reasons of an economic nature in the pursuit of an objective in the public interest. Therefore, it is conceivable that the risk of seriously undermining the financial balance of the social security system may constitute an overriding reason in the public interest capable of justifying the undermining of the provisions of the Treaty concerning the right of freedom of movement for workers (judgment of <REF.DOC.ECR><DATE ISO="20160121">21 January 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Commission</HT> v <HT TYPE="ITALIC">Cyprus</HT></NAME.CASE>, <NO.CASE>C‑515/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:30">EU:C:2016:30</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0053">53</REF.NP.ECR></REF.DOC.ECR> and the case-law cited).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0034"><NO.P>34</NO.P><TXT>Nevertheless, according to the settled case-law of the Court, it is for the competent national authorities, where they adopt a measure derogating from a principle enshrined by EU law, to show in each individual case that that measure is appropriate for securing the attainment of the objective relied upon and does not go beyond what is necessary to attain it. The reasons invoked by a Member State by way of justification must thus be accompanied by appropriate evidence or by an analysis of the appropriateness and proportionality of the measure adopted by that State and by specific evidence substantiating its arguments. Such an objective, detailed analysis, supported by figures, must be capable of demonstrating, with solid and consistent data, that there are genuine risks to the balance of the social security system (judgment of <REF.DOC.ECR><DATE ISO="20160121">21 January 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Commission</HT> v <HT TYPE="ITALIC">Cyprus</HT></NAME.CASE>, <NO.CASE>C‑515/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:30">EU:C:2016:30</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0054">54</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0035"><NO.P>35</NO.P><TXT>It must be noted that, in the present case, such an analysis is lacking. In its written observations to the Court, the Latvian Government merely made general statements without providing any specific evidence substantiating its argument that the national legislation at issue in the main proceedings was justified by reasons in the public interest. As to the alleged justification concerning the direct link between the contributions paid and the amount of benefit granted, it cannot be upheld since the grant of the benefit itself is not subject to any obligation to make contributions.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0036"><NO.P>36</NO.P><TXT>Consequently, and in the light of the information contained in the file before the Court, the restriction of the freedom of movement for workers at issue in the main proceedings is not justified.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0037"><NO.P>37</NO.P><TXT>Given that it has been found that the legislation at issue in the main proceedings is incompatible with the principle of freedom of movement for workers guaranteed by Article 45 TFEU, there is no need to rule on the interpretation of Article 4(3) TEU (judgment of <REF.DOC.ECR><DATE ISO="20161006">6 October 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Adrien and Others</HT></NAME.CASE>, <NO.CASE>C‑466/15</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:749">EU:C:2016:749</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0037">37</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><?PAGE NO="8"?><NP.ECR IDENTIFIER="NP0038"><NO.P>38</NO.P><TXT>In the light of all the foregoing, the answer to the question referred is that Article 45 TFEU must be interpreted as precluding legislation of a Member State such as that at issue in the main proceedings that, for the purposes of determining the average contribution basis when calculating the amount of maternity benefit, equates the months of the reference period in which the person concerned worked in an EU institution and was not insured in that Member State with a period of unemployment and applies to them the average contribution basis in that Member State, which has the effect of substantially reducing the amount of the maternity benefit granted to that person in comparison with the amount to which she would have been entitled had she been gainfully employed in that Member State alone.</TXT></NP.ECR></GR.SEQ><GR.SEQ LEVEL="1"><TITLE><TI><P><HT TYPE="BOLD">Costs</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0039"><NO.P>39</NO.P><TXT>Since these proceedings are, for the parties to the main proceedings, a step in the action pending before the national court, the decision on costs is a matter for that court. Costs incurred in submitting observations to the Court, other than the costs of those parties, are not recoverable.</TXT></NP.ECR></GR.SEQ><JURISDICTION><INTRO>On those grounds, the Court (Tenth Chamber) hereby rules:</INTRO><P><HT TYPE="BOLD">Article 45 TFEU must be interpreted as precluding legislation of a Member State such as that at issue in the main proceedings that, for the purposes of determining the average contribution basis when calculating the amount of maternity benefit, equates the months of the reference period in which the person concerned worked in an EU institution and was not insured in that Member State with a period of unemployment and applies to them the average contribution basis in that Member State, which has the effect of substantially reducing the amount of the maternity benefit granted to that person in comparison with the amount to which she would have been entitled had she been gainfully employed in that Member State alone.</HT></P></JURISDICTION></CONTENTS.JUDGMENT><SIGNATURE.CASE><SIGNATORY><P>[Signatures]</P></SIGNATORY></SIGNATURE.CASE></JUDGMENT>