/* ==========================================================================
   DimeWell — public pages
   File: app/static/css/dw-public.css

   Gives the public pages (About, Products, Calculator, Eligibility, Contact,
   FAQ, Terms, Privacy) and the sign-in pages (Login, Register, password
   reset, OTP) the same look as the Home page: navy, gold, ivory, serif
   headlines.

   Loaded by base.html ONLY for visitors' pages, after every other
   stylesheet. Two scopes, set as classes on <body>:
     .dw-shell   navbar + footer           (Home page too)
     .dw-public  page content              (every public page except Home,
                                            which has its own full design)
   Dashboards and staff pages never get either class, so nothing here can
   reach them. No template logic depends on this file: remove the <link> and
   the pages fall back to their previous look.
   ========================================================================== */

/* ── 1. Shell: navbar and footer ─────────────────────────────────────────── */
body.dw-shell {
  --pb-navy:      #0b1d3a;
  --pb-navy-mid:  #122954;
  --pb-blue:      #1455c0;
  --pb-blue-dark: #0f4398;
  --pb-gold:      #e8a020;
  --pb-gold-light:#f5c55a;
  --pb-ivory:     #faf8f4;
  --pb-text:      #1a2540;
  --pb-muted:     #55637f;
  --pb-border:    #dde4f0;
  --pb-radius:    16px;
  --pb-shadow:    0 1px 2px rgba(11, 29, 58, .05), 0 10px 28px -14px rgba(11, 29, 58, .18);
  --pb-serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --pb-sans:      'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body.dw-shell nav#mainNavbar {
  background: var(--pb-navy) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .55);
}
body.dw-shell nav#mainNavbar .navbar-nav .nav-link { border-radius: 8px; }
body.dw-shell nav#mainNavbar .navbar-nav .nav-link.active::after { background: var(--pb-gold) !important; }
body.dw-shell nav#mainNavbar .navbar-nav .nav-link:focus-visible,
body.dw-shell nav#mainNavbar .navbar-brand:focus-visible,
body.dw-shell nav#mainNavbar .btn:focus-visible { outline: 3px solid var(--pb-gold); outline-offset: 2px; }

/* "Register" is the main action for a visitor: gold, like "Apply" on Home */
body.dw-shell nav#mainNavbar .btn.btn-primary {
  background: var(--pb-gold);
  border-color: var(--pb-gold);
  color: var(--pb-navy);
  border-radius: 999px;
  box-shadow: none;
}
body.dw-shell nav#mainNavbar .btn.btn-primary:hover,
body.dw-shell nav#mainNavbar .btn.btn-primary:focus {
  background: var(--pb-gold-light);
  border-color: var(--pb-gold-light);
  color: var(--pb-navy);
}

/* Phone menu: full-width rows that are easy to tap */
@media (max-width: 991.98px) {
  body.dw-shell nav#mainNavbar .navbar-collapse {
    background: var(--pb-navy);
    margin: 0 -12px;
    padding: 8px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  body.dw-shell nav#mainNavbar .navbar-nav { align-items: stretch !important; text-align: left; }
  body.dw-shell nav#mainNavbar .navbar-nav .nav-link {
    display: flex; align-items: center; justify-content: flex-start; gap: 6px;
    width: 100%;
    padding: 12px 12px !important;
    font-size: 1rem;
  }
  body.dw-shell nav#mainNavbar .navbar-nav .nav-link.active::after { display: none; }
  body.dw-shell nav#mainNavbar .navbar-nav .nav-link.active { background: rgba(255, 255, 255, .08) !important; }
  body.dw-shell nav#mainNavbar .btn.btn-primary {
    display: block;
    margin: 10px 0 0 !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    text-align: center;
  }
}

body.dw-shell footer.bg-dark {
  background: var(--pb-navy) !important;
  border-top: 3px solid var(--pb-gold);
}
body.dw-shell footer.bg-dark a.text-muted {
  display: inline-block;
  padding: 3px 0;
  color: rgba(255, 255, 255, .72) !important;
}
body.dw-shell footer.bg-dark p.text-muted { color: rgba(255, 255, 255, .72) !important; }
body.dw-shell footer.bg-dark .footer-label { color: var(--pb-gold-light) !important; }
body.dw-shell footer.bg-dark .footer-copy { color: rgba(255, 255, 255, .6) !important; }
body.dw-shell footer.bg-dark a:focus-visible { outline: 3px solid var(--pb-gold); outline-offset: 2px; border-radius: 4px; }

