/* ---------------------------------------------------------------------------
   CMS content pages (privacy policy, booking policy, cancellations, terms of service).
   The text is stored in the CMS with the markup it had on the old site
   (secStanderd > Overlay > container > row > col > sec1Box, .whiteBox lists, editor spans).
   The page template already supplies the container/row/column, so flatten the nested
   ones, then give headings, paragraphs and lists proper spacing.

   Apply with class="cms-content" on the page's <section>. Add "cms-content--h2" when the
   stored text uses h2 for its numbered sections (terms of service) instead of h4.
   --------------------------------------------------------------------------- */
.cms-content .col-md-12 .container { max-width: none; padding-left: 0; padding-right: 0; }
.cms-content .col-md-12 .row { margin-left: 0; margin-right: 0; }
.cms-content .col-md-12 .row > [class*="col-"] { padding-left: 0; padding-right: 0; }

.cms-content h1 { font-size: 34px; line-height: 1.25; margin: 0 0 16px; }
.cms-content hr { margin: 0 0 24px; border: 0; border-top: 1px solid #dfe6e1; opacity: 1; }

.cms-content h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 12px; }
.cms-content h3 { font-size: 18px; line-height: 1.35; margin: 26px 0 10px; }
.cms-content h4 { font-size: 22px; line-height: 1.3; margin: 36px 0 12px; }
.cms-content h5 { font-size: 18px; line-height: 1.35; margin: 26px 0 10px; }
.cms-content h6 { font-size: 16px; line-height: 1.4; margin: 20px 0 6px; }
.cms-content--h2 h4 { font-size: 16px; line-height: 1.4; margin: 20px 0 6px; }
.cms-content hr + h2,
.cms-content hr + h4,
.cms-content h1 + h2 { margin-top: 0; }

.cms-content p { margin-bottom: 16px; }

/* Bulleted lists: same green dot as the rest of the site's text pages (.typography .list) */
.cms-content .whiteBox { margin: 0 0 22px; }
.cms-content ul { list-style: none; margin: 0 0 22px; padding: 0; }
.cms-content .whiteBox ul { margin-bottom: 0; }
.cms-content ul li {
    position: relative;
    list-style: none;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 26px;
}
.cms-content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background: #5C8A6B;
}

/* Some stored pages are wrapped in a stray <ol><li> (editor leftover) that indents everything and adds a "1." marker */
.cms-content ol:has(> li > section) { list-style: none; margin: 0; padding: 0; }
.cms-content ol:has(> li > section) > li { list-style: none; padding: 0; margin: 0; }
.cms-content ol:has(> li > section) > li::before { content: none; }
