The CIA is exempt from Freedom of Information. They don't just hand out classified information because someone asks for it.
The FBI has no power over the CIA.
It is entirely legal for the CIA to operate in the US.
Their remit is to collect, evaluate, and disseminate vital information to safeguard national security. While they are focused on threats from abroad, they have the power to act domestically if the threat originates from abroad.