/* ==========================================================================
   Divi 5 compatibility layer
   Neutralises Divi's default section/row/module spacing for BPS sections
   (every BPS section carries the classes bps-sec / bps-row / bps-col /
   bps-mod; :has() is a fallback if those classes are removed) and resets
   Divi's global typography so the design system wins.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;600;700&family=Geist:wght@400;500;600&display=swap");

body.bps-site { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--body); background: var(--bg); font-weight: 400; }
body.bps-site #page-container,
body.bps-site #et-main-area,
body.bps-site #main-content { background: var(--bg); padding-top: 0 !important; margin-top: 0 !important; }
body.bps-site #main-content .container:before { display: none; }

/* Typography resets (Divi sets padding-bottom, weight, colour and 1em line-height) */
body.bps-site h1, body.bps-site h2, body.bps-site h3, body.bps-site h4, body.bps-site h5, body.bps-site h6 { font-family: var(--font-head); color: var(--ink); padding-bottom: 0; font-weight: 600; line-height: 1.1; }
body.bps-site p { padding-bottom: 0; }
body.bps-site a { color: var(--purple-ink); }
body.bps-site a.btn--primary, body.bps-site a.btn--primary:hover { color: #fff; }
body.bps-site a.btn--ghost { color: var(--ink); }
body.bps-site a.btn--lime, body.bps-site a.btn--lime:hover { color: var(--ink); }
body.bps-site a.btn--glass, body.bps-site a.btn--glass:hover { color: #fff; }
body.bps-site .site-footer__bottom a { color: var(--ink); }
body.bps-site .insight-card__title a, body.bps-site .solution-card__title a { color: var(--ink); }
body.bps-site .cta-banner__title, body.bps-site .signup-banner__title, body.bps-site .tier--prime .tier__title,
body.bps-site .section--dark h2, body.bps-site .section--dark h3, body.bps-site .closing-bar__title { color: #fff; }
body.bps-site strong { font-weight: 600; }

/* Lists inside BPS sections are all styled components */
body.bps-site .bps-mod ul, body.bps-site .bps-mod ol,
body.bps-site .site-header ul, body.bps-site .site-footer ul { list-style: none; padding: 0; line-height: inherit; }
body.bps-site .tags { margin: 0 0 20px; }

/* Divi section / row / column / module spacing */
body.bps-site .et_pb_section.bps-sec,
body.bps-site .et_pb_section:has(> .et_pb_row .bps-mod),
body.bps-site .et_pb_section:has(.bps-container) { padding: 0 !important; background-color: transparent; }
body.bps-site .et_pb_row.bps-row,
body.bps-site .et_pb_row:has(.bps-mod),
body.bps-site .et_pb_row:has(.bps-container) { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; display: flow-root; }
body.bps-site .et_pb_column.bps-col,
body.bps-site .et_pb_row:has(.bps-container) > .et_pb_column { width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; flex: 1 1 100%; }
body.bps-site .et_pb_module.bps-mod,
body.bps-site .et_pb_text:has(.bps-container) { margin: 0 !important; padding: 0 !important; font-size: inherit; line-height: inherit; }
body.bps-site .et_pb_text_inner > *:last-child { margin-bottom: 0; }
body.bps-site .et_pb_text_inner { overflow: visible; }

/* Forms: Divi styles inputs in some contexts */
body.bps-site .field input, body.bps-site .field select, body.bps-site .field textarea { font-family: var(--font-body); box-shadow: none; }

/* Entry content tables/lists/quotes on PHP templates (posts, policies) */
body.bps-site .entry-content blockquote { border-left: 0; }
body.bps-site .entry-content table, body.bps-site .entry-content tr td, body.bps-site .entry-content tr th { border-color: var(--line); }
body.bps-site .entry-content tr td, body.bps-site .entry-content tr th { padding: 14px 16px; }
body.bps-site .entry-content ul { line-height: inherit; padding-bottom: 0; }
body.bps-site .entry-content ul.checklist, body.bps-site .entry-content ul.flow { padding-left: 26px; }
body.bps-site .entry-content ul.flow { padding-left: 0; }
body.bps-site .marquee__list { padding: 0 8px; }

/* Header / footer link colours (override the global link colour above) */
body.bps-site .nav__list a, body.bps-site .site-nav__login, body.bps-site .footer__links a, body.bps-site .socials a,
body.bps-site .contact__email, body.bps-site .site-footer__email, body.bps-site .other-policies a, body.bps-site .toc a { color: var(--ink-2); }
body.bps-site .nav__list a:hover, body.bps-site .footer__links a:hover, body.bps-site .toc a:hover { color: var(--purple); }
body.bps-site .socials a:hover { color: #fff; }
body.bps-site .toc a.is-active { color: var(--purple-ink); }
body.bps-site .site-logo, body.bps-site .site-logo:hover { color: var(--purple); }

/* ==========================================================================
   Site header matched to the reference (bps-website-redesign.vercel.app):
   103px tall, logo 120x37 at 25px/33px, centred nav, actions 25px from the right.
   ========================================================================== */
:root { --header-h: 103px; }
body #bpsr { --sh-h: 103px; --header-h: 103px; }
body.bps-site .site-header {
	background: rgb(253 252 255 / .86);
	-webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
	border-bottom: 1px solid #EAECF0;
	font-family: "Arimo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.bps-site .site-header__inner { position: static; height: 103px; max-width: none; padding: 0 25px; gap: 16px; }
body.bps-site .site-header .site-logo { position: absolute; left: 25px; top: 33px; display: block; line-height: 0; }
body.bps-site .site-header .site-logo__img { display: block; width: 120px; height: 37px; max-height: none; object-fit: contain; object-position: left center; }

@media (min-width: 1025px) {
	body.bps-site .site-nav { flex: 1; justify-content: center; }
	body.bps-site .nav__list { gap: 4px; margin: 0 auto; }
	body.bps-site .nav__list a { padding: 8px 12px; font: 600 15px/24px "Arimo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #344054; transition: color .2s; }
	body.bps-site .nav__list a::after { left: 12px; right: 12px; bottom: 3px; border-radius: 2px; background: #4E29A5; transition: transform .4s cubic-bezier(.16,1,.3,1); }
	body.bps-site .nav__list a:hover,
	body.bps-site .nav__list .current-menu-item > a,
	body.bps-site .nav__list .current-menu-ancestor > a,
	body.bps-site .nav__list .current_page_parent > a,
	body.bps-site .nav__list .current-page-ancestor > a { color: #150F2B; }
	body.bps-site .site-nav__actions { position: absolute; right: 25px; top: 51.5px; transform: translateY(-50%); gap: 8px; }
	body.bps-site .site-nav__login { padding: 8px 12px; font: 600 15px/24px "Arimo", ui-sans-serif, system-ui, sans-serif; color: #344054; transition: color .2s; }
	body.bps-site .site-nav__login:hover { color: #402287; }
	body.bps-site .site-nav__actions .btn {
		display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
		border: 0; border-radius: 8px; font: 600 15px/1 "Arimo", ui-sans-serif, system-ui, sans-serif; white-space: nowrap;
		background: #4E29A5; color: #fff;
		box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset, 0 -2px 0 0 rgba(0,0,0,.05) inset, 0 1px 2px rgba(0,0,0,.05);
		transition: background-color .2s, transform .2s cubic-bezier(.16,1,.3,1);
	}
	body.bps-site .site-nav__actions .btn:hover { background: #402287; color: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset, 0 -2px 0 0 rgba(0,0,0,.05) inset, 0 1px 2px rgba(0,0,0,.05); }
	body.bps-site .site-nav__actions .btn:active { transform: translateY(1px); }
}

@media (max-width: 1024px) {
	body.bps-site .nav-toggle { position: absolute; right: 12px; top: 51.5px; transform: translateY(-50%); display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0; color: #150F2B; }
	body.bps-site .nav-toggle svg { width: 28px; height: 28px; }
	body.bps-site .site-nav { inset: 103px 0 0 0; background: #FDFCFF; }
	.admin-bar.bps-site .site-nav { top: calc(103px + 46px); }
	body.bps-site .nav__list a { font: 500 24px/1.25 "Geist", "Arimo", ui-sans-serif, sans-serif; letter-spacing: -.02em; color: #150F2B; border-bottom-color: #EAECF0; }
	body.bps-site .site-nav__actions .btn { height: 48px; border-radius: 8px; background: #4E29A5; color: #fff; font: 600 16px/1 "Arimo", ui-sans-serif, sans-serif; }
	body.bps-site .site-nav__login { border-radius: 8px; border-color: #D0D5DD; color: #344054; font: 600 16px/1 "Arimo", ui-sans-serif, sans-serif; }
}
/* The header's backdrop blur makes it the containing block for the fixed mobile menu; drop it while the menu is open */
@media (max-width: 1024px) {
	.nav-open .site-header, .site-header.nav-open, body.bps-site.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #FDFCFF; }
}
@media (max-width: 1024px) {
	body.bps-site .site-header .site-nav { position: absolute; top: 103px; right: 0; bottom: auto; left: 0; height: calc(100vh - 103px); height: calc(100dvh - 103px); }
	.admin-bar.bps-site .site-header .site-nav { top: 103px; height: calc(100vh - 103px - 46px); }
}

/* ==========================================================================
   Policy pages (templates/policy.php) matched to the reference
   bps-website-redesign.vercel.app/privacy-policy
   ========================================================================== */

/* Banner */
html:has(.policy) h1 { font-family: "Geist", "Arimo", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: #150F2B; margin: 0; }
html:has(.policy) :has(> h1) > p:first-child { margin: 0; font: 400 16px/1.6 "Arimo", ui-sans-serif, system-ui, sans-serif; color: #475467; }
html .meta-pills { gap: .5rem; margin-top: 1.75rem; }
html .meta-pills li { display: inline-flex; align-items: center; height: 30px; padding: 0 .75rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #EAECF0; font: 600 .8125rem/1 "Arimo", ui-sans-serif, system-ui, sans-serif; color: #475467; font-variant-numeric: tabular-nums; }

/* Layout: contents column + readable text column */
html .policy { grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); justify-content: start; align-items: start !important; gap: clamp(2.5rem, 6vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4.5rem) !important; padding-bottom: clamp(4.5rem, 3rem + 6vw, 8.5rem) !important; margin-top: 0 !important; font-family: "Arimo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
html .policy__body { max-width: 46rem; }
html .policy > *:first-child, html .policy .toc { align-self: start; margin-top: 0 !important; }

/* Divi wrappers inside the policy text add their own padding; remove it */
html .policy .et_pb_section,
html .policy .et_pb_row,
html .policy .et_pb_column,
html .policy .et_pb_module,
html .policy .et_pb_text { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; float: none !important; background: none !important; min-height: 0 !important; }
html .policy .et_pb_row::after, html .policy .et_pb_section::after { display: none; }

/* Contents list */
html .policy .toc { top: calc(103px + 1.5rem); max-height: calc(100vh - 103px - 3rem); overflow: auto; }
html .policy .toc__label { margin: 0; font: 700 .75rem/1.5 "Arimo", ui-sans-serif, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #667085; }
html .policy .toc ul, html .policy .toc ol { margin: .875rem 0 0; padding: 0; list-style: none; border-left: 1px solid #EAECF0; }
html .policy .toc li { margin: 0; padding: 0; }
html .policy .toc a { display: block; margin-left: -1px; padding: .4rem 0 .4rem 1rem; border-left: 2px solid transparent; font: 400 .9375rem/1.35 "Arimo", ui-sans-serif, system-ui, sans-serif; color: #475467; transition: color .2s, border-color .2s; }
html .policy .toc a:hover { color: #150F2B; }
html .policy .toc a.is-active, html .policy .toc a[aria-current] { border-color: #4E29A5; color: #402287; font-weight: 600; }

/* Policy text */
html .policy .entry-content,
html .policy .entry-content--policy,
html .policy .et_pb_text_inner { font: 400 1.0625rem/1.75 "Arimo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #344054; }
html .policy .entry-content p,
html .policy .et_pb_text_inner p { margin: 1.125rem 0 0; padding: 0; font-size: 1.0625rem; line-height: 1.75; color: #344054; }
html .policy .entry-content h2,
html .policy .et_pb_text_inner h2 { margin: 3rem 0 0; padding: 0; font-family: "Geist", "Arimo", ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; color: #150F2B; scroll-margin-top: calc(103px + 1.5rem); }
html .policy .entry-content h2:first-child,
html .policy .et_pb_text_inner > h2:first-child { margin-top: 0; }
html .policy .entry-content h2 + p,
html .policy .et_pb_text_inner h2 + p { margin-top: .875rem; }
html .policy .entry-content strong { font-weight: 600; color: #150F2B; }
html .policy .entry-content a:not(.other-policies a) { color: #4E29A5; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Other policies */
html .other-policies { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid #EAECF0; }
html .other-policies__label, html .other-policies > p:first-child { margin: 0; font: 700 .75rem/1.5 "Arimo", ui-sans-serif, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #667085; }
html .other-policies ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
html .other-policies li { position: relative; display: flex; align-items: center; gap: 0; margin: 0; padding-left: 1.5rem; }
html .other-policies li::before { content: ""; position: absolute; left: .25rem; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #7FAE00; }
html .other-policies a { display: inline-flex; align-items: center; height: 38px; padding: 0 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px #EAECF0; font: 600 .9375rem/1 "Arimo", ui-sans-serif, system-ui, sans-serif; color: #344054; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s, box-shadow .2s; }
html .other-policies a:hover { color: #402287; box-shadow: inset 0 0 0 1px #B09FDD; }
/* The page does not list itself under "Other policies" */
html body.page-id-90 .other-policies li:has(a[href$="/privacy-policy/"]),
html body.page-id-900096 .other-policies li:has(a[href$="/privacy-policy/"]) { display: none; }

@media (max-width: 899px) {
	html .policy { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
	html .policy .toc { position: static; max-height: none; border: 1px solid #EAECF0; border-radius: 16px; background: #fff; padding: 1rem 1.125rem; }
	html .policy .toc__label { font: 600 16px/1.3 "Arimo", ui-sans-serif, sans-serif; letter-spacing: 0; text-transform: none; color: #150F2B; }
}
