/* =========================================================
   Vegto · help + legal pages
   FAQ (body.page-faq), policies (body.page-legal), not found (body.page-404).
   Loaded after style.css + inner.css. The FAQ page also loads shop.css
   so its topic pills re-use .cat-pills / .cat-pill.
   ========================================================= */

/* ---------- Shared bits ---------- */
.page-legal [hidden], .page-404 [hidden] { display: none !important; }
.zone-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zone-list li { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--green-50); color: var(--green-dk); font: 500 13.5px/1 var(--body); white-space: nowrap; }
.prose .zone-list { padding: 0; list-style: none; }
.prose .zone-list li + li { margin-top: 0; }

/* =========================================================
   Policies (shipping, refund, terms, privacy)
   ========================================================= */

/* layout: table of contents + text */
.legal { padding-top: 52px; }

/* policy text */
.legal-body { min-width: 0; max-width: 820px; }
.legal-body .prose { font-size: 16px; line-height: 1.75; }
.legal-body .prose > h2 { margin-top: 46px; font-size: 24px; }
.legal-body .prose > h2:first-child { margin-top: 0; }
.legal-body .prose > h2 + * { margin-top: 12px; }
.legal-body .prose h3 { margin-top: 26px; font-size: 18px; }
.legal-body .prose h3 + * { margin-top: 8px; }
.legal-body .notice { font-size: 15px; line-height: 1.6; }
.legal-body .notice strong { color: var(--green-dk); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th, .prose td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--tint); font: 600 14px var(--head); color: var(--ink); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); }

/* order-night timeline */
.prose .timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; }
.prose .timeline li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); line-height: 1.45; }
.prose .timeline b { display: flex; align-items: center; gap: 8px; font: 600 18px var(--head); color: var(--green-dk); }
.prose .timeline b .ic { color: var(--green); }
.prose .timeline span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.prose .timeline li:last-child { border-color: var(--green-dk); background: var(--green-dk); }
.prose .timeline li:last-child b, .prose .timeline li:last-child b .ic { color: var(--hi); }
.prose .timeline li:last-child span { color: rgba(255, 255, 255, .86); }

/* order status steps */
.prose .status-steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.prose .status-steps li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--green-50); font: 500 14px/1.3 var(--head); color: var(--green-dk); }
.prose .status-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card); font: 600 12.5px var(--head); font-style: normal; color: var(--green); }

/* numbered steps */
.prose ol.steps { padding: 0; list-style: none; counter-reset: st; }
.prose ol.steps > li { position: relative; min-height: 34px; padding: 3px 0 0 50px; counter-increment: st; }
.prose ol.steps > li + li { margin-top: 16px; }
.prose ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font: 600 15px var(--head); }

/* related policies */
.related { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font: 600 18px var(--head); color: var(--ink); }

/* =========================================================
   404
   ========================================================= */
.nf { padding: 40px 0 56px; text-align: center; }
.nf-in { max-width: 760px; margin: 0 auto; }
.nf-art { position: relative; display: inline-flex; align-items: baseline; justify-content: center; padding: 34px 16px 18px; font: 700 clamp(118px, 14vw, 184px)/1 var(--head); letter-spacing: -.02em; color: var(--green); user-select: none; }
.nf-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 92, 53, .18), rgba(40, 92, 53, 0)); }
.nf-zero { position: relative; display: inline-block; width: .58em; height: .7em; margin: 0 .05em; border: .125em solid var(--accent); border-radius: 50%; }
.nf-zero svg { position: absolute; left: 50%; bottom: 100%; width: .4em; height: .4em; margin-bottom: .1em; color: var(--green); stroke-width: 2.1; transform: translateX(-50%) rotate(-6deg); transform-origin: 50% 90%; }
.nf-title { margin-top: 14px; font: 600 36px/1.2 var(--head); letter-spacing: -.01em; text-wrap: balance; }
.nf-text { max-width: 560px; margin: 12px auto 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.nf-search { display: flex; align-items: center; gap: 8px; max-width: 580px; margin: 26px auto 0; padding: 6px 6px 6px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); transition: border-color .2s, box-shadow .2s; }
.nf-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.nf-search > .ic { width: 20px; height: 20px; color: var(--green); }
.nf-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--ink); }
.nf-search input::placeholder { color: #8B8E80; }
.nf-search .btn { height: 48px; }
.nf-links-label { margin-top: 30px; font: 600 12.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 580px; margin: 12px auto 0; }
.nf-links a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font: 500 14.5px var(--head); color: var(--ink-2); transition: border-color .2s, color .2s, box-shadow .2s; }
.nf-links a .ic { color: var(--green); }
.nf-links a:hover { border-color: var(--green); color: var(--green-dk); box-shadow: var(--sh-xs); }

/* =========================================================
   Responsive
   ========================================================= */
/* 404: four bestsellers stay on one row down to tablet, then 2 × 2 */
@media (max-width: 1080px) and (min-width: 961px) { .page-404 .pgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (max-width: 960px) and (min-width: 641px) { .page-404 .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .legal { padding-top: 32px; }
  .nf-title { font-size: 31px; }
}
@media (max-width: 640px) {

  .legal { padding-top: 24px; }
  .legal-body .prose { font-size: 15.5px; line-height: 1.7; }
  .legal-body .prose > h2 { margin-top: 36px; font-size: 21px; }
  .legal-body .prose h3 { font-size: 17px; }
  .prose .timeline { grid-template-columns: 1fr 1fr; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose table { font-size: 14px; }
  .related { margin-top: 40px; padding-top: 24px; }

  .nf { padding: 22px 0 40px; }
  .nf-art { padding: 30px 8px 16px; }
  .nf-title { margin-top: 8px; font-size: 26px; }
  .nf-text { font-size: 15px; }
  .nf-search { margin-top: 22px; padding-left: 12px; }
  .nf-search input { font-size: 15px; }
  .nf-search .btn { padding: 0 16px; }
  .nf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nf-links a { justify-content: flex-start; padding: 0 14px; font-size: 14px; }
}

/* ---------- Print (policies) ---------- */
@media print {
  .topbar, .site-header, .footer, .related, .cart-drawer, .toast, .drawer, .scrim, .skip-link { display: none !important; }
  .page-head { background: none; border: 0; }
}

/* simple policy pages: title, then one centred text column */
.legal-head, .legal-simple { max-width: 860px; }
.legal-simple .legal-body { max-width: none; }
