/* ==========================================================================
   Core Chiro Rehab — Policy Pages (Privacy Policy, Electronic Communication
   Notice). Namespaced under `.policy-*`, reuses the shared `.chc-landing`
   design tokens (colors/fonts/shadows) so it matches the rest of the site.
   ========================================================================== */

/* `.chc-landing` (home-redesign.css) and legacy `.boxed_wrapper` (global.css)
   both force `overflow:hidden`, which breaks `position:sticky` on the TOC
   sidebar below. Same fix already used on the service-page template. */
.chc-landing.policy-page-landing{ overflow:visible; }
.boxed_wrapper.policy-page-wrapper{ overflow:visible !important; }

/* ---------- hero ---------- */
.policy-hero{ background:var(--c-mint); padding:64px 0 46px; }
.policy-hero__crumbs{ display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:600; color:var(--c-ink-soft); margin-bottom:22px; }
.policy-hero__crumbs a{ color:var(--c-ink-soft); text-decoration:none; }
.policy-hero__crumbs a:hover{ color:var(--c-orange-dark); }
.policy-hero__crumbs i{ font-size:10px; color:var(--c-border); }
.policy-hero__crumbs span{ color:var(--c-ink); font-weight:700; }
.policy-hero h1{ font-size:clamp(28px, 3.4vw, 42px); font-weight:800; line-height:1.18; letter-spacing:-.01em; max-width:22ch; margin-bottom:16px; }
.policy-hero__lead{ max-width:66ch; font-size:16px; line-height:1.75; color:var(--c-ink-soft); margin-bottom:0; }

.policy-facts{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:14px;
  max-width:1000px; margin-top:32px;
}
.policy-fact{
  display:flex; align-items:center; gap:12px;
  background:#fff; border:1px solid var(--c-border); border-radius:14px;
  padding:14px 16px; box-shadow:0 6px 20px -18px rgba(15,23,32,.14);
}
.policy-fact__icon{
  width:36px; height:36px; border-radius:10px; flex-shrink:0;
  background:rgba(255,134,0,.1); color:var(--c-orange-dark);
  display:flex; align-items:center; justify-content:center; font-size:14px;
}
.policy-fact__k{ font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:700; color:var(--c-ink-soft); }
.policy-fact__v{ font-size:13.5px; font-weight:700; color:var(--c-ink); line-height:1.3; }
.policy-fact__v a{ color:var(--c-ink); text-decoration:none; }
.policy-fact__v a:hover{ color:var(--c-orange-dark); }

