/* Terms print, page-based (Adam 2026-11-18). Terms page only; on-screen look unchanged. v4 rules stay; this only changes what is below. */
@page terms { size: letter portrait; margin: 0.5in; }
html body.cms-terms-and-conditions { page: terms; }

/* section 13 flows straight after section 12 instead of starting a new page */
html:not([data-cyb-print]) body.cms-terms-and-conditions .cyt .sec#warranty-by-product:has(.tw):not(:first-child) { break-before: auto; page-break-before: auto; }
/* its table may split between rows, repeats its header on each page, and never splits a row */
html body.cms-terms-and-conditions .cyt #warranty-by-product .tw,
html body.cms-terms-and-conditions .cyt #warranty-by-product table { break-inside: auto; page-break-inside: auto; }
html body.cms-terms-and-conditions .cyt #warranty-by-product thead { display: table-header-group !important; }
html body.cms-terms-and-conditions .cyt #warranty-by-product tr { break-inside: avoid; page-break-inside: avoid; }
/* the paid-plan note and the other short notes stay whole */
html body.cms-terms-and-conditions .cyt #warranty-by-product p { break-inside: avoid; page-break-inside: avoid; orphans: 3; widows: 3; }
/* headings never sit alone at the bottom */
html body.cms-terms-and-conditions .cyt :is(h2, h3, h4) { break-after: avoid; page-break-after: avoid; }
/* grey link-style call button prints as plain text */
html body.cms-terms-and-conditions .cyt a.call { color: #000 !important; font-weight: 700 !important; }
/* section 8 (overclocking) flows after section 7 instead of always starting a new page; its tables stay whole */
html:not([data-cyb-print]) body.cms-terms-and-conditions .cyt .sec:has(.tw):not(#warranty-by-product):not(:first-child) { break-before: auto; page-break-before: auto; }
html body.cms-terms-and-conditions .cyt .sec h3.sub:has(+ p + .tw) { break-before: auto; page-break-before: auto; }
/* never strand 1 or 2 rows of the section 13 table alone: first 2 and last 3 rows stay together with their neighbours */
html body.cms-terms-and-conditions .cyt #warranty-by-product tbody tr:nth-child(2),
html body.cms-terms-and-conditions .cyt #warranty-by-product tbody tr:nth-last-child(-n+2) { break-before: avoid; page-break-before: avoid; }
/* an intro line before a table stays with the table (so "Fan cooler or water cooler: which is better?" is not left alone) */
html body.cms-terms-and-conditions .cyt :is(h3.sub, p):has(+ .tw), html body.cms-terms-and-conditions .cyt h3.sub:has(+ p + .tw), html body.cms-terms-and-conditions .cyt h3.sub:has(+ p + .tw) + p { break-after: avoid; page-break-after: avoid; }
