So you knew about the bit that says
Settlements and bare trusts
10 (1) Sub-paragraph (3) applies in relation to a land transaction if—(a) the main subject-matter of the transaction consists of a major interest in one or more dwellings,(b) the purchaser (or one of them) is acting as trustee of a settlement, and(c) under the terms of the settlement a beneficiary will be entitled to—(i) occupy the dwelling or dwellings for life, or(ii) income earned in respect of the dwelling or dwellings.
(2) Sub-paragraph (3) also applies in relation to a land transaction if—(a) the main subject-matter of the transaction consists of a term of years absolute in a dwelling, and(b) the purchaser (or one of them) is acting as a trustee of a bare trust.
(3) Where this sub-paragraph applies in relation to a land transaction the beneficiary of the settlement or bare trust (rather than the trustee) is to be treated for the purposes of this Schedule as the purchaser (or as one of them).
(4) Paragraphs 3(3) and 4 of Schedule 16 (trustees to be treated as the purchaser) have effect subject to sub-paragraph (3).
11 (1) Sub-paragraph (3) applies where—(a) a person is a beneficiary under a settlement,(b) a major interest in a dwelling forms part of the trust property, and(c) under the terms of the settlement, the beneficiary is entitled to—(i) occupy the dwelling for life, or(ii) income earned in respect of the dwelling.
(2) Sub-paragraph (3) also applies where—(a) a person is a beneficiary under a bare trust, and(b) a term of years absolute in a dwelling forms part of the trust property.
(3) Where this sub-paragraph applies—(a) the beneficiary is to be treated for the purposes of this Schedule as holding the interest in the dwelling, and(b) if the trustee of the settlement or bare trust disposes of the interest, the beneficiary is to be treated for the purposes of this Schedule as having disposed of it.
12 (1) This paragraph applies where, by reason of paragraph 10 or 11 or paragraph 3(1) of Schedule 16, the child of a person (“P”) would (but for this paragraph) be treated for the purposes of this Schedule as—(a) being the purchaser in relation to a land transaction,(b) holding an interest in a dwelling, or(c) having disposed of an interest in a dwelling.
(2) Where this paragraph applies—(a) P and any spouse or civil partner of P are to be treated for the purposes of this Schedule as being the purchaser, holding the interest or (as the case may be) having disposed of the interest, and(b) the child is not to be so treated.
(3) But sub-paragraph (2)(a) does not apply in relation to a spouse orcivil partner of P if the two of them are not living together.
(4) Sub-paragraph (3) of paragraph 9 applies for the purposes of thisparagraph as it applies for the purposes of that paragraph.
(5) “Child” means a person under the age of 18.
13 (1) This paragraph applies in relation to a land transaction if—(a) the main subject-matter of the transaction consists of a major interest in one or more dwellings,(b) the purchaser (or one of them) is acting as trustee of a settlement, (c) that purchaser is an individual, and(d) under the terms of the settlement a beneficiary is not entitled to—(i) occupy the dwelling or dwellings for life, or(ii) income earned in respect of the dwelling or dwellings.
(2) In determining whether the transaction falls within paragraph 4 or paragraph 7—(a) if the purchaser mentioned in sub-paragraph (1) is the only purchaser, ignore paragraph (a) of those paragraphs, and(b) if that purchaser is not the only purchaser, ignore paragraph(a) of those paragraphs when having regard to that purchaser.
[2003 Finance Act, Schedule 4ZA, as amended by the Finance Act 2016 and subsequently]