Spirits' fundamental concepts are formed by rumors, legends, or stories. Magic is something produced as an energy source, and both are different things. Here, 'magic' refers to magical phenomena, not the literal magic that characters use to perform certain actions. Also, there is no need for a direct statement that stories are made up of information—it is common sense that rumors, legends, and stories are of the same kind. All that matters is if those things are acting as a fundamental basic for the characters which here does.