/* ============================================
   FOODAIRY PEDDLE — Privacy Policy Stylesheet
   Color palette extracted from app logo:
   Primary Blue:  #153B9A / #1F6DDC
   Primary Green: #55B31D / #4AA814
   Accent Orange: #F28A1E
   Neutrals:      #1A1A1A / #F8F8F7
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --blue-dark: #153B9A;
  --blue-mid: #1F6DDC;
  --blue-light: #E8F0FE;
  --blue-soft: #F0F5FF;
  --green-primary: #4AA814;
  --green-dark: #2F7D12;
  --green-light: #EAF7E0;
  --orange-accent: #F28A1E;
  --text-primary: #1A1A2E;
  --text-secondary: #3D3D56;
  --text-muted: #6B7280;
  --bg-body: #F7F9FC;
  --bg-white: #FFFFFF;
  --bg-section-alt: #F0F4FA;
  --border-light: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(21, 59, 154, 0.06);
  --shadow-md: 0 4px 14px rgba(21, 59, 154, 0.08);
  --shadow-lg: 0 8px 30px rgba(21, 59, 154, 0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 820px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.pp-header {
  background: linear-gradient(135deg, #153B9A 0%, #1F6DDC 60%, #2A8AE8 100%);
  padding: 48px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pp-header::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.pp-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green-primary), var(--orange-accent), var(--green-primary));
}

.header-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  margin-bottom: 18px;
  background: #fff;
}

.header-app-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.header-app-name span {
  color: #8EDC5E;
}

.header-title {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}

/* ---------- Effective Date Badge ---------- */
.effective-date {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---------- Main Content ---------- */
.pp-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ---------- Intro Paragraph ---------- */
.pp-intro {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue-mid);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.pp-intro strong {
  color: var(--blue-dark);
}

/* ---------- Agreement Note ---------- */
.pp-agreement {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 16px 28px;
  margin-bottom: 36px;
  font-size: 0.92rem;
  color: var(--green-dark);
  border-left: 4px solid var(--green-primary);
  font-weight: 500;
}

/* ---------- Section ---------- */
.pp-section {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 32px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.pp-section:hover {
  box-shadow: var(--shadow-md);
}

/* Section number badge */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  vertical-align: middle;
}

.pp-section h2 {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.pp-section h2 .section-title-text {
  flex: 1;
}

.pp-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

/* ---------- Lists inside sections ---------- */
.pp-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 8px;
}

.pp-section ul li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pp-section ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--green-primary));
}

/* ---------- Contact highlight ---------- */
.contact-email {
  display: inline-block;
  color: var(--blue-mid);
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-bottom-color: var(--blue-mid);
}

/* ---------- Contact Box ---------- */
.contact-box {
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 14px;
  border: 1px solid var(--blue-light);
}

.contact-box p {
  margin-bottom: 4px !important;
  font-size: 0.94rem;
}

.contact-box .contact-label {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Divider between sections ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 8px 0;
  border: none;
}

/* ---------- Footer ---------- */
.pp-footer {
  background: var(--text-primary);
  padding: 36px 24px;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.87rem;
  line-height: 1.8;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.footer-brand span {
  color: #8EDC5E;
}

.footer-email {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s;
}

.footer-email:hover {
  border-bottom-color: rgba(255,255,255,0.7);
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--green-primary));
  margin: 16px auto;
  border: none;
  border-radius: 2px;
}

.footer-updated {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(21, 59, 154, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s ease;
  z-index: 100;
}

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

.back-to-top:hover {
  background: linear-gradient(135deg, var(--blue-mid), var(--green-primary));
  box-shadow: 0 6px 20px rgba(21, 59, 154, 0.35);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ---------- Fade-in animation ---------- */
.pp-section,
.pp-intro,
.pp-agreement {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pp-section.visible,
.pp-intro.visible,
.pp-agreement.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .pp-header {
    padding: 36px 20px 40px;
  }

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

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

  .header-title {
    font-size: 1.02rem;
  }

  .pp-main {
    padding: 28px 16px 48px;
  }

  .pp-intro {
    padding: 22px 20px;
  }

  .pp-agreement {
    padding: 14px 20px;
  }

  .pp-section {
    padding: 24px 20px 22px;
    margin-bottom: 16px;
  }

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

  .section-number {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
    margin-right: 10px;
  }

  .pp-section p,
  .pp-section ul li {
    font-size: 0.91rem;
  }

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

@media (max-width: 480px) {
  .pp-header {
    padding: 30px 16px 34px;
  }

  .header-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .header-app-name {
    font-size: 1.2rem;
  }

  .header-title {
    font-size: 0.95rem;
  }

  .effective-date {
    font-size: 0.78rem;
    padding: 5px 16px;
  }

  .pp-main {
    padding: 20px 12px 40px;
  }

  .pp-section {
    padding: 20px 16px 18px;
    border-radius: var(--radius-sm);
  }

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

  .contact-box {
    padding: 16px 16px;
  }
}
