/* Viper Vape · Kush & Coil — Legal/Policy page styling
 * Scoped to body.kcr-legal-page (added via body_class filter for refund/terms/privacy).
 * No template or content edits — purely visual layer over the_content() output.
 */

/* ============================================================
   Hero gradient strip (Phase 2)
   ::before is a pseudo-element — NOT matched by > * selector,
   so max-width:760px does not apply here.
   ============================================================ */
body.kcr-legal-page .vv-site-main::before {
  content: "";
  display: block;
  height: 80px;
  width: calc(100% + 40px);
  margin: -56px -20px 0;
  background: linear-gradient(135deg, var(--vv-green-700), var(--vv-black));
}

body.kcr-legal-page .vv-site-main {
  background: var(--vv-bone);
  padding: 56px 20px 96px;
}

body.kcr-legal-page .vv-site-main > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.kcr-legal-page .vv-site-main {
  position: relative;
}

/* ============================================================
   H1: bold display, green underline
   > h1 (direct child only) prevents bleeding into Terms
   template where h1.vv-section-title lives inside
   .vv-shell-narrow (not a direct child of .vv-site-main).
   ============================================================ */
body.kcr-legal-page .vv-site-main > h1 {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--vv-ink);
  margin: -24px auto 8px;
  padding-bottom: 18px;
  position: relative;
}
body.kcr-legal-page .vv-site-main > h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--vv-green-600);
  border-radius: 2px;
  margin-top: 18px;
}

/* "Effective Date" line — first <p> after h1 — pill badge */
body.kcr-legal-page .vv-site-main > h1 + p {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vv-green-700);
  background: var(--vv-green-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}
body.kcr-legal-page .vv-site-main > h1 + p strong {
  color: var(--vv-green-700);
  font-weight: 700;
}

/* Numbered section headings */
body.kcr-legal-page .vv-site-main h2 {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--vv-ink);
  margin: 56px auto 18px;
  padding-left: 18px;
  border-left: 4px solid var(--vv-green-600);
}

/* Body copy */
body.kcr-legal-page .vv-site-main p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  margin: 0 auto 18px;
}

/* Inline emphasis — yellow highlight */
body.kcr-legal-page .vv-site-main p strong,
body.kcr-legal-page .vv-site-main li strong {
  background: rgba(244, 196, 48, 0.22);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  color: var(--vv-ink);
}

/* ============================================================
   Default list styles (ul and non-process ol)
   ============================================================ */
body.kcr-legal-page .vv-site-main ul {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  padding-left: 26px;
  margin: 0 auto 22px;
}
body.kcr-legal-page .vv-site-main ol {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  padding-left: 0;
  margin: 0 auto 22px;
  list-style: none;
  counter-reset: legal-step;
}
body.kcr-legal-page .vv-site-main li {
  margin-bottom: 10px;
}

/* ============================================================
   Process step cards (Phase 2)
   Targets all <li> inside any <ol> in the legal page.
   Each li becomes a white card with a circular green counter.
   ============================================================ */
body.kcr-legal-page .vv-site-main ol li {
  counter-increment: legal-step;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
body.kcr-legal-page .vv-site-main ol li::before {
  content: counter(legal-step);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--vv-green-600);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

/* ============================================================
   Email / mailto link — button affordance (Phase 2)
   Scoped to mailto: only to avoid bleeding to internal links.
   ============================================================ */
body.kcr-legal-page .vv-site-main a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  background: var(--vv-green-600);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease;
}
body.kcr-legal-page .vv-site-main a[href^="mailto:"]:hover {
  background: var(--vv-green-700);
  color: #fff;
}

/* Links (non-mailto) */
body.kcr-legal-page .vv-site-main a:not([href^="mailto:"]) {
  color: var(--vv-green-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}
body.kcr-legal-page .vv-site-main a:not([href^="mailto:"]):hover {
  color: var(--vv-green-600);
}

/* ============================================================
   Mobile breakpoint
   ============================================================ */
@media (max-width: 640px) {
  body.kcr-legal-page .vv-site-main::before {
    height: 40px;
    margin-top: -56px;
  }
  body.kcr-legal-page .vv-site-main {
    padding: 36px 16px 64px;
  }
  body.kcr-legal-page .vv-site-main::before {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }
  body.kcr-legal-page .vv-site-main h2 {
    margin-top: 40px;
  }
}

/* ============================================================
   Print stylesheet (Phase 2)
   ============================================================ */
@media print {
  body.kcr-legal-page .vv-site-main {
    background: #fff !important;
    padding: 0 !important;
  }
  body.kcr-legal-page .vv-site-main::before {
    display: none;
  }
  body.kcr-legal-page .vv-site-main h2 {
    border-left: none;
    padding-left: 0;
  }
  body.kcr-legal-page .vv-site-main ol li {
    border: none;
    padding: 8px 0;
  }
}
