On Steam, and it costs nothing — Team Fortress 2 is free to all users.
Install the Steam client, search for the title and add it to your library.