/* Intellimindz legal pages: /privacy-policy, /terms-of-service, /refund-policy, /return-policy and /cancellation-policy.
   The header matches the Contact page (contact.css); the document sits in one
   card, with its contents beside it on wide screens and above it on narrow ones. */
.imz-lg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f7faf9;
  color: #1a2228;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.imz-lg-head {
  padding: 60px 1rem 36px;
  text-align: center;
  background-color: #f7faf9;
}

.imz-lg-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.imz-lg-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #14b5aa;
  margin-bottom: 0.5rem;
}

.imz-lg-head h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .imz-lg-head h1 {
    font-size: 3rem;
  }
}

.imz-lg-lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 0.75rem;
}

.imz-lg-updated {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
}

/* ---- Contents and document ---- */
.imz-lg-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.imz-lg-toc {
  position: sticky;
  top: 99px; /* below the sticky site header (75px) */
  padding: 20px 20px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.imz-lg-toc-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.imz-lg-toc-intro {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.imz-lg-toc ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #64748b;
}

.imz-lg-toc li {
  margin-bottom: 8px;
}

.imz-lg-toc a {
  color: #334155;
  text-decoration: none;
}

.imz-lg-toc a:hover,
.imz-lg-toc a:focus-visible {
  color: #1554c8;
  text-decoration: underline;
}

.imz-lg-doc {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  padding: 12px 24px 20px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .imz-lg-doc {
    padding: 20px 48px 28px;
  }
}

.imz-lg-section {
  padding: 24px 0 8px;
  border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: 96px;
}

.imz-lg-section:last-child {
  border-bottom: 0;
}

.imz-lg-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.imz-lg-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.5rem 0 0.5rem;
}

.imz-lg-section p,
.imz-lg-section ul {
  margin: 0 0 1rem;
}

.imz-lg-section ul {
  padding-left: 1.5rem;
}

.imz-lg-section li {
  margin-bottom: 0.4rem;
}

.imz-lg-section strong {
  color: #0f172a;
}

.imz-lg-section a {
  color: #1554c8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.imz-lg-section a:hover {
  color: #0d3d9a;
}

.imz-lg-contact {
  margin: 0 0 1rem;
  padding: 16px 20px;
  border-radius: 12px;
  background: #eaf4ff;
}

.imz-lg-contact p {
  margin: 0;
}

.imz-lg-contact .imz-lg-contact-title {
  margin-bottom: 4px;
  font-weight: 700;
  color: #0f172a;
}

.imz-lg-table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.imz-lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
}

.imz-lg-table th,
.imz-lg-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.imz-lg-table th:last-child,
.imz-lg-table td:last-child {
  border-right: 0;
}

.imz-lg-table tbody tr:last-child td {
  border-bottom: 0;
}

.imz-lg-table thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.imz-lg-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.imz-lg-table th:first-child,
.imz-lg-table td:first-child {
  width: 68px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---- Narrow screens: contents above the document ---- */
@media (max-width: 991px) {
  .imz-lg-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .imz-lg-toc {
    position: static;
  }
}
