European leaders signed off on a Brexit deal on Sunday, which sets out the terms of the U.K.’s divorce from the bloc and seeks to shape the future relationship.

There are two parts: a 585-page withdrawal agreement that is legally binding on both sides and a nonbinding 36-page statement of principles setting out parameters of future trading, economic and security relations.

Both...