/* POLICY AND TERMS PAGES: one top and bottom space for every document (Adam, 19 Sep 2026: "all the
   places you view docs like terms and other policies always have appropriate margins (not tiny or
   too large!)"). Measured before this: tops from 1px to 31px and bottoms from 9px to 39px across
   the terms, privacy, acceptable use, cookies, online safety and review policy pages, because each
   page's own first and last elements carried their own margins (margin-top-sm, margin-top-big,
   inline cm margins in the terms).

   HOW: the page wraps its whole content in .legal-doc, which holds the space as PADDING, and the
   first-element chain and last-element chain inside it lose their own outer margins - so the space
   is the same number on every page whatever markup it starts and ends with. The chains skip a
   leading <style> block, because the terms and privacy pages start their content with one, and go
   10 deep because the terms end inside ol > li > ol > li > p. A last <p> also loses its padding:
   `.row p` gives every paragraph in a row an 8px padding-bottom, which added to the bottom only.

   THE POPUP GETS ITS OWN, SMALLER NUMBER. LMM opens the terms in a popup from its forms
   (js/lmm/popup.js), which loads only the CHILDREN of #modalContent - so .legal-doc never reaches
   it, which is what lets the page have 30px without the popup inheriting it. The old fix was a
   tiny margin on the page precisely because page and popup shared it. popup.js now marks its body
   .legal-doc-modal and links this sheet, and the popup gets 20px under its own header instead of
   15px on top and 30px at the bottom (measured 19 Sep 2026). */
.legal-doc {
	padding-top: 30px;
	padding-bottom: 30px;
}
.modal-body.legal-doc-modal {
	padding-top: 20px;
	padding-bottom: 20px;
}
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *),
.legal-doc-modal > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) > :is(:first-child, style:first-child + *, style:first-child + style + *) {
	margin-top: 0 !important;
}
.legal-doc > :last-child,
.legal-doc > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child,
.legal-doc-modal > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child {
	margin-bottom: 0 !important;
}
.legal-doc > p:last-child,
.legal-doc > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc-modal > p:last-child,
.legal-doc-modal > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child,
.legal-doc-modal > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > :last-child > p:last-child {
	padding-bottom: 0 !important;
}
