/**
 * TCS Policy Page · Terms & Conditions Promo
 * full_image = 整图复刻 · structured = 文案+背景
 */

.tcs-policy-terms-promo {
  --tcs-pd-tp-theme: #2a5298;
  --tcs-pd-tp-theme-rgb: 42, 82, 152;
  --tcs-pd-tp-accent: #f9c846;
  --tcs-pd-tp-text: #2c3e50;
  --tcs-pd-tp-muted: #5c6b7a;
  overflow-x: hidden;
}

.tcs-policy-terms-promo .container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

/* ----- Full banner image (recommended) ----- */

.tcs-policy-terms-promo__hero--full {
  min-height: 0;
  padding: 0;
  background: #eef2f7;
}

.tcs-policy-terms-promo__full-image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ----- Structured hero ----- */

.tcs-policy-terms-promo__hero {
  position: relative;
  min-height: clamp(480px, 50vw, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef2f7;
  padding: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 64px);
}

.tcs-policy-terms-promo__media,
.tcs-policy-terms-promo__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tcs-policy-terms-promo__media {
  background-image: var(--tcs-pd-tp-hero-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.tcs-policy-terms-promo__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 32%,
      rgba(255, 255, 255, 0.78) 48%,
      rgba(255, 255, 255, 0.35) 62%,
      rgba(255, 255, 255, 0.08) 78%,
      rgba(255, 255, 255, 0) 100%
    );
}

.tcs-policy-terms-promo__hero .container {
  position: relative;
  z-index: 2;
}

.tcs-policy-terms-promo__hero-inner {
  max-width: min(680px, 55%);
}

.tcs-policy-terms-promo__brand--full {
  display: block;
  margin-bottom: 22px;
}

.tcs-policy-terms-promo__logo-full {
  display: block;
  width: auto;
  max-width: min(300px, 100%);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.tcs-policy-terms-promo__title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.8vw, 2.125rem);
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: -0.02em;
  color: var(--tcs-pd-tp-theme);
}

.tcs-policy-terms-promo__title-accent {
  position: relative;
  display: inline-block;
}

.tcs-policy-terms-promo__title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--tcs-pd-tp-accent);
}

.tcs-policy-terms-promo__title-rest {
  font-weight: 800;
}

.tcs-policy-terms-promo__subtitle {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: clamp(0.875rem, 1.35vw, 0.9875rem);
  line-height: 1.65;
  color: var(--tcs-pd-tp-muted);
}

.tcs-policy-terms-promo__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 20px) clamp(8px, 2vw, 10px);
}

.tcs-policy-terms-promo__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tcs-policy-terms-promo__feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tcs-pd-tp-theme);
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
}

.tcs-policy-terms-promo__feature-icon svg,
.tcs-policy-terms-promo__feature-icon i {
  width: 1.75rem !important;
  height: 1.75rem !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.tcs-policy-terms-promo__feature-copy {
  min-width: 0;
}

.tcs-policy-terms-promo__feature-title {
  margin: 0 0 4px;
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--tcs-pd-tp-theme);
}

.tcs-policy-terms-promo__feature-desc {
  margin: 0;
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  line-height: 1.5;
  color: var(--tcs-pd-tp-muted);
}

/* ----- Bottom bar (statement + badges) ----- */

.tcs-policy-terms-promo__bar {
  background: var(--tcs-pd-tp-theme);
  padding: clamp(16px, 2.5vw, 22px) 0;
}

.tcs-policy-terms-promo__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 36px);
}

.tcs-policy-terms-promo__bar-statement {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 30%;
  min-width: 0;
}

.tcs-policy-terms-promo__bar-statement-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1;
}

.tcs-policy-terms-promo__bar-statement-icon svg,
.tcs-policy-terms-promo__bar-statement-icon i {
  width: 2.25rem !important;
  height: 2.25rem !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.tcs-policy-terms-promo__bar-statement-text {
  margin: 0;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
}

.tcs-policy-terms-promo__bar-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 16px);
  flex: 1 1 48%;
}

.tcs-policy-terms-promo__bar-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 6px;
}

.tcs-policy-terms-promo__bar-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
}

.tcs-policy-terms-promo__bar-badge-icon svg,
.tcs-policy-terms-promo__bar-badge-icon i {
  width: 1.75rem !important;
  height: 1.75rem !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.tcs-policy-terms-promo__bar-badge-label {
  font-size: clamp(0.6875rem, 0.85vw, 0.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991.98px) {
  .tcs-policy-terms-promo__hero {
    min-height: auto;
    padding: 32px 0 40px;
  }

  .tcs-policy-terms-promo__media {
    background-position: center center;
    opacity: 0.35;
  }

  .tcs-policy-terms-promo__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.94) 55%,
      rgba(255, 255, 255, 0.9) 100%
    );
  }

  .tcs-policy-terms-promo__hero-inner {
    max-width: 100%;
  }

  .tcs-policy-terms-promo__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .tcs-policy-terms-promo__bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .tcs-policy-terms-promo__bar-statement {
    flex: none;
  }

  .tcs-policy-terms-promo__bar-badges {
    flex: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

@media (max-width: 767.98px) {
  .tcs-policy-terms-promo__title {
    line-height: 1.35;
  }

  .tcs-policy-terms-promo__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .tcs-policy-terms-promo__feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0 4px;
  }

  .tcs-policy-terms-promo__feature-icon {
    width: 44px;
    height: 44px;
  }

  .tcs-policy-terms-promo__feature-title {
    font-size: 0.8125rem;
  }

  .tcs-policy-terms-promo__feature-desc {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .tcs-policy-terms-promo__bar {
    padding: 24px 0 28px;
  }

  .tcs-policy-terms-promo__bar-statement {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .tcs-policy-terms-promo__bar-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .tcs-policy-terms-promo__bar-badge {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
    padding: 0 6px;
  }

  .tcs-policy-terms-promo__bar-badge-label {
    flex: none;
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.35;
  }
}

@media (max-width: 575.98px) {
  .tcs-policy-terms-promo .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tcs-policy-terms-promo__hero {
    padding: 28px 0 36px;
  }

  .tcs-policy-terms-promo__subtitle {
    margin-bottom: 24px;
  }

  .tcs-policy-terms-promo__feature {
    padding: 0;
  }

  .tcs-policy-terms-promo__bar-badge {
    padding: 0 4px;
  }
}