/* ── 2. Page canvas and type ─────────────────────────────────────────────── */
body.dw-public {
  /* The older stylesheets read these variables, so re-pointing them here
     recolours their components on public pages only. */
  --brand-primary:       #122954;
  --brand-primary-light: #1455c0;
  --brand-primary-dark:  #0b1d3a;
  --brand-accent:        #1455c0;
  --brand-accent-hover:  #0f4398;
  --brand-accent-light:  #eaf1fc;
  --bg-body:             #faf8f4;
  --text-primary:        #1a2540;
  --text-secondary:      #3d4a66;
  --text-muted:          #55637f;
  --border-color:        #dde4f0;
  --font-sans:           var(--pb-sans);
  --dimwell-bg:          #faf8f4;
  --dimwell-primary:     #1455c0;

  --bs-primary:          #1455c0;
  --bs-primary-rgb:      20, 85, 192;
  --bs-link-color:       #1455c0;
  --bs-link-color-rgb:   20, 85, 192;
  --bs-link-hover-color: #0f4398;
  --bs-link-hover-color-rgb: 15, 67, 152;
  --bs-body-color:       #1a2540;
  --bs-secondary-color:  #55637f;
  --bs-border-color:     #dde4f0;
  --bs-primary-bg-subtle:     #eaf1fc;
  --bs-primary-border-subtle: #c9dbf7;
  --bs-primary-text-emphasis: #0f4398;

  font-family: var(--pb-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pb-text);
  background-color: var(--pb-ivory) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dw-public .main-container {
  max-width: 1180px;
  padding: 0 20px 56px;
}
@media (max-width: 575.98px) {
  body.dw-public .main-container { padding: 0 16px 40px; }
}

body.dw-public h1, body.dw-public .h1,
body.dw-public h2, body.dw-public .h2 {
  font-family: var(--pb-serif);
  color: var(--pb-navy) !important;
  letter-spacing: -.01em;
  line-height: 1.2;
}
body.dw-public h3, body.dw-public h4, body.dw-public h5, body.dw-public h6,
body.dw-public .h3, body.dw-public .h4, body.dw-public .h5, body.dw-public .h6 {
  font-family: var(--pb-sans);
  color: var(--pb-navy) !important;
  line-height: 1.3;
}
body.dw-public main h2, body.dw-public main .h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem) !important; font-weight: 800; }
body.dw-public main h3, body.dw-public main .h3 { font-size: 1.3125rem !important; font-weight: 700; }
body.dw-public main h4, body.dw-public main .h4 { font-size: 1.125rem !important; font-weight: 700; }
body.dw-public main h5, body.dw-public main .h5 { font-size: 1.0625rem !important; font-weight: 700; }
body.dw-public main h6, body.dw-public main .h6 { font-size: 1rem !important; font-weight: 700; }
body.dw-public p, body.dw-public li { color: inherit; }
body.dw-public .text-muted { color: var(--pb-muted) !important; }
body.dw-public .small, body.dw-public small { font-size: .875rem; }
body.dw-public .lead { font-size: 1.125rem; font-weight: 400; line-height: 1.65; color: #3d4a66; }
body.dw-public .text-primary { color: var(--pb-blue) !important; }
body.dw-public a { text-underline-offset: 3px; }
body.dw-public main a:not(.btn):not(.nav-link):not(.list-group-item):not(.dropdown-item):focus-visible,
body.dw-public main .btn:focus-visible,
body.dw-public main [tabindex]:focus-visible,
body.dw-public main summary:focus-visible {
  outline: 3px solid var(--pb-gold);
  outline-offset: 2px;
  box-shadow: none;
}

/* Headings that sit on a dark or coloured band stay white */
body.dw-public .cta-section :is(h1, h2, h3, h4, h5, h6),
body.dw-public .eligibility-hero :is(h1, h2, h3),
body.dw-public .text-white :is(h1, h2, h3, h4, h5, h6),
body.dw-public :is(h1, h2, h3, h4, h5, h6).text-white,
body.dw-public .dw-page-head :is(h1, h2) { color: #fff !important; }

/* The strip between the fixed navbar and the page is navy, not a light gap
   (Home included: its hero is navy too) */
body.dw-shell::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--navbar-height, 64px);
  background: var(--pb-navy);
}

