/* ============================================================
   ANNABI COOKIES — terms.css
   All styles specific to terms.html.
   Shared styles (nav, footer, buttons, tokens) live in main.css.
   ============================================================ */


/* ============================================================
   1. PAGE BANNER
   ============================================================ */

#terms-hero {
  background: var(--off-white);
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.terms-hero-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--black);
}

.terms-meta {
  margin-top: var(--space-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}


/* ============================================================
   2. BODY SECTION — CONTENT WRAPPER
   ============================================================ */

#terms-body {
  padding-block: var(--space-20);
}

.terms-content {
  max-width: 660px;
}


/* ============================================================
   3. INTRO PARAGRAPHS
   ============================================================ */

.tc-intro {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-5);
}

.tc-intro--last {
  margin-bottom: var(--space-16);
}


/* ============================================================
   4. TERMS SECTIONS
   ============================================================ */

.tc-section {
  margin-bottom: var(--space-12);
}

.tc-section:last-child {
  margin-bottom: 0;
}

/* Section heading — number + title, peach underline */
.tc-heading {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--peach);
  display: inline-block;
}

/* Sub-headings (Coverage and timing, Delivery arrangements, etc.) */
.tc-subheading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

/* Add top spacing only when a subheading follows a paragraph */
.tc-section p + .tc-subheading {
  margin-top: var(--space-6);
}

/* Body paragraphs within sections */
.tc-section p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: var(--space-4);
}

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

/* Links within terms text */
.tc-section a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--ease);
}

.tc-section a:hover {
  opacity: 0.55;
}


/* ============================================================
   5. BULLET LISTS
   ============================================================ */

.tc-list {
  list-style: none;
  margin: 0 0 var(--space-4) 0;
  padding: 0;
}

.tc-list li {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.65);
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  position: relative;
}

.tc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach);
  flex-shrink: 0;
}

.tc-list li strong {
  color: var(--black);
}


/* ============================================================
   6. PLACEHOLDER BADGES
   ============================================================ */

.tc-placeholder {
  display: inline-block;
  background: rgba(255, 217, 194, 0.35);
  border: 1px dashed var(--peach-deep);
  color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  font-size: 12px;
  padding: 1px 8px;
  font-style: italic;
  vertical-align: baseline;
}


/* ============================================================
   7. LEGAL REVIEW NOTE (Section 7 — Allergens)
   ============================================================ */

.tc-legal-note {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: rgba(0, 0, 0, 0.45) !important;
  font-style: italic;
  background: rgba(255, 217, 194, 0.18);
  border-left: 2px solid var(--peach);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-3) var(--space-4) !important;
  margin-top: var(--space-4);
  margin-bottom: 0 !important;
}


/* ============================================================
   8. RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .terms-content {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  #terms-hero {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-8);
  }

  #terms-body {
    padding-block: var(--space-16);
  }

  .tc-heading {
    font-size: 15px;
  }

  .tc-section p,
  .tc-list li {
    font-size: 13px;
  }
}
