Macdonald’s theorem for quadratic Jordan algebras