legalitas formal