/**
 * Terms & Privacy — scoped styles (matches design-preview/terms-privacy)
 * All rules live under .tp-page to avoid Bootstrap / site CSS conflicts.
 */

.tp-page {
  --tp-navy: #002147;
  --tp-orange: #ff6600;
  --tp-ink: #1a2332;
  --tp-muted: #6b7280;
  --tp-line: #e5e7eb;
  --tp-bg: #f7f8fa;
  --tp-blue-light: #e8f4fd;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--tp-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.tp-page *,
.tp-page *::before,
.tp-page *::after {
  box-sizing: border-box;
}

.tp-page img {
  max-width: 100%;
  display: block;
}

.tp-page a {
  text-decoration: none;
  color: inherit;
}

.tp-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.tp-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1400&q=80') center/cover;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.tp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.88), rgba(0, 33, 71, 0.6));
}

.tp-hero .tp-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 50px 20px;
  width: 100%;
}

.tp-hero-text {
  color: #fff;
  max-width: 600px;
}

.tp-crumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.tp-crumb a {
  color: rgba(255, 255, 255, 0.7);
}

.tp-hero-text h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
  color: #fff;
}

.tp-hero-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

.tp-trust-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 280px;
}

.tp-trust-card i {
  font-size: 32px;
  color: var(--tp-navy);
}

.tp-trust-card b {
  display: block;
  font-size: 14px;
  color: var(--tp-navy);
}

.tp-trust-card span {
  font-size: 12px;
  color: var(--tp-muted);
}

/* Sections */
.tp-sec {
  padding: 60px 0;
}

.tp-sec.alt {
  background: var(--tp-bg);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.tp-sec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tp-sec-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--tp-navy);
  margin: 0;
}

.tp-sec-header h2 em {
  color: var(--tp-orange);
  font-style: normal;
}

.tp-sec-header p {
  font-size: 14px;
  color: var(--tp-muted);
  max-width: 500px;
  line-height: 1.7;
  margin: 8px 0 0;
}

.tp-sec-illus {
  font-size: 48px;
  color: var(--tp-orange);
  opacity: 0.8;
}

.tp-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tp-point-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  transition: 0.25s;
}

.tp-sec.alt .tp-point-card {
  background: #fff;
}

.tp-point-card:hover {
  box-shadow: 0 8px 24px rgba(0, 33, 71, 0.08);
  transform: translateY(-2px);
}

.tp-point-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tp-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.tp-point-card .tp-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tp-blue-light);
  color: var(--tp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tp-point-body h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--tp-navy);
  margin: 0 0 6px;
}

.tp-point-body p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.tp-callout-orange {
  background: #fef3e7;
  border: 1px solid #fde0c0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 30px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: #92400e;
}

.tp-callout-orange i {
  color: var(--tp-orange);
  font-size: 18px;
  margin-top: 2px;
}

.tp-callout-blue {
  background: var(--tp-blue-light);
  border: 1px solid #b8d9f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 30px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: #1e40af;
}

.tp-callout-blue i {
  color: var(--tp-navy);
  font-size: 18px;
  margin-top: 2px;
}

.tp-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tp-orange);
}

.tp-download-link:hover {
  text-decoration: underline;
}

/* CTA */
.tp-cta-sec {
  background: var(--tp-blue-light);
  padding: 50px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.tp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.tp-cta-text h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--tp-navy);
  margin: 0 0 6px;
}

.tp-cta-text p {
  font-size: 14px;
  color: var(--tp-muted);
  margin: 0;
}

.tp-btn-cta {
  background: var(--tp-orange);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tp-btn-cta:hover {
  background: #e55a00;
}

/* Reveal animation */
.tp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tp-reveal.tp-in {
  opacity: 1;
  transform: none;
}

/* Fallback: show content if JS not loaded */
.no-js .tp-reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .tp-points-grid {
    grid-template-columns: 1fr;
  }

  .tp-hero .tp-container {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .tp-points-grid {
    grid-template-columns: 1fr;
  }
}
