/* ─────────────────────────────────────────────────────────────────────────
   Policy pages — light editorial theme

   These were dark green with two radial glows behind them, uppercase display
   type and lime accents: the storefront's voice applied to legal documents,
   which read as decorative rather than serious. Legal text is reference
   material. It is set on white, in sentence case, with a long measure and a
   lot of air; green appears only where it carries meaning — the eyebrow, a
   rule, a link, the edge of a card.

   Shared by: policy, privacy, terms, return, shipping, payment, warranty,
   order-processing and the cancellation form.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --policy-bg: #f7f9f8;
  --policy-surface: #ffffff;
  --policy-border: rgba(13, 51, 38, 0.1);
  --policy-border-strong: rgba(13, 51, 38, 0.16);
  --policy-ink: #12211c;
  --policy-muted: #5c6b64;
  --policy-accent: #0d6a45;
  --policy-accent-soft: rgba(13, 106, 69, 0.08);
  /* No shadows anywhere. Depth on a legal page reads as decoration. */
  --policy-rule: rgba(13, 51, 38, 0.12);
}

.policy-page {
  position: relative;
  /* No overflow containment here. It existed to clip the two radial glows the
     old dark design painted behind the page; those are gone, and an
     overflow ancestor silently breaks `position: sticky` for the contents
     list on the privacy page. */
  /* The header floats over the page, so the masthead needs room to clear it —
     without this the eyebrow sat directly under the logo and read as part of
     it rather than as the start of the document. */
  padding: 10.5rem 0 7rem;
  background: var(--policy-bg);
}

.policy-shell {
  width: min(100% - 2.5rem, 860px);
  margin: 0 auto;
  text-align: start;
}

/* ── Masthead ───────────────────────────────────────────────────────────── */
.policy-hero {
  margin: 0 auto 2.6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--policy-border);
}

.policy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  color: var(--policy-accent);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A short rule beside the eyebrow: the one flourish on the page. */
.policy-kicker::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--policy-accent);
  opacity: 0.45;
}

.policy-title {
  margin: 0;
  color: var(--policy-ink);
  font-family: "Rubik", "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  /* Not uppercase: Hebrew has no case, and forcing it on the Latin fragments
     made the headings shout. */
  text-transform: none;
}

.policy-subtitle {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--policy-muted);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.policy-date {
  display: inline-block;
  margin: 1.1rem 0 0;
  padding: 0;
  color: var(--policy-muted);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ── Index of policies ──────────────────────────────────────────────────── */
.policy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  column-gap: 3rem;
  margin-top: 1.5rem;
}

.policy-card {
  display: block;
  /* A row with a rule, not a floating card. */
  padding: 1.5rem 0;
  border-top: 1px solid var(--policy-rule);
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.policy-card:hover {
  border-top-color: var(--policy-accent);
}

.policy-card h2 {
  margin: 0 0 0.45rem;
  color: var(--policy-ink);
  font-family: "Rubik", "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
}

.policy-card p {
  margin: 0;
  color: var(--policy-muted);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.policy-card span {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--policy-accent);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ── Document body ──────────────────────────────────────────────────────── */
.policy-content {
  /* The document sits on the page itself. Boxing legal text inside a rounded
     panel made it look like a widget rather than a document. */
  padding: 0;
  text-align: start;
}

.policy-content h2 {
  margin: 2.8rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--policy-rule);
  color: var(--policy-ink);
  font-family: "Rubik", "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.35;
}

.policy-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.policy-content p {
  margin: 0 0 1rem;
  color: var(--policy-muted);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 1rem;
  /* A legal page is read slowly; the measure and leading are set for that. */
  line-height: 1.85;
  max-width: 68ch;
}

.policy-content strong { color: var(--policy-ink); }

.policy-content ul {
  margin: 0 0 1.2rem;
  padding-inline-start: 1.15rem;
}

.policy-content li {
  margin-bottom: 0.65rem;
  color: var(--policy-muted);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 66ch;
}

.policy-content li::marker { color: var(--policy-accent); }

.policy-content a {
  color: var(--policy-accent);
  font-weight: 700;
  text-underline-offset: 3px;
}

.policy-back-link {
  display: inline-block;
  margin-top: 2.2rem;
  color: var(--policy-accent);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.policy-back-link:hover { border-bottom-color: var(--policy-accent); }

/* Keyboard users must be able to see where they are. */
.policy-page a:focus-visible,
.policy-page button:focus-visible,
.policy-page input:focus-visible,
.policy-page textarea:focus-visible {
  outline: 2px solid var(--policy-accent);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .policy-page { padding: 7rem 0 4.5rem; }
  .policy-hero { margin-bottom: 1.8rem; padding-bottom: 1.4rem; }
  .policy-card-grid { column-gap: 0; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
/* The policy pages shipped with a brand and a menu only — no account, no cart,
   and the row left-packed — so they read as a different site from the
   storefront. These rules align the header with it on a light background. */
.policy-page ~ * .navbar,
body:has(.policy-page) .navbar {
  background: transparent;
}

body:has(.policy-page) .navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-right: 0;
}

body:has(.policy-page) .nav-menu-wrapper { margin-inline: auto; }

.policy-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.policy-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--policy-ink);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.policy-nav-action:hover {
  background: var(--policy-accent-soft);
  color: var(--policy-accent);
}

@media (max-width: 767px) {
  body:has(.policy-page) .navbar-wrapper { gap: 0.75rem; }
  .policy-nav-action { width: 40px; height: 40px; }
}

/* ── Shipping cost by distance (shipping-policy.html, 2026-11-19) ────────── */
.ship-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.ship-zone {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--policy-border-strong);
  border-radius: 12px;
  background: var(--policy-surface);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
}
.ship-zone-range { color: var(--policy-ink); font-size: 1rem; }
.ship-zone-price { font-family: "Rubik", "Arial Hebrew", "Noto Sans Hebrew", sans-serif; font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.ship-zone.is-free { border-color: var(--policy-accent); background: var(--policy-accent-soft); }
.ship-zone.is-free .ship-zone-price { color: var(--policy-accent); }
.ship-zone.is-far .ship-zone-price { color: var(--policy-ink); }

.ship-check {
  margin: 1.5rem 0 0.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--policy-border);
  border-radius: 12px;
  background: var(--policy-surface);
  font-family: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
}
.ship-check-label { display: block; margin-bottom: 0.5rem; color: var(--policy-ink); font-weight: 700; }
.ship-check-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--policy-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--policy-ink);
  font: inherit;
  font-size: 1rem;
}
.ship-check-input:focus { outline: 2px solid var(--policy-accent); outline-offset: 1px; }
.ship-check-result { margin: 0.7rem 0 0; color: var(--policy-muted); font-weight: 700; }
.ship-check-result.is-free { color: var(--policy-accent); }
.ship-check-result.is-far { color: #7a4a0c; }