/* ── 3. Page title band (macros.page_header / base page_header) ──────────── */
body.dw-public .dw-page-head {
  position: relative;
  margin: 0 0 36px !important;
  padding: 40px 0 36px;
  color: #fff;
  background: var(--pb-navy);
  /* full-bleed without changing the markup around it */
  box-shadow: 0 0 0 100vmax var(--pb-navy);
  clip-path: inset(0 -100vmax);
}
body.dw-public .dw-page-head::after {
  content: '';
  position: absolute;
  left: 0; bottom: 22px;
  width: 56px; height: 3px;
  border-radius: 3px;
  background: var(--pb-gold);
}
body.dw-public .dw-page-head h1 {
  font-family: var(--pb-serif) !important;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem) !important;
  font-weight: 800 !important;
  margin: 0 0 14px !important;
}
body.dw-public .dw-page-head .breadcrumb {
  font-size: .875rem;
  margin-bottom: 12px !important;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45);
  --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .8);
}
body.dw-public .dw-page-head .breadcrumb a { color: var(--pb-gold-light); text-decoration: none; }
body.dw-public .dw-page-head .breadcrumb a:hover { text-decoration: underline; }
body.dw-public .dw-page-head .breadcrumb-item.active { color: rgba(255, 255, 255, .8); }
body.dw-public .dw-page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }
/* breadcrumb above the title reads better: reverse the two */
body.dw-public .dw-page-head > div:first-child { display: flex; flex-direction: column-reverse; }
@media (max-width: 575.98px) {
  body.dw-public .dw-page-head { padding: 28px 0 30px; margin-bottom: 28px !important; }
  body.dw-public .dw-page-head::after { bottom: 18px; }
}

