/* ═══════════════════════════════════════════════════════════════════
   Terms of Service — editorial redesign matching About Us palette
   (navy section eyebrows, gold accents, dusty rose primary, cream cards).

   All rules scoped to .terms-preview so they don't leak.
   ═══════════════════════════════════════════════════════════════════ */

/* Clip any out-of-page layout (the global nav's hidden submenu extends
   past the viewport on wide screens — visibility:hidden still triggers
   layout overflow). Scoped to pages that load terms.css. */
html:has(.terms-preview),
body:has(.terms-preview){
  overflow-x:clip;
}
main:has(.terms-preview){
  background:var(--bg);
  max-width:none;
  padding:0;
  width:100%;
  overflow-x:clip;
}
.terms-preview{
  --terms-max: 1180px;
  font-family:var(--sans);
  color:var(--ink);
  line-height:1.65;
  overflow-x:clip;
  max-width:100vw;
}
.terms-preview > section{
  padding:4.5rem max(2rem, calc((100vw - var(--terms-max)) / 2));
  position:relative;
  margin:0;
}
@media (max-width:720px){
  .terms-preview > section{padding:3rem 1.25rem}
}

/* ═══ Shared section heads ═══════════════════════════════════════ */
.terms-preview .bmb-section-head{
  margin-bottom:2.5rem;
  max-width:64ch;
}
.terms-preview .bmb-section-head--centred{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}
.terms-preview .bmb-section-head .bmb-eyebrow{
  display:inline-flex;
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--navy);
  text-transform:uppercase;
  gap:14px;
  align-items:center;
  margin:0 0 1rem;
}
.terms-preview .bmb-section-head .bmb-eyebrow::before{
  content:"";
  width:36px;
  height:1px;
  background:var(--gold);
}
.terms-preview .bmb-section-head--centred .bmb-eyebrow{
  justify-content:center;
}
.terms-preview .bmb-section-head--centred .bmb-eyebrow::after{
  content:"";
  width:36px;
  height:1px;
  background:var(--gold);
}
.terms-preview .bmb-section-head h2{
  font-family:var(--font-display, var(--serif));
  font-size:clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight:500;
  color:var(--ink);
  letter-spacing:-.015em;
  line-height:1.15;
  margin:0;
}
.terms-preview .bmb-section-head h2 em{
  font-style:italic;
  color:var(--brand);
  font-weight:500;
}
.terms-preview .bmb-section-head p.bmb-section-lead{
  font-family:var(--serif);
  font-style:italic;
  font-size:1.05rem;
  line-height:1.6;
  color:var(--muted);
  margin:.9rem 0 0;
  max-width:60ch;
}
.terms-preview .bmb-section-head--centred p.bmb-section-lead{
  margin-left:auto;
  margin-right:auto;
}

