/* =============================================================================
   SERVICE TERMS & CONDITIONS PAGE — Page-specific styles only
   Requires: global.css
   Enqueue in WordPress via wp_enqueue_style() with global.css as dependency.
   ============================================================================= */

/* ── Page hero ── */
.terms-hero {
  background: var(--clr-bg-alt);
  padding: 8rem 0 var(--space-16);
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
}

/* ── Meta (last updated date) ── */
.terms-meta {
  text-align: center;
  color: #4b5563;
  font-size: 0.8rem;
  margin-bottom: var(--space-12);
}

/* ── Layout ── */
.terms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-12);
  align-items: start;
}

/* ── Sticky TOC ── */
.terms-toc {
  position: sticky;
  top: 5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}
.terms-toc h4 {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: var(--space-3);
}
.terms-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.terms-toc ol li {
  counter-increment: toc;
  margin-bottom: 0.4rem;
}
.terms-toc ol li a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.4;
  display: block;
  transition: color var(--transition-fast);
}
.terms-toc ol li a:hover { color: var(--clr-brand); }
.terms-toc ol li a::before {
  content: counter(toc) ". ";
  color: var(--clr-brand);
  font-weight: 700;
}

/* ── Sections ── */
.terms-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid #1a1a1a;
}
.terms-section:last-child { border-bottom: none; }

.terms-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.terms-section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid var(--clr-border-soft);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-brand);
  flex-shrink: 0;
}
.terms-section h2 {
  font-size: var(--font-size-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-strong);
}
.terms-section p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.terms-section p:last-child { margin-bottom: 0; }
.terms-section a { color: var(--clr-brand); text-decoration: none; }
.terms-section a:hover { text-decoration: underline; }

/* Inline bold emphasis — replaces the inline style="color:#f3f4f6" pattern */
.terms-section strong { color: var(--clr-text-strong); }

/* ── Highlight box ── */
.terms-highlight {
  background: var(--clr-surface);
  border-left: 3px solid var(--clr-brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  color: var(--clr-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.terms-highlight strong { color: var(--clr-text-strong); }

/* ── Warning box ── */
.terms-warning {
  background: rgba(0, 255, 0, 0.04);
  border-left: 3px solid var(--clr-brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  color: var(--clr-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .terms-layout { grid-template-columns: 1fr; }
  .terms-toc    { position: static; }
  .terms-hero   { padding: var(--space-24) 0 var(--space-12); }
}

/* ── Policy list (checkmark bullets — shipping page) ── */
.policy-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.policy-list li i {
  color: var(--clr-brand);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Weight bands table (shipping page) ── */
.policy-weight-table {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-6) 0;
}
.policy-weight-row {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
  color: var(--clr-text-soft);
}
.policy-weight-row:last-child { border-bottom: none; }
.policy-weight-header {
  background: var(--clr-surface);
  color: var(--clr-text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.policy-weight-row i {
  color: var(--clr-brand);
  margin-right: var(--space-3);
}
