/* ==========================================================================
   Policy pages — shared Commercium theme
   Used by: privacy-policy, terms-of-service, terms-of-use,
            refund-policy, cancellation-policy
   Hero reuses shared .cm-ph / .cm-dark-grid (pricing-hero.css)
   ========================================================================== */

.cm-policy {
  --pp-primary: #008CE2;
  --pp-primary-soft: #2BA4EC;
  --pp-navy: #113D7E;
  --pp-ink: #1C1D21;
  --pp-body: #353C46;
  --pp-muted: #6B7785;
  --pp-border: rgba(28, 29, 33, 0.1);
  --pp-surface: #fafbfc;
  --pp-soft: #f4f8fc;
  --pp-card: #ffffff;
  --pp-soft-blue: #e8f3fb;
  --pp-gradient: linear-gradient(120deg, #0D97D5 0%, #0E7CBB 48%, #113D7E 100%);
  --pp-gradient-dark: linear-gradient(135deg, #0a0f1c 0%, #113D7E 55%, #0E7CBB 100%);
  --pp-font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --pp-font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --pp-radius: 14px;
  --pp-radius-lg: 20px;
  --pp-shadow: 0 10px 28px rgba(17, 61, 126, 0.08);
  --pp-shadow-hover: 0 16px 36px rgba(17, 61, 126, 0.12);
  background: var(--pp-surface);
  color: var(--pp-body);
  font-family: var(--pp-font-body);
}

.cm-policy *,
.cm-policy *::before,
.cm-policy *::after {
  box-sizing: border-box;
}

.cm-policy__wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

/* Compact hero meta under title */
.cm-ph.commercium-head-banner .cm-ph__meta {
  margin: 14px 0 0;
  font-family: var(--ph-font-body, "Manrope", sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(154, 167, 184, 0.95);
  letter-spacing: 0.02em;
}

/* ── Intro / summary card ── */
.cm-policy__intro,
.cm-policy__summary {
  background: var(--pp-gradient-dark);
  border-radius: var(--pp-radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.75;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pp-shadow);
}

.cm-policy__intro strong,
.cm-policy__summary strong {
  color: #fff;
  font-weight: 700;
}

.cm-policy__summary h2 {
  font-family: var(--pp-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
}

.cm-policy__summary p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.7;
}

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

.cm-policy__summary ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.cm-policy__summary ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cm-policy__summary ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5FCB8B;
  font-weight: 700;
}

/* ── Content section cards ── */
.cm-policy__section {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: 28px 32px;
  margin-bottom: 18px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.cm-policy__section:hover {
  border-color: rgba(0, 140, 226, 0.18);
  box-shadow: var(--pp-shadow-hover);
}

.cm-policy__section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cm-policy__num {
  background: var(--pp-gradient);
  color: #fff;
  font-family: var(--pp-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 140, 226, 0.28);
}

.cm-policy__section h2 {
  font-family: var(--pp-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pp-ink);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.cm-policy__section h3 {
  font-family: var(--pp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pp-ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.cm-policy__section h5 {
  font-family: var(--pp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pp-navy);
  margin: 0 0 8px;
}

.cm-policy__section p,
.cm-policy__lead {
  font-size: 0.96rem;
  color: var(--pp-body);
  line-height: 1.7;
  margin: 0 0 12px;
}

.cm-policy__section p:last-child,
.cm-policy__lead:last-child {
  margin-bottom: 0;
}

.cm-policy__section a,
.cm-policy a {
  color: var(--pp-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cm-policy__section a:hover,
.cm-policy a:hover {
  color: var(--pp-navy);
  text-decoration: underline;
}

.cm-policy__section ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
}

.cm-policy__section ul li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--pp-body);
  line-height: 1.6;
}

.cm-policy__section ul li::before {
  content: "•";
  position: absolute;
  left: 7px;
  color: var(--pp-primary);
  font-weight: 700;
}

.cm-policy__section ul ul {
  margin: 4px 0 4px 16px;
}

.cm-policy__section ul ul li::before {
  content: "–";
  color: var(--pp-muted);
}

.cm-policy__muted {
  font-size: 0.88rem !important;
  color: var(--pp-muted) !important;
}

/* Page title inside light content (refund / cancellation) */
.cm-policy__page-title {
  font-family: var(--pp-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--pp-ink);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.25;
}

.cm-policy__intro .cm-policy__page-title {
  color: #fff;
  margin-bottom: 12px;
}

.cm-policy__intro > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.75;
}

.cm-policy__contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* ── Highlight / callout blocks ── */
.cm-policy__sub {
  width: 100%;
  background: var(--pp-soft-blue);
  border-left: 3px solid var(--pp-primary);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 12px 0;
}

.cm-policy__sub-title {
  font-family: var(--pp-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pp-ink);
  margin-bottom: 6px;
}

.cm-policy__sub p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--pp-body);
  line-height: 1.6;
}

.cm-policy__sub ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cm-policy__sub ul li {
  font-size: 0.9rem;
  color: var(--pp-body);
  padding: 3px 0 3px 18px;
  position: relative;
  line-height: 1.55;
}

.cm-policy__sub ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--pp-primary);
  font-weight: 700;
}

.cm-policy__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cm-policy__pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--pp-font-body);
}

.cm-policy__pill--purpose {
  background: #dbeafe;
  color: #1d4ed8;
}

