Arwen gave up her immortality in The Lord of the Rings in a complex move that puzzles many, but the full explanation is there in the books.
Gandalf and Aragorn met each other several decades before the events of The Lord of the Rings, but they missed some earlier ...