/* Terms of Service (/policies/terms-of-service) — premium redesign.
   Reuses the shared gold/charcoal/ivory tokens from shop-premium-tokens.css
   (same palette as the other redesigned policy pages) so this stays
   visually one brand rather than the old plain Shopify-extract layout. */

.tos {
  background: var(--pdp-ivory, #faf6ef);
  padding: 5.5rem 1.5rem 6rem;
}

.tos__hero {
  text-align: center;
  padding-bottom: 3.5rem;
}

.tos__eyebrow {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  color: var(--pdp-gold, #b8860b);
  margin-bottom: 1.4rem;
}

.tos__title {
  margin: 0;
  font-family: var(--font-heading-family, serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  color: var(--pdp-ink, #2b241d);
  text-transform: capitalize;
}

.tos__updated {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 1.24rem;
  color: var(--pdp-ink-faint, rgba(43, 36, 29, 0.42));
}

.tos__rule {
  display: block;
  width: 6.4rem;
  height: 2px;
  margin: 2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--pdp-gold, #b8860b), transparent);
}

.tos__wrap {
  max-width: 84rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

/* --- Quick nav --- */

.tos__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 2rem clamp(1.6rem, 4vw, 2.6rem);
  background: var(--pdp-card, #fff);
  border: 1px solid var(--pdp-line, #e8dcc8);
  border-radius: var(--pdp-radius-lg, 16px);
  box-shadow: var(--pdp-shadow-sm, 0 2px 10px rgba(43, 36, 29, 0.06));
}

.tos__nav-chip {
  font-size: 1.16rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--pdp-line, #e8dcc8);
  background: var(--pdp-ivory, #faf6ef);
  color: var(--pdp-ink-soft, rgba(43, 36, 29, 0.66));
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tos__nav-chip:hover {
  border-color: var(--pdp-gold, #b8860b);
  color: var(--pdp-gold-dark, #8a6508);
  background: rgba(var(--pdp-gold-rgb, 184, 134, 11), 0.08);
}

/* --- Sections --- */

.tos__section {
  scroll-margin-top: 2rem;
  background: var(--pdp-card, #fff);
  border: 1px solid var(--pdp-line, #e8dcc8);
  border-radius: var(--pdp-radius-lg, 16px);
  box-shadow: var(--pdp-shadow-sm, 0 2px 10px rgba(43, 36, 29, 0.06));
  padding: 2.6rem clamp(1.6rem, 4vw, 3.2rem);
}

.tos__section-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.tos__section-badge {
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--pdp-gold-rgb, 184, 134, 11), 0.1);
  border: 1.5px solid var(--pdp-gold, #b8860b);
  color: var(--pdp-gold-dark, #8a6508);
  font-family: var(--font-heading-family, serif);
  font-size: 1.4rem;
}

.tos__heading {
  margin: 0;
  font-family: var(--font-heading-family, serif);
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--pdp-ink, #2b241d);
}

.tos__heading--lead {
  font-size: 2rem;
  font-style: italic;
}

/* --- Generic rich-text prose --- */

.tos__prose {
  color: var(--pdp-ink-soft, rgba(43, 36, 29, 0.66));
  font-size: 1.42rem;
  line-height: 1.72;
}

.tos__prose p {
  margin: 0 0 1.2rem;
}

.tos__prose p:last-child {
  margin-bottom: 0;
}

.tos__prose b,
.tos__prose strong {
  color: var(--pdp-ink, #2b241d);
  font-weight: 700;
}

.tos__prose a {
  color: var(--pdp-gold-dark, #8a6508);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.tos__prose ul,
.tos__prose ol {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.tos__prose ul:last-child,
.tos__prose ol:last-child {
  margin-bottom: 0;
}

.tos__prose ul li,
.tos__prose ol li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
}

.tos__prose ul li:last-child,
.tos__prose ol li:last-child {
  margin-bottom: 0;
}

.tos__prose ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.78rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pdp-gold, #b8860b);
}

.tos__prose ol {
  counter-reset: tos-item;
}

.tos__prose ol li {
  counter-increment: tos-item;
  padding-left: 2.3rem;
}

.tos__prose ol li::before {
  content: counter(tos-item);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1.5px solid var(--pdp-gold, #b8860b);
  background: rgba(var(--pdp-gold-rgb, 184, 134, 11), 0.08);
  color: var(--pdp-gold-dark, #8a6508);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Highlighted panel (closing Contact Information section) --- */

.tos__highlight {
  text-align: center;
  background: linear-gradient(180deg, var(--pdp-cream, #f4ece0), var(--pdp-ivory, #faf6ef));
  border-color: var(--pdp-gold, #b8860b);
}

.tos__highlight .tos__section-head {
  justify-content: center;
}

.tos__highlight .tos__prose {
  max-width: 52rem;
  margin: 0 auto;
}

@media screen and (max-width: 640px) {
  .tos {
    padding: 3.6rem 1.2rem 4.5rem;
  }

  .tos__section {
    padding: 2.1rem 1.5rem;
  }

  .tos__section-badge {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.2rem;
  }

  .tos__heading {
    font-size: 1.5rem;
  }

  .tos__heading--lead {
    font-size: 1.7rem;
  }
}