/* ── 4. Buttons ──────────────────────────────────────────────────────────── */
body.dw-public main .btn {
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--pb-sans);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.dw-public main .btn:not(.btn-sm):not(.btn-link) { min-height: 44px; padding-top: .55rem; padding-bottom: .55rem; }
body.dw-public main .btn-sm { min-height: 36px; border-radius: 8px; }
body.dw-public main .btn-lg { min-height: 50px; font-size: 1.0625rem; border-radius: 12px; }
body.dw-public main .btn-primary {
  --bs-btn-bg: #1455c0; --bs-btn-border-color: #1455c0;
  --bs-btn-hover-bg: #0f4398; --bs-btn-hover-border-color: #0f4398;
  --bs-btn-active-bg: #0c3780; --bs-btn-active-border-color: #0c3780;
  --bs-btn-disabled-bg: #7fa3de; --bs-btn-disabled-border-color: #7fa3de;
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(20, 85, 192, .65);
}
body.dw-public main .btn-primary:hover,
body.dw-public main .btn-primary:focus { background-color: #0f4398; border-color: #0f4398; color: #fff; }
body.dw-public main .btn-primary:disabled,
body.dw-public main .btn-primary.disabled { background-color: #7fa3de; border-color: #7fa3de; box-shadow: none; }
body.dw-public main .btn-outline-primary {
  --bs-btn-color: #1455c0; --bs-btn-border-color: #1455c0;
  --bs-btn-hover-bg: #1455c0; --bs-btn-hover-border-color: #1455c0; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #0f4398; --bs-btn-active-border-color: #0f4398;
  color: #1455c0; border-color: #1455c0; background: #fff;
}
body.dw-public main .btn-outline-primary:hover,
body.dw-public main .btn-outline-primary.active { background: #1455c0; color: #fff; border-color: #1455c0; }
@media (hover: hover) {
  body.dw-public main .btn-primary:hover,
  body.dw-public main .btn-light:hover { transform: translateY(-1px); }
}

/* ── 5. Cards, lists, tables ─────────────────────────────────────────────── */
body.dw-public main .card {
  border: 1px solid var(--pb-border) !important;
  border-radius: var(--pb-radius) !important;
  box-shadow: var(--pb-shadow) !important;
  background: #fff;
  overflow: hidden;
}
body.dw-public main .card .card { box-shadow: none !important; }
body.dw-public main .card-header {
  background: #fff !important;
  border-bottom: 1px solid var(--pb-border) !important;
  padding: 16px 20px;
}
body.dw-public main .card-header :is(h2, h3, h4, h5, h6) { font-family: var(--pb-sans); font-size: 1.0625rem; }
body.dw-public main .bg-light { background-color: #f4f6fb !important; }
body.dw-public main .rounded-3 { border-radius: 12px !important; }
body.dw-public main .rounded-4 { border-radius: var(--pb-radius) !important; }
body.dw-public main .bg-primary { background-color: var(--pb-blue) !important; }
body.dw-public main .list-group-item { border-color: var(--pb-border); padding-top: 14px; padding-bottom: 14px; }
body.dw-public main .table { --bs-table-border-color: var(--pb-border); font-size: .9375rem; }
body.dw-public main .table > :not(caption) > * > * { padding: 12px 14px; }
body.dw-public main .table thead th {
  background: #f4f6fb; color: var(--pb-navy);
  font-size: .8125rem; letter-spacing: .03em; text-transform: uppercase;
}
body.dw-public main .badge { font-weight: 600; letter-spacing: .01em; }
body.dw-public main .alert { border-radius: 12px; }

/* Section headers (landing.css) */
body.dw-public .section-badge {
  color: var(--pb-blue);
  background: #eaf1fc;
  border-color: #c9dbf7;
  font-size: .75rem;
  letter-spacing: .1em;
}
body.dw-public .section-title { font-family: var(--pb-serif); font-weight: 800; color: var(--pb-navy) !important; }
body.dw-public .section-subtitle { color: var(--pb-muted); font-size: 1.0625rem; }

/* Call-to-action band at the foot of About / Products / FAQ / Contact / Calculator */
body.dw-public .cta-section {
  background:
    radial-gradient(900px 300px at 85% -40%, rgba(45, 114, 232, .45), transparent 70%),
    linear-gradient(135deg, var(--pb-navy) 0%, var(--pb-navy-mid) 100%) !important;
  border-radius: 20px !important;
}
body.dw-public .cta-section :is(h2, h3) { font-family: var(--pb-serif); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
body.dw-public .cta-section p, body.dw-public .cta-section a:not(.btn) { color: rgba(255, 255, 255, .85) !important; }
body.dw-public .cta-section .btn-light {
  background: var(--pb-gold); border-color: var(--pb-gold); color: var(--pb-navy);
  box-shadow: 0 8px 20px -10px rgba(232, 160, 32, .8);
}
body.dw-public .cta-section .btn-light:hover { background: var(--pb-gold-light); border-color: var(--pb-gold-light); color: var(--pb-navy); }
body.dw-public .cta-section .btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
body.dw-public .cta-section .btn-outline-light:hover { background: #fff; color: var(--pb-navy); border-color: #fff; }

/* ── 6. Forms ────────────────────────────────────────────────────────────── */
body.dw-public main .form-label { font-weight: 600; color: var(--pb-navy); font-size: .9375rem; margin-bottom: 6px; }
body.dw-public main .form-control,
body.dw-public main .form-select {
  min-height: 46px;
  font-size: 1rem;                     /* 16px: phones do not zoom in on focus */
  border: 1px solid #c5cfe0;
  border-radius: 10px;
  color: var(--pb-text);
  background-color: #fff;
}
body.dw-public main textarea.form-control { min-height: 140px; }
body.dw-public main .form-control::placeholder { color: #8a96ad; }
body.dw-public main .form-control:focus,
body.dw-public main .form-select:focus {
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(20, 85, 192, .18);
}
body.dw-public main .input-group > .input-group-text,
body.dw-public main .input-group > .btn {
  border: 1px solid #c5cfe0;
  background: #f4f6fb;
  color: #3d4a66;
  min-height: 46px;
  box-shadow: none;
}
body.dw-public main .input-group > :not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
body.dw-public main .input-group > :not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
body.dw-public main .input-group > :first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
body.dw-public main .input-group > :last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
body.dw-public main .form-text { color: var(--pb-muted); font-size: .8125rem; }
body.dw-public main .form-check-input { width: 1.15em; height: 1.15em; border-color: #9aa7bf; }
body.dw-public main .form-check-input:checked { background-color: var(--pb-blue); border-color: var(--pb-blue); }
body.dw-public main .form-check-label { padding-left: 2px; }
body.dw-public main .invalid-feedback { font-size: .875rem; }

/* ── 7. FAQ ──────────────────────────────────────────────────────────────── */
body.dw-public .accordion {
  --bs-accordion-border-color: var(--pb-border);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(232, 160, 32, .45);
  --bs-accordion-active-bg: #f4f7fd;
  --bs-accordion-active-color: var(--pb-navy);
  --bs-accordion-btn-padding-y: 18px;
  --bs-accordion-btn-padding-x: 20px;
  --bs-accordion-body-padding-x: 20px;
}
body.dw-public .accordion-item {
  border: 1px solid var(--pb-border) !important;
  border-radius: 12px !important;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
body.dw-public .accordion-header { margin: 0; font-size: 1rem !important; }
body.dw-public .accordion-button {
  font-family: var(--pb-sans);
  font-size: 1rem; font-weight: 600; color: var(--pb-navy) !important;
  background: #fff; box-shadow: none;
}
body.dw-public .accordion-button:not(.collapsed) { background: #f4f7fd !important; color: var(--pb-navy) !important; }
body.dw-public .accordion-body { color: #3d4a66; line-height: 1.7; font-size: .975rem; }
body.dw-public .faq-category-btn { min-height: 40px !important; padding: 6px 16px; }
/* The search box is one pill: the border belongs to the group, not its parts */
body.dw-public .faq-search .input-group {
  border: 1px solid #c5cfe0; border-radius: 999px; overflow: hidden; background: #fff;
  box-shadow: var(--pb-shadow);
}
body.dw-public .faq-search .input-group:focus-within { border-color: var(--pb-blue); box-shadow: 0 0 0 3px rgba(20, 85, 192, .18); }
body.dw-public .faq-search .input-group > * { border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; }
body.dw-public .faq-search .input-group-text { padding-left: 20px; }
body.dw-public .faq-search .form-control { min-height: 52px; padding-left: 4px; }
body.dw-public .faq-group > :is(h2, h3, h4, h5) { font-family: var(--pb-sans); }

/* ── 8. About ────────────────────────────────────────────────────────────── */
body.dw-public .about-accent-circle { display: none; }   /* decorative circles pushed the page sideways on phones */
body.dw-public .mission-icon, body.dw-public .why-icon, body.dw-public .contact-info-icon { border-radius: 14px !important; }
body.dw-public .step-circle { box-shadow: 0 0 0 6px rgba(20, 85, 192, .1); }

/* ── 9. Contact ──────────────────────────────────────────────────────────── */
body.dw-public .map-placeholder { border: 0; background: #fff !important; min-height: 0 !important; }
body.dw-public .map-placeholder > .p-5 { padding: 28px 20px !important; }
body.dw-public .alternative-contact .list-group-item:hover { border-left-color: var(--pb-gold); }

/* ── 10. Products ────────────────────────────────────────────────────────── */
body.dw-public .product-detail-card:hover { transform: none; box-shadow: var(--pb-shadow) !important; }
body.dw-public .comparison-table .table thead th { background: #f4f6fb; color: var(--pb-navy); }

/* ── 11. Eligibility ─────────────────────────────────────────────────────── */
body.dw-public .eligibility-hero {
  background: var(--pb-navy);
  box-shadow: 0 0 0 100vmax var(--pb-navy);
  clip-path: inset(0 -100vmax);
  padding: 52px 0 56px;
}
body.dw-public .eligibility-hero h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; }
body.dw-public .eligibility-hero p { font-size: 1.0625rem; opacity: 1; color: rgba(255, 255, 255, .85); }
body.dw-public .sector-card h3 { font-size: 1.0625rem !important; }
/* Short-term / Long-term switch fills its column instead of spilling out on phones */
body.dw-public .calc-type-toggle { display: flex; width: 100%; }
body.dw-public .calc-type-toggle button { flex: 1 1 0; min-width: 0; padding: 10px 8px; white-space: normal; min-height: 48px; }
/* The "K" in front of money boxes sat on top of the typed figure: make it a normal prefix box */
body.dw-public #eligibilityForm .input-group { display: flex; flex-wrap: nowrap; }
body.dw-public #eligibilityForm .input-group-text { position: static; transform: none; padding: 0 14px; font-size: 1rem; }
body.dw-public #eligibilityForm .input-group .form-control { padding-left: 14px; width: 1%; flex: 1 1 auto; }

/* ── 12. Sign-in pages (Login, Register, reset, OTP) ─────────────────────── */
body.dw-public.dw-auth .main-container { padding-top: 8px; }
body.dw-public.dw-auth .main-container > .container { padding-top: 32px !important; padding-bottom: 40px !important; }
body.dw-public.dw-auth .text-center > img[alt="DimeWell"] {
  height: auto !important; width: 190px !important; max-width: 70%;
  border-radius: 14px;
  box-shadow: 0 8px 22px -12px rgba(11, 29, 58, .5);
}
body.dw-public.dw-auth .text-center > :is(h1, h2, h3, h4) { font-family: var(--pb-serif); font-size: 1.75rem !important; font-weight: 800; margin-top: 4px; }
body.dw-public.dw-auth main .card { box-shadow: 0 1px 2px rgba(11, 29, 58, .05), 0 22px 44px -22px rgba(11, 29, 58, .28) !important; }
body.dw-public.dw-auth main .card-body.p-4 { padding: 28px !important; }
body.dw-public.dw-auth main form .btn[type="submit"] { min-height: 50px; font-size: 1.0625rem; }
@media (max-width: 575.98px) {
  body.dw-public.dw-auth .main-container > .container { padding-top: 20px !important; padding-left: 0; padding-right: 0; }
  body.dw-public.dw-auth main .card-body.p-4 { padding: 20px !important; }
}

/* These pages already show the message above the form: hide the floating copy
   so the same message is not shown twice */
body.dw-public.dw-auth:has(main .alert-dismissible) .flash-container { display: none; }

/* ── 13. Long reading pages (Terms, Privacy) ─────────────────────────────── */
body.dw-public.dw-legal .main-container { max-width: 900px; }
body.dw-public.dw-legal main :is(p, li) { font-size: 1rem; line-height: 1.75; color: #2c3852; }
body.dw-public.dw-legal main :is(h2, .h2) { font-size: 1.5rem; margin-top: 2.25rem; scroll-margin-top: 90px; }
body.dw-public.dw-legal main :is(h3, h4, h5) { font-size: 1.0625rem; margin-top: 1.5rem; }

/* ── 14. Phones ──────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  body.dw-public .lead { font-size: 1.0625rem; }
  body.dw-public main .row.g-5 { --bs-gutter-x: 1.5rem; }   /* wide gutters pushed the page sideways */
  body.dw-public main .btn-lg { width: 100%; }
  body.dw-public .cta-section { border-radius: 16px !important; }
  body.dw-public .cta-section .btn { width: 100%; }
  body.dw-public main .card-body.p-4, body.dw-public main .card-body.p-5 { padding: 20px !important; }
  body.dw-public main .py-5 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
  body.dw-public main .mb-5 { margin-bottom: 2.25rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.dw-public *, body.dw-shell nav#mainNavbar * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  body.dw-public .dw-page-head { box-shadow: none; clip-path: none; background: none; color: #000; padding: 0 0 12px; }
  body.dw-public .dw-page-head :is(h1, h2) { color: #000 !important; }
}
