The Spanish government published official guidance outlining three options for foreign nationals who want to live in the country. See the details here.