NFU Scotland has called on politicians to safeguard hill farmers and crofters.