Designing carbon taxes: economic and legal considerations