/**
 * Policy pages — shared stylesheet for /privacy, /terms, /returns,
 * /warranty, /accessibility.
 *
 * Scoped to the .twy-policy main wrapper so the editorial palette and
 * type tokens don't leak. Mirrors the same brand language as the
 * /delivery-installation-information/ page (DM Serif Display headlines,
 * JetBrains Mono eyebrows, sage + clay accents) so the legal surface
 * reads as part of one family rather than a stock plugin page.
 */

.twy-policy {
  --ink: #14160F;
  --ink-2: #1d211a;
  --ink-3: #2a2f26;
  --cream: #f6fff2;
  --cream-2: #eaf6e2;
  --cream-3: #ddf0d0;
  --paper: #ffffff;
  --sage: #93db4c;
  --sage-2: #ffcf7a;
  --sage-deep: #d97a35;
  --clay: #93db4c;
  --clay-deep: #bde858;
  --stone-2: #6a6a5a;
  --line: rgba(20, 23, 15, 0.12);
  --line-strong: rgba(20, 23, 15, 0.22);

  --font-display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.twy-policy * { box-sizing: border-box; }
.twy-policy a { color: inherit; text-decoration: underline; text-decoration-color: rgba(20,23,15,0.25); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.twy-policy a:hover { text-decoration-color: var(--clay); }
.twy-policy h1,
.twy-policy h2,
.twy-policy h3,
.twy-policy h4 { margin: 0; }
.twy-policy p { margin: 0; }
.twy-policy ul { list-style: none; margin: 0; padding: 0; }

.twy-policy .wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .twy-policy .wrap { padding: 0 48px; } }
@media (min-width: 1200px) { .twy-policy .wrap { padding: 0 64px; } }

/* Defensive — `[hidden]` fragility (see theme CLAUDE.md). */
.twy-policy [hidden] { display: none !important; }

/* ==========================================================================
   HERO
   ========================================================================== */

.twy-pol-hero {
  /* Stacked: dark linear overlay (top) + image (bottom). The overlay holds
     contrast for cream text on any photo region; the image renders below
     the radial sage glow added via ::before. */
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(20, 23, 15, 0.72) 0%, rgba(20, 23, 15, 0.78) 60%, rgba(20, 23, 15, 0.88) 100%),
    url("https://thegardenhub.co.uk/wp-content/uploads/2026/05/The_wellness_yard_home_hero.jpg");
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  color: var(--cream);
  /* 180px top clears the floating overlay header (twy-policy-overlay).
     Mirrors the existing /about-us, /contact, /science clearance. */
  padding: 180px 0 64px;
  position: relative;
  overflow: hidden;
}
.twy-pol-hero .wrap { position: relative; z-index: 2; }

.twy-pol-hero__crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(243, 241, 232, 0.55);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.twy-pol-hero__crumb a { color: inherit; text-decoration: none; }
.twy-pol-hero__crumb a:hover { color: var(--cream); }
.twy-pol-hero__crumb .sep { margin: 0 10px; opacity: 0.5; }

.twy-pol-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 900px) {
  .twy-pol-hero__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
  }
}

.twy-pol-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 224, 168, 0.16);
  border: 1px solid rgba(212, 224, 168, 0.32);
  color: var(--sage);
  margin-bottom: 28px;
}
.twy-pol-hero__icon svg { width: 24px; height: 24px; }

.twy-pol-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.twy-pol-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 24px;
}
.twy-pol-hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.twy-pol-hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(243, 241, 232, 0.78);
  max-width: 56ch;
  margin-bottom: 28px;
}

.twy-pol-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.twy-pol-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(243, 241, 232, 0.08);
  border: 1px solid rgba(243, 241, 232, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 241, 232, 0.78);
}
.twy-pol-hero__pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.twy-pol-hero__url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(243, 241, 232, 0.55);
  letter-spacing: 0.04em;
}

/* TOC card on the right of hero */
.twy-pol-hero__toc {
  background: rgba(243, 241, 232, 0.05);
  border: 1px solid rgba(243, 241, 232, 0.14);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.twy-pol-hero__toc-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 241, 232, 0.55);
  margin-bottom: 18px;
}
.twy-pol-hero__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pol-toc;
}
.twy-pol-hero__toc li {
  counter-increment: pol-toc;
  padding: 10px 0;
  border-top: 1px solid rgba(243, 241, 232, 0.1);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
}
.twy-pol-hero__toc li:first-child { border-top: none; }
.twy-pol-hero__toc li::before {
  content: counter(pol-toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sage);
  flex: none;
  width: 24px;
}
.twy-pol-hero__toc a {
  color: rgba(243, 241, 232, 0.86);
  text-decoration: none;
  transition: color 0.2s;
}
.twy-pol-hero__toc a:hover { color: var(--sage); }

