Well copyright law isnt about preventing others from playing the music, its there to pay proper dues to the composers. I dont see annissue with Spain. Corea stands on the shoulders of Rodrigo, but also pays proper dues. By using the second movement from the concerto as an intro, he probably reports it as a cover at every gig he plays it.
What Corea in fact uses is the chord sequence, for the improvisation section in Spain, and that is perfectly fine with copyright law. Of course, doing that also plays with at least some of the melody notes, allthough not in the same order, so I think that is why Corea put so much emphasis on using that section from Rodrigos composition as an intro. He pays proper dues to the composer that inspired his work. That is how music is supposed to work, imo.
We had Spain on the set list when I played in a local jazz band about 20 years ago. I remember I could never get it quite right, and even though I like listening to it, I had difficulties to bond with the song playing it myself.. Oh well, I guess it was written for keys anyways
Heres the sheet and some musicol notes..
https://www.theatlantic.com/entertainme ... in/248948/