the distinction here is about where meaning comes from (linguistic structure vs. contextual interaction, as in pragmatics). semantics looks at the meaning derived strictly from linguistic structures, grammar, and vocabulary, independent of context.
not literal as in the literal vs. figurative distinction.