The electronic signature has the same legal value as the handwritten signature.
The signature itself is included in the signed document, and any subsequent modification of the document will be detected when the document is opened: a red cross indicating an error will make the problem immediately apparent.
Only electronic versions (original documents) are legally binding. This is why it is recommended to archive them in their original electronic format.