There are still countries in which epilepsy is seen as an impediment for marriage. India and China are two examples. That is obviously not the case in Spain but if one of the spouses has a seizure during the marriage ceremony (which is very uncommon) that could make the marriage void from a legal point of view.
Adoption and custody of children
Epilepsy can affect the adoption of a child. Firstly, the adoptive parent's ability to look after a child may be questioned. Contrariwise, the adoptive parents may decide to cancel the adoption process if the child has epilepsy.