European Council President Donald Tusk, left, shakes hands with European Union chief Brexit negotiator Michel Barnier during a media conference at the conclusion of an EU summit in Brussels, Sunday, Nov. 25, 2018. European Union gathered Sunday to seal an agreement on Britain's departure from the bloc next year, the first time a member country will have left the 28-nation bloc. (AP Photo/Geert Vanden Wijngaert)

European Council President Donald Tusk, left, shakes hands with European Union chief Brexit negotiator Michel Barnier during a media conference at the conclusion of an EU summit in Brussels, Sunday, Nov. 25, 2018. European Union gathered Sunday to seal an agreement on Britain's departure from the bloc next year, the first time a member country will have left the 28-nation bloc. (AP Photo/Geert Vanden Wijngaert)

BRUSSELS (AP) — The European Union has formally approved a divorce agreement with Britain, the first country ever to leave the 28-nation bloc. The deal consists of a legally binding withdrawal agreement that runs more than 580 pages, and a 26-page political declaration on future relations.

Some key points:

WITHDRAWAL AGREEMENT

Transition period: Britain will leave the EU on March 29 but remain inside the bloc’s single market and be bound by its rules until the end of December 2020, while the two sides work out a new trade relationship. The transition period can be extended for up to two years before July 1, 2020, if both parties decide more time is needed.

ADVERTISEMENT

Irish border: The deal commits the two sides to a “backstop” solution to guarantee the border between EU member Ireland and the U.K.’s Northern Ireland remains free of customs posts or other obstacles. It keeps the U.K. in a customs arrangement with the EU, and will last until superseded by permanent new trade arrangements. Both sides say they hope to have a new deal in place by the end of 2020, so the backstop is never needed.

Divorce bill: Britain agrees to pay about 39 billion pounds ($50 billion) to cover contributions to staff pensions and commitments to EU programs the U.K. made while a member for the funding period that runs to 2020.

Citizens’ rights: EU citizens living in Britain, and Britons elsewhere in the bloc, will continue to have the rights to live and work.

___

POLITICAL DECLARATION

The two sides commit to “an ambitious, broad, deep and flexible partnership across trade and economic cooperation, law enforcement and criminal justice, foreign policy, security and defense and wider areas of cooperation.” But many of the details will only be worked out after Britain leaves the EU on March 29.

Trade: Britain and the EU seek a “comprehensive” economic relationship, including a free-trade area. There will be common customs arrangements to provide tariff-free trade, and the two sides commit to “build and improve on” the temporary single customs territory set out in the withdrawal agreement.

The U.K. “will consider aligning with Union rules in relevant areas” to ensure a friction-free economic relationship. But the document acknowledges that closeness will be limited by the EU’s need to protect the integrity of its single market, and by Britain’s desire for an independent trade policy.

Irish border: Britain and the EU commit to replacing the “backstop” with a permanent solution “that establishes alternative arrangements for ensuring the absence of a hard border on the island of Ireland.” This could include as-yet undeveloped technological solutions.

ADVERTISEMENT

Financial services: The two sides should explore whether they can declare the other’s regulatory regimes “equivalent” in order to facilitate cross-border financial services. They should aim to conclude their assessments by the end of June 2020.

Fishing: One of the most contentious issues — who has access to U.K. and EU territorial waters — is deferred. The declaration says only that the two sides should “establish a new fisheries agreement,” ideally by July 1, 2020.

Security: The two sides will try to maintain law-enforcement cooperation at the same level as now, “as far as is technically and legally possible.” There should be “timely exchanges of intelligence and sensitive information between the relevant Union bodies and the United Kingdom authorities.”

Travel: Citizens of the U.K. and the EU will not need visas for short visits.

___

NEXT STEP

British Parliament: The biggest hurdle to implementing the agreement reached Sunday will be the upcoming vote in Britain’s Parliament. That vote is expected before Christmas and will likely be preceded by days of impassioned debate in the House of Commons.

Prime Minister Theresa May is lobbying hard for passage, but she faces an uphill battle in Parliament in part because her own Conservative Party contains a group of disgruntled legislators who say they will oppose the deal.

The leader of the Democratic Unionist Party, which usually supports the government, is also opposed to the deal, as are the leaders of the main opposition Labour Party and the much smaller Liberal Democrats.

May has several weeks to muster support. European leaders are adamant that they will not make further concessions to make it easier for her to gain Parliament’s approval.