Probation lasts up to six months if it is written into the contract. After that, dismissal needs one of four lawful grounds, a written warning with eight days to respond where relevant, and a written decision, with notice of 15, 30 or 45 days by length of service. A dismissal without this procedure is unlawful, and the court can order reinstatement and back pay of up to 18 months. Severance applies to economic dismissals.