/* =========================================================
   Content pages (livewire/other/partials/_legal-page.blade.php):
   heading + CMS content (privacy policy, terms and conditions, terms of use).
   Same colours as the other pages.
   ========================================================= */
.lg-page {
    --lg-ink: #143635;
    --lg-mint: #81FBBF;
    --lg-mint-soft: #EAF7F0;
    --lg-text: #2F3B3A;
    --lg-muted: #5A6766;
    --lg-line: #DCE7E3;
    --lg-line-soft: #E8EFEC;
    font-family: var(--fr-font, 'Open Sans', sans-serif);
    color: var(--lg-text);
    line-height: 1.7;
    background: #FFFFFF;
    padding-bottom: 72px;
}
.lg-page *, .lg-page *::before, .lg-page *::after { box-sizing: border-box; }

/* Same width as the site header (.fr-chrome .auto__container) */
.lg-container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 1180px) { .lg-container { padding-left: 30px; padding-right: 30px; } }
@media (max-width: 750px) { .lg-container { padding-left: 24px; padding-right: 24px; } }

/* ---------- Heading ---------- */
.lg-hero { background: var(--lg-mint-soft); border-bottom: 1px solid #D6EEE2; padding: 48px 0 40px; }
.lg-title { margin: 0; font-size: 40px; font-weight: 800; color: var(--lg-ink); line-height: 1.2; }

/* ---------- Content (whatever the admin entered) ----------
   One standard font and size for everything, whatever was pasted into the editor. */
.lg-doc, .lg-doc * { font-family: var(--fr-font, 'Open Sans', sans-serif) !important; letter-spacing: normal !important; }
.lg-doc span, .lg-doc font { font-size: inherit !important; color: inherit !important; background: none !important; }
.lg-doc div { font-size: 16px; line-height: 1.75; color: var(--lg-text); }
.lg-doc { max-width: none; padding-top: 40px; font-size: 16px; }
.lg-doc > *:first-child { margin-top: 0 !important; }
.lg-doc h1, .lg-doc h2, .lg-doc h3, .lg-doc h4, .lg-doc h5, .lg-doc h6 { font-family: var(--fr-font, 'Open Sans', sans-serif); letter-spacing: 0; text-transform: none; color: var(--lg-ink) !important; }
.lg-doc h1 { margin: 40px 0 14px !important; font-size: 30px !important; font-weight: 800 !important; line-height: 1.25 !important; }
.lg-doc h2 {
    margin: 44px 0 16px !important; padding-bottom: 12px; border-bottom: 2px solid var(--lg-line-soft);
    font-size: 26px !important; font-weight: 800 !important; line-height: 1.3 !important; position: relative;
}
.lg-doc h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--lg-ink); }
.lg-doc h3 { margin: 30px 0 10px !important; font-size: 19px !important; font-weight: 700 !important; line-height: 1.35 !important; }
.lg-doc h4, .lg-doc h5, .lg-doc h6 { margin: 24px 0 8px !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.4 !important; }
.lg-doc h5, .lg-doc h6 { font-size: 16px !important; color: var(--lg-ink) !important; }
.lg-doc h1 b, .lg-doc h2 b, .lg-doc h3 b, .lg-doc h4 b, .lg-doc h1 strong, .lg-doc h2 strong, .lg-doc h3 strong { font-weight: inherit; }
.lg-doc p { margin: 0 0 14px !important; font-size: 16px !important; line-height: 1.75 !important; color: var(--lg-text) !important; }
.lg-doc li p, .lg-doc td p, .lg-doc th p { margin: 0 !important; }
.lg-doc i, .lg-doc em { font-style: italic; }
.lg-doc u { text-decoration: underline; }
.lg-doc b, .lg-doc strong { color: var(--lg-ink); font-weight: 700; }
.lg-doc ul, .lg-doc ol { margin: 0 0 18px !important; padding-left: 0 !important; list-style: none; }
.lg-doc li { position: relative; padding-left: 24px; margin: 0 0 8px; font-size: 16px; line-height: 1.7; color: var(--lg-text); }
.lg-doc ul > li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #2E9E6B; }
.lg-doc ol { counter-reset: lg; }
.lg-doc ol > li { counter-increment: lg; }
.lg-doc ol > li::before { content: counter(lg) '.'; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--lg-ink); }
.lg-doc a { color: var(--lg-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.lg-doc a:hover { color: #2E9E6B; }
.lg-doc hr { border: 0; border-top: 1px solid var(--lg-line-soft); margin: 32px 0; }
.lg-doc img { max-width: 100%; height: auto; border-radius: 12px; }

/* tables: scroll sideways on small screens */
.lg-doc table {
    width: 100% !important; margin: 8px 0 24px; border-collapse: separate; border-spacing: 0; overflow: hidden;
    border: 1px solid var(--lg-line) !important; border-radius: 14px; font-size: 15px;
}
@media (max-width: 750px) {
    .lg-doc table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.lg-doc td, .lg-doc th { padding: 12px 16px !important; border: 0 !important; border-bottom: 1px solid var(--lg-line-soft) !important; text-align: left; vertical-align: top; color: var(--lg-text); min-width: 140px; }
.lg-doc thead td, .lg-doc thead th, .lg-doc th { background: var(--lg-ink); color: #FFFFFF !important; font-weight: 700; }
.lg-doc thead td *, .lg-doc thead th *, .lg-doc th * { color: #FFFFFF !important; }
.lg-doc tbody tr:nth-child(even) td { background: #F7FBF9; }
.lg-doc tbody tr:last-child td { border-bottom: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .lg-hero { padding: 30px 0 26px; }
    .lg-title { font-size: 30px; }
    .lg-doc { padding-top: 28px; }
    .lg-doc h2 { font-size: 22px !important; margin-top: 34px !important; }
    .lg-doc h3 { font-size: 17px !important; }
    .lg-doc p, .lg-doc li { font-size: 15px !important; }
}