.cm-policy__pill--legal {
  background: #d1fae5;
  color: #065f46;
}

.cm-policy__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #065f46;
  line-height: 1.55;
}

.cm-policy__note .cm-policy__note-icon {
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.cm-policy__warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
  line-height: 1.55;
}

/* ── Entity pills ── */
.cm-policy__entity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.cm-policy__entity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.cm-policy__entity--india {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.cm-policy__entity--usa {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.cm-policy__entity-list p {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--pp-ink);
}

/* ── Two-column cards ── */
.cm-policy__two-col {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.cm-policy__col {
  border-radius: 10px;
  padding: 14px 16px;
}

.cm-policy__col--blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.cm-policy__col--amber {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.cm-policy__col--red {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.cm-policy__col--green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.cm-policy__col-title {
  font-family: var(--pp-font-display);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cm-policy__col--blue .cm-policy__col-title { color: #1d4ed8; }
.cm-policy__col--amber .cm-policy__col-title { color: #c2410c; }
.cm-policy__col--red .cm-policy__col-title { color: #b91c1c; }
.cm-policy__col--green .cm-policy__col-title { color: #065f46; }

.cm-policy__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cm-policy__col ul li {
  padding: 3px 0 3px 16px;
  position: relative;
  font-size: 0.875rem;
  color: var(--pp-body);
  line-height: 1.5;
}

.cm-policy__col ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  font-weight: 700;
}

.cm-policy__col--blue ul li::before { color: #1d4ed8; }
.cm-policy__col--amber ul li::before { color: #c2410c; }
.cm-policy__col--red ul li::before { color: #b91c1c; }
.cm-policy__col--green ul li::before { color: #065f46; }

/* ── Tables ── */
.cm-policy__table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  border-radius: 10px;
}

.cm-policy__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 420px;
}

.cm-policy__table thead tr {
  background: var(--pp-navy);
}

.cm-policy__table--soft thead tr {
  background: #eef2f7;
}

.cm-policy__table thead th {
  color: #fff;
  font-family: var(--pp-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  text-align: left;
}

.cm-policy__table--soft thead th {
  color: var(--pp-ink);
}

.cm-policy__table thead th:first-child {
  border-radius: 10px 0 0 0;
}

.cm-policy__table thead th:last-child {
  border-radius: 0 10px 0 0;
}

.cm-policy__table tbody tr {
  border-bottom: 1px solid rgba(0, 140, 226, 0.12);
  background: #fff;
}

.cm-policy__table tbody tr:hover {
  background: var(--pp-soft-blue);
}

.cm-policy__table tbody td {
  padding: 11px 16px;
  color: var(--pp-body);
  line-height: 1.5;
}

.cm-policy__table tbody td:first-child {
  font-weight: 600;
  color: var(--pp-ink);
}

.cm-policy__badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ── Feature grids ── */
.cm-policy__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.cm-policy__grid-item {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 180px;
  background: var(--pp-soft-blue);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cm-policy__grid-icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-top: 2px;
}

.cm-policy__grid-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pp-ink);
  line-height: 1.35;
}

.cm-policy__rights-item {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 180px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-policy__rights-item::before {
  content: "✓";
  color: #059669;
  font-weight: 700;
}

.cm-policy__liab-item {
  flex: 1 1 calc(25% - 12px);
  min-width: 140px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cm-policy__liab-item::before {
  content: "✕";
  font-weight: 700;
  color: #ef4444;
  flex-shrink: 0;
}

.cm-policy__fm-item {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 180px;
  background: var(--pp-soft-blue);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--pp-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

/* ── Contact block ── */
.cm-policy__contact {
  background: var(--pp-gradient-dark);
  border-radius: var(--pp-radius-lg);
  padding: 32px;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--pp-shadow);
}

.cm-policy__contact h2 {
  font-family: var(--pp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.cm-policy__contact-entity {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.65;
}

.cm-policy__contact-entity strong {
  color: #fff;
}

.cm-policy__contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cm-policy__contact-email:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #bfdbfe;
  text-decoration: none;
}

.cm-policy__footer-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--pp-muted);
  margin-top: 40px;
  line-height: 1.5;
}

/* ── Simple policy blocks (refund / cancellation) ── */
.cm-policy__block {
  margin-top: 4px;
}

.cm-policy__block + .cm-policy__block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--pp-border);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cm-policy__two-col {
    grid-template-columns: 1fr;
  }

  .cm-policy__grid-item,
  .cm-policy__rights-item,
  .cm-policy__fm-item {
    flex: 1 1 calc(50% - 12px);
  }

  .cm-policy__liab-item {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .cm-policy__wrap {
    padding: 40px 16px 64px;
  }

  .cm-policy__intro,
  .cm-policy__summary,
  .cm-policy__section,
  .cm-policy__contact {
    padding: 22px 18px;
  }

  .cm-policy__section-header {
    align-items: flex-start;
  }

  .cm-policy__grid-item,
  .cm-policy__rights-item,
  .cm-policy__fm-item,
  .cm-policy__liab-item {
    flex: 1 1 100%;
    min-width: 0;
  }

  .cm-policy__contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .cm-policy__contact-actions {
    width: 100%;
    align-items: stretch;
  }

  .cm-policy__contact-email {
    width: 100%;
    justify-content: center;
  }
}