/* ==========================================================================
   BODY
   ========================================================================== */

.twy-pol-body {
  background: var(--cream);
  padding: 80px 0 60px;
}
@media (min-width: 900px) {
  .twy-pol-body { padding: 96px 0 80px; }
}

.twy-pol-body__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .twy-pol-body__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 80px;
  }
}

/* DOC */
.twy-pol-doc {
  max-width: 72ch;
}
.twy-pol-doc > section + section {
  margin-top: 56px;
}

.twy-pol-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.twy-pol-section__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--sage-deep);
  display: inline-block;
}

.twy-pol-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}
.twy-pol-section h2 em { font-style: italic; color: var(--sage-deep); }

.twy-pol-section h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 32px 0 12px;
}

.twy-pol-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.twy-pol-section p:last-child { margin-bottom: 0; }

.twy-pol-section strong, .twy-pol-section b {
  color: var(--ink);
  font-weight: 600;
}

/* Custom bullet list */
.twy-pol-list {
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.twy-pol-list li {
  position: relative;
  padding: 0 0 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-3);
}
.twy-pol-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-deep);
  opacity: 0.7;
}
.twy-pol-list li b,
.twy-pol-list li strong {
  color: var(--ink);
}

/* Spec rows — for warranty period tables, deposit terms, etc. */
.twy-pol-spec {
  margin: 16px 0 20px;
  border-top: 1px solid var(--line);
}
.twy-pol-spec__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
@media (min-width: 600px) {
  .twy-pol-spec__row {
    grid-template-columns: 1fr 1.4fr;
    align-items: baseline;
  }
}
.twy-pol-spec__label {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.twy-pol-spec__value {
  color: var(--ink-3);
  line-height: 1.55;
}

/* Callout */
.twy-pol-callout {
  margin: 24px 0;
  padding: 22px 24px;
  background: var(--cream-2);
  border-left: 3px solid var(--clay);
  border-radius: 0 12px 12px 0;
}
.twy-pol-callout__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 8px;
}
.twy-pol-callout p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0;
}

/* Soft callout (sage) — for the "Our commitment" panel on warranty / accessibility */
.twy-pol-callout--sage {
  background: rgba(212, 224, 168, 0.22);
  border-left-color: var(--sage-deep);
}
.twy-pol-callout--sage .twy-pol-callout__key { color: var(--sage-deep); }

/* SIDEBAR */
.twy-pol-side {
  position: relative;
}
@media (min-width: 1024px) {
  .twy-pol-side {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.twy-pol-side__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
}
.twy-pol-side__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-bottom: 14px;
}
.twy-pol-side__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
}
.twy-pol-side__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.twy-pol-side__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.twy-pol-side__row:first-of-type { border-top: none; padding-top: 0; }
.twy-pol-side__row .k { color: var(--stone-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.twy-pol-side__row .v { color: var(--ink); text-align: right; }
.twy-pol-side__row .v a { text-decoration-color: rgba(20,23,15,0.4); }

.twy-policy .twy-pol-side__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s;
  margin-top: 12px;
}
.twy-policy .twy-pol-side__btn:hover,
.twy-policy .twy-pol-side__btn:focus-visible {
  background: var(--ink-2);
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.twy-pol-side__siblings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.twy-pol-side__sibling {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.twy-pol-side__sibling:hover {
  border-color: var(--line-strong);
  background: var(--paper);
  text-decoration: none;
}
.twy-pol-side__sibling .arrow {
  font-family: var(--font-mono);
  color: var(--sage-deep);
  transition: transform 0.2s;
}
.twy-pol-side__sibling:hover .arrow { transform: translateX(2px); }
.twy-pol-side__sibling[aria-current="page"] {
  background: var(--cream-2);
  border-color: var(--ink);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.twy-pol-cta {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 80px 0;
}
.twy-pol-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.twy-pol-cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 16px;
}
.twy-pol-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.twy-pol-cta h2 em { font-style: italic; color: var(--sage-deep); }
.twy-pol-cta p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 auto 28px;
  max-width: 52ch;
}
.twy-pol-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.twy-pol-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}
.twy-policy .twy-pol-cta__btn--dark {
  background: var(--ink);
  color: #ffffff;
}
.twy-policy .twy-pol-cta__btn--dark:hover,
.twy-policy .twy-pol-cta__btn--dark:focus-visible {
  background: var(--ink-2);
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}
.twy-policy .twy-pol-cta__btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.twy-policy .twy-pol-cta__btn--ghost:hover,
.twy-policy .twy-pol-cta__btn--ghost:focus-visible {
  border-color: var(--ink);
  background: var(--cream-2);
  color: var(--ink);
  text-decoration: none;
}
