In geology, which of the following statements accurately describes magma?
A) Magma is molten rock located beneath the Earth's surface that cools and solidifies to form igneous rocks when it reaches the surface.
B) Magma is a type of sedimentary rock formed by the compression of organic materials over time.
C) Magma is a gas that is released during volcanic eruptions and is responsible for the formation of atmospheric layers.
D) Magma is a form of liquid water found in deep ocean trenches that contributes to marine biodiversity.