/* ---------- body layout ---------- */
.policy-body{ padding:70px 0 30px; background:#fff; }
.policy-grid{ display:grid; grid-template-columns:270px 1fr; gap:56px; align-items:start; }
.policy-grid--reverse{ grid-template-columns:1fr 270px; }

.policy-rail{ display:grid; gap:20px; position:sticky; top:24px; }

.policy-toc{
  background:var(--c-mint); border:1px solid var(--c-border); border-radius:18px;
  padding:22px 20px;
}
.policy-toc h3{ font-size:15.5px; font-weight:800; margin-bottom:12px; color:var(--c-ink); }
.policy-toc ol{ list-style:none; margin:0; padding:0; counter-reset:policy-toc; }
.policy-toc li{ counter-increment:policy-toc; }
.policy-toc a{
  display:flex; align-items:baseline; gap:9px;
  text-decoration:none; font-size:13.6px; line-height:1.4; color:var(--c-ink-soft);
  padding:8px 10px; border-radius:10px; font-weight:600;
}
.policy-toc ol a::before{
  content:counter(policy-toc); font-size:11px; font-weight:800; color:var(--c-orange-dark);
  font-family:var(--f-head); flex-shrink:0;
}
.policy-toc a:hover{ background:#fff; color:var(--c-ink); }
.policy-toc a.on{ background:#fff; color:var(--c-orange-dark); box-shadow:0 6px 16px -12px rgba(15,23,32,.25); }
.policy-toc-foot{ margin-top:14px; padding-top:14px; border-top:1px solid var(--c-border); font-size:12px; color:var(--c-ink-soft); }

.policy-posts{ background:#fff; border:1px solid var(--c-border); border-radius:18px; padding:20px 20px 6px; }
.policy-posts h3{ font-size:15.5px; font-weight:800; margin-bottom:4px; padding-bottom:12px; border-bottom:1px solid var(--c-border); color:var(--c-ink); }
.policy-post{ padding:14px 0; border-bottom:1px solid var(--c-border); }
.policy-post:last-of-type{ border-bottom:0; }
.policy-post__date{ display:block; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--c-orange-dark); margin-bottom:4px; }
.policy-post__title{ display:block; font-family:var(--f-head); font-size:14.3px; font-weight:700; line-height:1.35; color:var(--c-ink); text-decoration:none; margin-bottom:4px; }
.policy-post__title:hover{ color:var(--c-orange-dark); }
.policy-post__excerpt{ margin:0; font-size:12.8px; line-height:1.55; color:var(--c-ink-soft); }
.policy-posts__all{
  display:flex; align-items:center; justify-content:center; gap:7px;
  margin:16px 0; font-family:var(--f-head); font-size:12.5px; font-weight:700; letter-spacing:.03em;
  color:#fff; background:var(--c-ink); padding:10px 16px; border-radius:999px; text-decoration:none;
}
.policy-posts__all:hover{ background:var(--c-orange-dark); }

.policy-article{ max-width:74ch; }
.policy-intro{
  background:var(--c-mint); border:1px solid var(--c-border); border-left:4px solid var(--c-orange);
  border-radius:16px; padding:24px 26px; margin-bottom:36px;
}
.policy-intro p{ margin:0 0 12px; color:var(--c-ink-soft); font-size:15px; line-height:1.75; }
.policy-intro p:last-child{ margin-bottom:0; }
.policy-intro__entity{ font-family:var(--f-head); color:var(--c-ink); font-weight:800; font-size:18px; display:block; margin-bottom:4px; }

.policy-sec{ padding-top:10px; margin-bottom:42px; }
.policy-sec > h2{
  font-size:24px; font-weight:800; line-height:1.28; color:var(--c-ink);
  margin:0 0 8px; padding-bottom:14px; border-bottom:1px solid var(--c-border); position:relative;
}
.policy-sec > h2::after{ content:''; position:absolute; left:0; bottom:-1px; width:44px; height:3px; background:var(--c-orange); border-radius:2px; }
.policy-sec h3{ font-size:17.5px; font-weight:800; color:var(--c-ink); margin:26px 0 8px; }
.policy-sec p{ margin:0 0 14px; font-size:15px; line-height:1.78; color:var(--c-ink-soft); }
.policy-sec-lead{ margin-top:16px !important; }

.policy-checklist{ list-style:none; margin:16px 0 22px; padding:0; display:grid; gap:11px; }
.policy-checklist li{ display:flex; gap:11px; align-items:flex-start; font-size:14.6px; color:var(--c-ink-soft); line-height:1.65; }
.policy-checklist li i{ color:var(--c-orange-dark); margin-top:3px; flex-shrink:0; font-size:13px; }

.policy-deck{ display:grid; gap:14px; margin:18px 0 22px; }
.policy-deck .item{ background:#fff; border:1px solid var(--c-border); border-radius:14px; padding:18px 20px; box-shadow:0 6px 20px -18px rgba(15,23,32,.14); }
.policy-deck .item h4{ margin:0 0 6px; font-size:15px; font-weight:800; color:var(--c-ink); }
.policy-deck .item p{ margin:0; font-size:14.4px; }

.policy-disclosures{ display:grid; border:1px solid var(--c-border); border-radius:14px; overflow:hidden; margin:20px 0 24px; }
.policy-disclosures .row{ padding:16px 20px; border-top:1px solid var(--c-border); background:#fff; }
.policy-disclosures .row:first-child{ border-top:0; }
.policy-disclosures .row:nth-child(even){ background:var(--c-mint); }
.policy-disclosures .row h4{ margin:0 0 4px; font-size:14.5px; font-weight:800; color:var(--c-ink); }
.policy-disclosures .row p{ margin:0; font-size:14px; }

.policy-rights{ counter-reset:policy-right; display:grid; gap:14px; margin:22px 0; }
.policy-right{
  border:1px solid var(--c-border); border-radius:14px; padding:20px 22px 20px 62px; position:relative;
  background:#fff; counter-increment:policy-right; box-shadow:0 6px 20px -18px rgba(15,23,32,.14);
}
.policy-right::before{
  content:counter(policy-right); position:absolute; left:20px; top:19px; width:28px; height:28px; border-radius:9px;
  background:rgba(255,134,0,.1); color:var(--c-orange-dark); font-family:var(--f-head); font-weight:800; font-size:13px;
  display:flex; align-items:center; justify-content:center;
}
.policy-right h4{ margin:0 0 5px; font-size:15px; font-weight:800; color:var(--c-ink); }
.policy-right p{ margin:0; font-size:14.4px; }

.policy-callout{ background:var(--c-ink); color:rgba(255,255,255,.85); border-radius:20px; padding:30px 32px; margin:30px 0; }
.policy-callout h3{ color:#fff; margin:0 0 8px; font-size:19px; font-weight:800; }
.policy-callout p{ margin:0 0 10px; font-size:14.6px; color:rgba(255,255,255,.75); }
.policy-callout p:last-child{ margin-bottom:0; }
.policy-callout a{ color:#ffb066; text-decoration:none; font-weight:700; }
.policy-callout a:hover{ text-decoration:underline; }

.policy-meta{
  display:flex; flex-wrap:wrap; gap:10px 32px; padding:20px 0 0; margin-top:36px;
  border-top:1px solid var(--c-border); font-size:13.5px; color:var(--c-ink-soft);
}
.policy-meta b{ color:var(--c-ink); font-weight:700; }

/* ---------- responsive ---------- */
@media (max-width:900px){
  .policy-grid{ grid-template-columns:1fr; gap:28px; }
  .policy-rail{ position:static; }
  .policy-facts{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:560px){
  .policy-hero{ padding:44px 0 34px; }
  .policy-body{ padding:44px 0 10px; }
  .policy-facts{ grid-template-columns:1fr; }
  .policy-right{ padding:18px 18px 18px 56px; }
  .policy-callout{ padding:24px 22px; }
}
