/**
 * Loaded only on guest marketing pages (sites/guest/partial/header.php), after guest-sites-inline.css.
 * Restores normal document scroll and full-width body when merged CSS from other templates
 * would otherwise apply global body rules to this shell.
 */

html.dark-mode body.guest-site,
html.light-mode body.guest-site {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html.dark-mode body.guest-site {
    background: #09090d !important;
    color: #fff;
}

html.light-mode body.guest-site {
    background: #fff !important;
    color: #000;
}

body.guest-site .main-wrpper {
    overflow: visible !important;
    height: auto;
    min-height: 0;
    width: 100%;
    max-width: none;
}

html.light-mode body.guest-site .tab-informetion .slider-box,
html.light-mode body.guest-site .publish-slider .slider-box {
    border-radius: 20px;
}

html.light-mode body.guest-site .tab-informetion img.light-main-img,
html.light-mode body.guest-site .publish-slider .slider-box img {
    border-radius: 20px;
}

/* Do not override #sliderDesktop / .publish-wrp / .slider-nav / .slider-for here.
   Those use the same rules as production (home_style.css + Slick). Earlier tweaks
   (align-items, z-index, margin-right: 0 on .slider-nav) broke the two-column layout. */

/* Legal / policy long-form pages (tos, privacy, anti-fraud) */
body.guest-site.guest-policy-page section.guest-policy-content {
    padding-bottom: 2rem;
}

/* Prose wrapper: overrides light-style / dark-style .article-block p, li (low-contrast #555 / faded) */
html.light-mode body.guest-site.guest-policy-page .guest-policy-content .policy-prose {
    --policy-body: #2c2f36;
    --policy-heading: #0d0d12;
    --policy-muted: #5c5f6a;
    --policy-link: #b80024;
    --policy-link-hover: #8c001b;
    --policy-toc-bg: #f0f1f4;
    --policy-toc-border: #e0e2e8;
}

html.dark-mode body.guest-site.guest-policy-page .guest-policy-content .policy-prose {
    --policy-body: rgba(255, 255, 255, 0.9);
    --policy-heading: #ffffff;
    --policy-muted: rgba(255, 255, 255, 0.62);
    --policy-link: #ff7a8c;
    --policy-link-hover: #ffb3bd;
    --policy-toc-bg: rgba(255, 255, 255, 0.05);
    --policy-toc-border: rgba(255, 255, 255, 0.12);
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose p,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose li,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose td {
    color: var(--policy-body);
    line-height: 1.7;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose h1,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose h2,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose h3,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose h4,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose h5 {
    color: var(--policy-heading);
    font-weight: 600;
    line-height: 1.35;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose h2 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose h5 {
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose p {
    margin-bottom: 0.85rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose p:last-child {
    margin-bottom: 0;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose b,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose strong {
    color: var(--policy-heading);
    font-weight: 600;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose ul,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose ol {
    margin-top: 0.35rem;
    margin-bottom: 1rem;
    padding-left: 1.35rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose ul {
    list-style-type: disc;
    list-style-position: outside;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose ol {
    list-style-type: decimal;
    list-style-position: outside;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose > h2:first-child,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose > h3:first-child {
    margin-top: 0;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose ul ul,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose ol ol,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose ul ol,
body.guest-site.guest-policy-page .guest-policy-content .policy-prose ol ul {
    margin-bottom: 0.5rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose li {
    margin-bottom: 0.4rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose li > h4 {
    margin-top: 0.35rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose a {
    color: var(--policy-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 500;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-prose a:hover {
    color: var(--policy-link-hover);
}

/* Table of contents */
body.guest-site.guest-policy-page .guest-policy-content .policy-toc {
    margin-bottom: 1.75rem;
    padding: 1.15rem 1.35rem;
    border-radius: 8px;
    background: var(--policy-toc-bg);
    border: 1px solid var(--policy-toc-border);
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-heading {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-root {
    margin: 0;
    padding-left: 1.35rem;
    list-style-type: decimal;
    list-style-position: outside;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-root > li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-root > li > a {
    text-decoration: none;
    font-weight: 600;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-root > li > a:hover {
    text-decoration: underline;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-sub {
    margin: 0.45rem 0 0.65rem;
    padding-left: 1.25rem;
    list-style-type: disc;
    list-style-position: outside;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-sub li {
    margin-bottom: 0.25rem;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-sub a {
    font-weight: 500;
    text-decoration: none;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc .policy-toc-sub a:hover {
    text-decoration: underline;
}

body.guest-site.guest-policy-page .guest-policy-content .policy-toc a strong {
    font-weight: inherit;
    color: inherit;
}

/* Page title row (outside .policy-prose): subtitle legibility */
html.light-mode body.guest-site.guest-policy-page .guest-policy-content .blogpost.article-block .text-muted {
    color: #5c5f6a !important;
}

html.dark-mode body.guest-site.guest-policy-page .guest-policy-content .blogpost.article-block .text-muted {
    color: rgba(255, 255, 255, 0.62) !important;
}

html.light-mode body.guest-site.guest-policy-page .guest-policy-content .blogpost.article-block h1 {
    color: #0d0d12;
}

html.dark-mode body.guest-site.guest-policy-page .guest-policy-content .blogpost.article-block h1 {
    color: #fff;
}