/* ═══ HERO ═══════════════════════════════════════════════════════ */
.terms-preview .terms-hero{
  padding-top:5.5rem;
  padding-bottom:4rem;
  position:relative;
  overflow:hidden;
}
.terms-preview .terms-hero::before{
  content:"";
  position:absolute;
  top:-30%;
  right:-15%;
  width:55%;
  height:120%;
  background:radial-gradient(circle, rgba(179, 149, 85, 0.22) 0%, rgba(179, 149, 85, 0) 65%);
  filter:blur(120px);
  pointer-events:none;
  z-index:0;
}
.terms-preview .terms-hero::after{
  content:"";
  position:absolute;
  bottom:-30%;
  left:-15%;
  width:55%;
  height:120%;
  background:radial-gradient(circle, rgba(170, 127, 134, 0.22) 0%, rgba(91, 194, 231, 0.08) 50%, rgba(170, 127, 134, 0) 70%);
  filter:blur(120px);
  pointer-events:none;
  z-index:0;
}
.terms-preview .terms-hero-inner{
  position:relative;
  z-index:1;
  max-width:70ch;
}
.terms-preview .terms-hero-eyebrow{
  display:inline-flex;
  font-family:var(--sans);
  font-size:.92rem;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--navy);
  gap:14px;
  align-items:center;
  margin-bottom:1.25rem;
}
.terms-preview .terms-hero-eyebrow::before{
  content:"";
  width:42px;
  height:1px;
  background:var(--gold);
}
/* H1 is SEO-locked text-wise — keep it visible but quieter than the display */
.terms-preview .terms-hero-h1{
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.3em;
  color:var(--muted);
  text-transform:uppercase;
  margin:0 0 1rem;
}
.terms-preview .terms-hero-display{
  font-family:var(--font-display, var(--serif));
  font-size:clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight:500;
  line-height:1.05;
  letter-spacing:-.02em;
  color:var(--ink);
  margin:0 0 1.4rem;
  max-width:22ch;
}
.terms-preview .terms-hero-display em{
  font-style:italic;
  color:var(--brand);
  font-weight:500;
}
.terms-preview .terms-hero-lead{
  font-size:1.08rem;
  line-height:1.7;
  color:var(--ink-2);
  max-width:60ch;
  margin:0 0 1.8rem;
}
.terms-preview .terms-hero-meta{
  list-style:none;
  margin:0;
  padding:1.2rem 0 0;
  border-top:1px solid rgba(170, 127, 134, 0.18);
  display:flex;
  flex-wrap:wrap;
  gap:1.6rem 2.4rem;
}
.terms-preview .terms-hero-meta li{
  font-family:var(--sans);
  font-size:.92rem;
  color:var(--ink-2);
}
.terms-preview .terms-hero-meta li span{
  display:block;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--navy);
  margin-bottom:.25rem;
}

