i'm using TikZ to recreate several graphics as a practice (and because i'm bored). I draw this graph but i need to add a legend for the dotted line (green) and the normal one (black). How can i do that without using PGF Plots? That restriction is only for a personal challenge bc in differents answers here in this site i've found that everyone uses that. I'm just starting to use the TikZ library, i'm a completely noob. Thanks.
Here's my code:
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\draw [<->] (0,4) -- (0,0) -- (4,0);
\draw [dotted, ultra thick, color=darkpastelgreen] (0,3) -- (3,0);
\draw [-] (0,3) -- (3,0);
\node [left] at (0,3) {$100$};
\node [below] at (3,0) {$100$};
\node [below left] at (0,0) {0};
\node [below] at (4,0) {$S_{B}$};
\node [left] at (0,4) {$S_{A}$};
\draw [dashed, color=lightgray] (0,3) -- (3,3) -- (3,0);
\draw[decoration={brace,raise=5pt},decorate]
(0,2.9) -- node[above right=6pt] {Agreement Zone} (2.9,0);
\end{tikzpicture}
\end{figure}
And i want something like this:

Last question: is my code optimal? or I could do it in a more optimal way? I appreciate all kinds of help to improve my graphs.

