Any EU treaty may start over the port wine by those jowly old white men, but then it is sent to committees, 50% of which are chaired by women, then it goes to the professional draftsman..a significant fraction of whome are female lawyers, it then needs to be debated by the Commissioners,then when they are happy, it goes to the EU Parliament, 36.1% are female,. At that stage, and depending on how it affects constitutional status, may be subject to a referendum in some member states. In any event, before it becomes law , it is debated in the National Assemblies of each of the 27 / 28 individual states.
So where is the democratic deficit?.