You should have a check engine light on. Have someone pull the codes and wright them down. You might see something like P0720 and more.
Do you have a volt-ohm meter?
First step. On top of the bellhousing are two large connectors 12 and 16 pins for the tranny. Unplug them and look for corrosion on the pins. If they are clean, reconnect them and go for a ride and see if you still have symptoms.
Go to the following web site and download the Factory Service Manual for your 97 Legacy. Click the link and then click the link for the manual and a new page will open. Click the big green download button. Another page will start to open with an add, click the X to close that page. Then follow through on the download bar at the bottom of the screen to save or save as.
This will get the whole FSM in a Zip file. Extract it to a new empty folder and look it over.
https://sl-i.net/FORUM/showthread.php?18087-Subaru-Factory-Service-Manuals-
Go to this section - Legacy 1997\Diagnostics Section\On-Board Diagnostics II System
Open this pdf file - Diagnostics Diagnostic Chart with Trouble Code for LHD Vehicles.pdf
Go to page 311, it is over half way down the document. The next page for P0720 describes one of your symptoms "excessive tight corner “braking”". That could also be the CV joints.
Once you have the DTC trouble codes those pages will guide you on what to check using an Ohm meter or Volt meter. You will see Connector B11 in the wiring and lower on the page will be a picture of the connector showing pin numbers. That connector is the 16 pin connector you looked at earlier.
You can go to the wiring diagram and look at the Harness pages to see where a connector number is located in the vehicle.
A printer will be very helpful to print just the pages you need.