I am looking to create a legal database of contracts one that will allow the end user to enter specific information and at the end of all of the questioning the system will generate a finished document.

What kind of codes are used ? Is their a particular host I should use such as wordpress, joomla, etc or is there a theme already available for purchase?

Would it be easier to just buy the modules or should I learn to develop them on my own? And if I should buy them how much should I pay for them (Ballpark Figure) ?

I really appreciate any help I receive, And I am also sorry if my questions sound somewhat perplexed.

Thank You