¿Es legal el convenio celebrado ante notario?