/* =====================================================
   Infinity Health Organics — Legal Pages Styles
   (Terms & Conditions, Privacy Policy)
   Extends css/style.css brand variables & components
   ===================================================== */

.legal-hero {
  background: var(--grad-navy);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.legal-hero::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,158,79,0.28), transparent 70%);
  top: -130px; right: -50px;
}
.legal-hero .legal-icon {
  width: 66px; height: 66px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--ih-green-light);
  margin-bottom: 22px;
}
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.legal-hero p.legal-updated { color: #c7d9ec; font-size: 0.92rem; margin-bottom: 0; }
.legal-hero .breadcrumb-ih { color: #b9cee2; font-size: 0.9rem; margin-top: 18px; }
.legal-hero .breadcrumb-ih a { color: #fff; font-weight: 600; }
.legal-hero .breadcrumb-ih i { font-size: 0.7rem; margin: 0 8px; }

/* =========================== Layout =========================== */
.legal-body-section { padding: 70px 0 90px; background: #fff; }
.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .legal-layout { grid-template-columns: 1fr; }
}

/* =========================== Sticky TOC Sidebar =========================== */
.legal-toc {
  position: sticky;
  top: 110px;
  background: var(--ih-sky);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--ih-border);
}
@media (max-width: 991px) { .legal-toc { position: static; } }
.legal-toc h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ih-navy);
  margin-bottom: 16px;
  font-weight: 800;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 4px; }
.legal-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--ih-muted);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}
.legal-toc a::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ih-border);
  flex-shrink: 0;
  transition: var(--transition);
}
.legal-toc a:hover,
.legal-toc a.active {
  background: #fff;
  color: var(--ih-green-dark);
  box-shadow: var(--shadow-sm);
}
.legal-toc a:hover::before,
.legal-toc a.active::before { background: var(--ih-green); }

.legal-toc-contact {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--ih-border);
  font-size: 0.85rem;
  color: var(--ih-muted);
}
.legal-toc-contact a { color: var(--ih-green-dark); font-weight: 700; }

/* =========================== Content =========================== */
.legal-content { max-width: 900px; }
.legal-content .legal-intro {
  background: var(--ih-sky);
  border-left: 4px solid var(--ih-green);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ih-navy-light);
  margin-bottom: 40px;
}
.legal-content .legal-intro strong { color: var(--ih-navy); }

.legal-section { margin-bottom: 46px; scroll-margin-top: 110px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-green);
  color: #fff;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  margin-right: 12px;
}
.legal-section h2 {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ih-border);
}
.legal-section h3 {
  font-size: 1.1rem;
  color: var(--ih-navy);
  margin-bottom: 10px;
  margin-top: 22px;
}
.legal-section p { margin-bottom: 14px; font-size: 0.97rem; }
.legal-section ul, .legal-section ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}
.legal-section ul li, .legal-section ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--ih-muted);
}
.legal-section ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--ih-green);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.78rem;
}
.legal-section ol { counter-reset: legalcount; }
.legal-section ol li { counter-increment: legalcount; }
.legal-section ol li::before {
  content: counter(legalcount);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ih-green-dark);
  background: rgba(46,158,79,0.1);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.legal-highlight-box {
  background: var(--ih-sky);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 18px 0;
  border: 1px solid var(--ih-border);
}
.legal-highlight-box.warning {
  background: rgba(242,169,0,0.08);
  border-color: rgba(242,169,0,0.25);
}
.legal-highlight-box.warning i { color: var(--ih-gold); }
.legal-highlight-box i { color: var(--ih-teal); margin-right: 8px; }
.legal-highlight-box strong { color: var(--ih-navy); }

.legal-table-wrap { overflow-x: auto; margin: 18px 0; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.legal-table th {
  background: var(--grad-navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legal-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ih-muted);
  border-bottom: 1px solid var(--ih-border);
}
.legal-table tr:nth-child(even) td { background: var(--ih-sky); }

.legal-contact-card {
  background: var(--grad-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 30px 28px;
  margin-top: 40px;
}
.legal-contact-card h3 { color: #fff; margin-bottom: 12px; }
.legal-contact-card p { color: #c7d9ec; margin-bottom: 18px; }
.legal-contact-card .legal-contact-list { display: flex; flex-direction: column; gap: 12px; }
.legal-contact-card .legal-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  color: #fff;
  font-size: 0.92rem;
}
.legal-contact-card .legal-contact-list li::before { content: none; }
.legal-contact-card .legal-contact-list i {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--ih-green-light);
  flex-shrink: 0;
}
.legal-contact-card a { color: #fff; font-weight: 600; }
.legal-contact-card a:hover { color: var(--ih-green-light); }
