/* ============================================
   TravelPouch Privacy Policy — Stylesheet
   Color Palette derived from app logo:
   Primary Blue:  #1A56DB
   Deep Blue:     #0E3FBE
   Accent Teal:   #30B8C9
   Green:         #4EBD5C
   Gold:          #F2C22E
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: #2d3748;
  background-color: #f0f5fc;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.pp-header {
  background: linear-gradient(135deg, #0E3FBE 0%, #1A56DB 40%, #2F7FE8 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pp-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #f0f5fc;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.pp-header-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.pp-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  margin-bottom: 1rem;
  background: #fff;
}

.pp-app-name {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.pp-page-title {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.88;
  letter-spacing: 0.03em;
}

/* ---------- Effective-date badge ---------- */
.pp-effective {
  text-align: center;
  margin: -0.5rem auto 0;
  position: relative;
  z-index: 2;
}

.pp-effective span {
  display: inline-block;
  background: #ffffff;
  color: #1A56DB;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 3px 14px rgba(26, 86, 219, 0.13);
  letter-spacing: 0.02em;
}

/* ---------- Main Content Container ---------- */
.pp-main {
  max-width: 780px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
}

/* ---------- Intro paragraph ---------- */
.pp-intro {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(26, 86, 219, 0.06);
  font-size: 0.97rem;
  color: #3b4a60;
  line-height: 1.8;
  border-left: 4px solid #30B8C9;
}

.pp-intro strong {
  color: #1A56DB;
}

/* ---------- Section Card ---------- */
.pp-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(26, 86, 219, 0.06);
  transition: box-shadow 0.25s ease;
}

.pp-section:hover {
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.10);
}

/* Section heading */
.pp-section-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0E3FBE;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e8eef8;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.4;
}

.pp-section-heading .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1A56DB, #2F7FE8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 9px;
  flex-shrink: 0;
}

/* Section body text */
.pp-section p {
  font-size: 0.95rem;
  color: #3b4a60;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.pp-section p:last-child {
  margin-bottom: 0;
}

/* Lists inside sections */
.pp-section ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1rem;
}

.pp-section ul li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.93rem;
  color: #3b4a60;
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

.pp-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30B8C9, #4EBD5C);
}

/* Email link */
.pp-section a {
  color: #1A56DB;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(26, 86, 219, 0.25);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pp-section a:hover {
  color: #0E3FBE;
  border-bottom-color: #0E3FBE;
}

/* ---------- Footer ---------- */
.pp-footer {
  background: linear-gradient(135deg, #0E3FBE 0%, #1A56DB 100%);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 2.2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
  position: relative;
}

.pp-footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 50px;
  background: #f0f5fc;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.pp-footer-inner {
  position: relative;
  z-index: 1;
}

.pp-footer strong {
  color: #fff;
  font-weight: 600;
}

.pp-footer a {
  color: #90d0f7;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(144, 208, 247, 0.35);
  transition: border-color 0.2s;
}

.pp-footer a:hover {
  border-bottom-color: #90d0f7;
}

.pp-footer .footer-divider {
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0.8rem auto;
  border-radius: 2px;
}

/* ---------- Back-to-top button ---------- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #1A56DB, #2F7FE8);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(26, 86, 219, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease;
  z-index: 100;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: linear-gradient(135deg, #0E3FBE, #1A56DB);
  box-shadow: 0 6px 24px rgba(14, 63, 190, 0.38);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .pp-header {
    padding: 2.2rem 1.25rem 2.2rem;
  }

  .pp-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .pp-app-name {
    font-size: 1.35rem;
  }

  .pp-page-title {
    font-size: 0.95rem;
  }

  .pp-main {
    padding: 0 0.85rem;
    margin-top: 1.5rem;
  }

  .pp-intro,
  .pp-section {
    padding: 1.5rem 1.35rem;
    border-radius: 12px;
  }

  .pp-section-heading {
    font-size: 1.08rem;
  }

  .pp-section-heading .num {
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 7px;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .pp-intro,
  .pp-section {
    padding: 1.2rem 1.1rem;
  }

  .pp-section-heading {
    font-size: 1rem;
  }
}