/* ═══ AT-A-GLANCE BAND ═══════════════════════════════════════════ */
.terms-preview .terms-glance{
  background:linear-gradient(180deg, rgba(247, 240, 240, 0.6), rgba(244, 232, 218, 0.4));
  border-top:1px solid rgba(170, 127, 134, 0.14);
  border-bottom:1px solid rgba(170, 127, 134, 0.14);
}
.terms-preview .terms-glance-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1.4rem;
}
.terms-preview .terms-glance-stat{
  padding:1.6rem 1.4rem;
  background:rgba(255, 250, 248, 0.7);
  border:1px solid rgba(170, 127, 134, 0.14);
  border-radius:18px;
  text-align:left;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.terms-preview .terms-glance-stat:hover{
  transform:translateY(-2px);
  border-color:rgba(91, 194, 231, 0.4);
  box-shadow:0 12px 32px -14px rgba(13, 44, 84, 0.18);
}
.terms-preview .terms-glance-num{
  display:block;
  font-family:var(--font-display, var(--serif));
  font-size:clamp(1.9rem, 3vw, 2.4rem);
  font-weight:500;
  color:var(--gold);
  line-height:1;
  margin-bottom:.5rem;
  letter-spacing:-.01em;
}
.terms-preview .terms-glance-label{
  display:block;
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--navy);
  margin-bottom:.45rem;
}
.terms-preview .terms-glance-detail{
  font-family:var(--sans);
  font-size:.92rem;
  line-height:1.5;
  color:var(--ink-2);
  margin:0;
}
@media (max-width:900px){
  .terms-preview .terms-glance-grid{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width:520px){
  .terms-preview .terms-glance-grid{grid-template-columns:1fr}
}

/* ═══ TABLE OF CONTENTS ══════════════════════════════════════════ */
.terms-preview .terms-toc{
  padding-top:3rem;
  padding-bottom:3rem;
}
.terms-preview .terms-toc-inner{
  border:1px solid rgba(170, 127, 134, 0.18);
  border-radius:22px;
  padding:2rem 2.2rem;
  background:rgba(255, 250, 248, 0.65);
}
.terms-preview .terms-toc-title{
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--navy);
  margin:0 0 1.2rem;
}
.terms-preview .terms-toc-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:.6rem 2rem;
  counter-reset:toc;
}
.terms-preview .terms-toc-list li{counter-increment:toc}
.terms-preview .terms-toc-list a{
  display:flex;
  align-items:baseline;
  gap:.8rem;
  font-family:var(--sans);
  font-size:.96rem;
  color:var(--ink-2);
  text-decoration:none;
  padding:.35rem 0;
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-color .2s ease;
}
.terms-preview .terms-toc-list a::before{
  content:counter(toc, decimal-leading-zero);
  font-family:var(--font-display, var(--serif));
  font-size:1.05rem;
  color:var(--gold);
  font-weight:500;
  min-width:1.8em;
}
.terms-preview .terms-toc-list a:hover{
  color:var(--brand);
  border-bottom-color:var(--brand);
}
@media (max-width:900px){
  .terms-preview .terms-toc-list{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width:520px){
  .terms-preview .terms-toc-list{grid-template-columns:1fr}
}

/* ═══ SECTION GROUPS ═════════════════════════════════════════════ */
.terms-preview .terms-group{
  padding-top:3.5rem;
  padding-bottom:3.5rem;
}
.terms-preview .terms-group + .terms-group{
  border-top:1px solid rgba(170, 127, 134, 0.14);
}

/* Article cards inside a group */
.terms-preview .terms-article{
  scroll-margin-top:80px;
  padding:2rem 2rem 1.8rem;
  background:rgba(255, 250, 248, 0.55);
  border:1px solid rgba(170, 127, 134, 0.14);
  border-radius:22px;
  margin-top:1.4rem;
  transition:border-color .3s ease, box-shadow .3s ease;
}
.terms-preview .terms-article:first-of-type{margin-top:0}
.terms-preview .terms-article:hover{
  border-color:rgba(91, 194, 231, 0.32);
  box-shadow:0 14px 36px -18px rgba(13, 44, 84, 0.18);
}
.terms-preview .terms-article-head{
  display:flex;
  align-items:baseline;
  gap:.9rem;
  margin-bottom:1.1rem;
  padding-bottom:.9rem;
  border-bottom:1px dashed rgba(170, 127, 134, 0.22);
}
.terms-preview .terms-article-num{
  font-family:var(--font-display, var(--serif));
  font-size:1.4rem;
  font-weight:500;
  color:var(--gold);
  line-height:1;
  letter-spacing:-.01em;
}
.terms-preview .terms-article-head h3{
  font-family:var(--font-display, var(--serif));
  font-size:clamp(1.2rem, 2vw, 1.55rem);
  font-weight:500;
  color:var(--ink);
  letter-spacing:-.01em;
  line-height:1.2;
  margin:0;
}
.terms-preview .terms-article h4{
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--navy);
  margin:1.4rem 0 .8rem;
}
.terms-preview .terms-article h4:first-of-type{margin-top:0}
.terms-preview .terms-article p{
  font-family:var(--sans);
  font-size:.98rem;
  line-height:1.7;
  color:var(--ink-2);
  margin:0 0 1rem;
}
.terms-preview .terms-article p:last-child{margin-bottom:0}
.terms-preview .terms-article p strong{
  color:var(--ink);
  font-weight:600;
}
.terms-preview .terms-article p em{
  font-style:italic;
  color:var(--muted);
}
.terms-preview .terms-article a{
  color:var(--brand);
  text-decoration:underline;
  text-decoration-color:rgba(170, 127, 134, 0.4);
  text-underline-offset:3px;
  transition:color .2s ease, text-decoration-color .2s ease;
}
.terms-preview .terms-article a:hover{
  color:var(--brand);
  text-decoration-color:var(--brand);
}
.terms-preview .terms-article ul{
  list-style:none;
  margin:0 0 1rem;
  padding:0;
}
.terms-preview .terms-article ul li{
  position:relative;
  padding-left:1.6rem;
  font-family:var(--sans);
  font-size:.96rem;
  line-height:1.65;
  color:var(--ink-2);
  margin:0 0 .55rem;
}
.terms-preview .terms-article ul li::before{
  content:"";
  position:absolute;
  left:.25rem;
  top:.7rem;
  width:.4rem;
  height:.4rem;
  background:var(--gold);
  border-radius:50%;
}
.terms-preview .terms-article ul li:last-child{margin-bottom:0}

/* Delivery charge table */
.terms-preview .terms-table-wrap{
  margin:1rem 0 1.2rem;
  overflow-x:auto;
  border-radius:14px;
  border:1px solid rgba(170, 127, 134, 0.18);
}
.terms-preview .terms-table{
  width:100%;
  border-collapse:collapse;
  font-family:var(--sans);
  font-size:.94rem;
}
.terms-preview .terms-table caption{
  caption-side:top;
  text-align:left;
  font-family:var(--sans);
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--navy);
  padding:.4rem .9rem .8rem;
}
.terms-preview .terms-table th,
.terms-preview .terms-table td{
  padding:.85rem 1rem;
  text-align:left;
  border-bottom:1px solid rgba(170, 127, 134, 0.16);
  color:var(--ink-2);
}
.terms-preview .terms-table th{
  background:rgba(244, 232, 218, 0.4);
  font-weight:700;
  color:var(--navy);
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.terms-preview .terms-table tr:last-child td{border-bottom:none}
.terms-preview .terms-table-note{
  font-family:var(--serif);
  font-style:italic;
  font-size:.92rem;
  color:var(--muted);
  margin:.4rem 0 1rem;
}

/* ═══ FINAL CTA ══════════════════════════════════════════════════ */
.terms-preview .terms-cta{
  text-align:center;
  padding-top:5rem;
  padding-bottom:5rem;
  background:linear-gradient(180deg, rgba(244, 232, 218, 0.4), rgba(247, 240, 240, 0.8));
  position:relative;
  overflow:hidden;
}
.terms-preview .terms-cta::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:65vw;
  height:65vw;
  max-width:900px;
  max-height:900px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(179, 149, 85, 0.18) 0%, rgba(179, 149, 85, 0) 60%);
  filter:blur(80px);
  pointer-events:none;
  z-index:0;
}
.terms-preview .terms-cta-inner{
  position:relative;
  z-index:1;
  max-width:62ch;
  margin:0 auto;
}
.terms-preview .terms-cta .bmb-eyebrow{
  display:inline-flex;
  font-family:var(--sans);
  font-size:.92rem;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--navy);
  gap:14px;
  align-items:center;
  margin:0 auto 1.4rem;
  justify-content:center;
}
.terms-preview .terms-cta .bmb-eyebrow::before,
.terms-preview .terms-cta .bmb-eyebrow::after{
  content:"";
  width:36px;
  height:1px;
  background:var(--gold);
}
.terms-preview .terms-cta h2{
  font-family:var(--font-display, var(--serif));
  font-size:clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight:500;
  color:var(--ink);
  letter-spacing:-.015em;
  line-height:1.1;
  margin:0 0 1.1rem;
}
.terms-preview .terms-cta p{
  font-size:1.05rem;
  line-height:1.65;
  color:var(--ink-2);
  margin:0 0 2rem;
}
.terms-preview .terms-cta-actions{
  display:flex;
  gap:1rem;
  justify-content:center;
  flex-wrap:wrap;
}
.terms-preview .terms-cta .bmb-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.95rem 2.2rem;
  border-radius:999px;
  font-family:var(--sans);
  font-size:1.02rem;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.terms-preview .terms-cta .bmb-cta--primary{
  background:linear-gradient(180deg, var(--brand) 0%, var(--brand-dk, #8f6e69) 100%);
  color:#fff;
  box-shadow:0 8px 24px -6px rgba(170, 127, 134, 0.55),
             0 16px 44px -10px rgba(143, 110, 105, 0.35);
}
.terms-preview .terms-cta .bmb-cta--primary:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 12px 32px -6px rgba(170, 127, 134, 0.75),
             0 20px 52px -10px rgba(143, 110, 105, 0.45);
}
.terms-preview .terms-cta .bmb-cta--ghost{
  background:transparent;
  color:var(--ink);
  border:1px solid rgba(170, 127, 134, 0.4);
}
.terms-preview .terms-cta .bmb-cta--ghost:hover{
  background:rgba(170, 127, 134, 0.08);
  color:var(--brand);
  border-color:var(--brand);
}
