/* ============================================================
   pap.css — Privacy Policy Page Styles
   IPMAP — Integrated Products Marketers Association of the PH
   ============================================================ */

/* ── Root palette ── */
:root {
  --green-50:  #f0faf3;
  --green-100: #d6f0e0;
  --green-200: #aeddc0;
  --green-300: #78c99a;
  --green-400: #48b374;
  --green-500: #2a9957;
  --green-600: #1e7a42;
  --green-700: #155c30;
  --green-800: #0e3f21;
  --accent:    #b7e8c8;
  --text-dark: #0d2b18;
  --text-mid:  #1e5c34;
  --text-soft: #4a7a5a;
  --border:    #c4e8d2;
  --bg:        #f4fbf6;
  --card:      #ffffff;
  --highlight: #e3f5ea;
  --brand:     #076007;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
  line-height: 1.75;
  margin: 0;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.pap-navbar-wrap {
  position: sticky;
  top: 12px;
  z-index: 1000;
  width: 97%;
  margin: 0 auto;
}

.pap-navbar {
  background: #ffffff;
  height: 56px;
  border-radius: 9999px;
  border: 4px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
}

.pap-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.pap-brand img {
  height: 44px;
  width: auto;
  display: block;
}
.pap-brand-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}
.pap-brand-fallback .logo-top {
  font-size: 0.58rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0.05em;
}
.pap-brand-fallback .logo-icon {
  font-size: 1.6rem;
  color: var(--brand);
}

.pap-nav-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pap-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pap-nav-links a,
.pap-btn-contact {
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  color: var(--brand);
  background: transparent;
}
.pap-nav-links a:hover,
.pap-btn-contact:hover {
  background: #b3dfc0;
  color: #fff;
}

.pap-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  color: var(--brand);
  padding: 4px;
  margin-right: 4px;
  outline: none;
}

.pap-mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: #ffffff;
  border: 2px solid var(--brand);
  border-radius: 16px;
  padding: 12px 16px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 50;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pap-mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pap-mobile-menu a {
  width: 91.67%;
  text-align: center;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: background 0.15s, color 0.15s;
}
.pap-mobile-menu a:hover {
  background: #b3dfc0;
  color: #fff;
}

@media (max-width: 800px) {
  .pap-nav-wrap  { display: none; }
  .pap-hamburger { display: block; }
}
@media (min-width: 801px) {
  .pap-mobile-menu { display: none !important; }
}

/* ══════════════════════════════════════
   HERO BANNER
══════════════════════════════════════ */
.pap-hero {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 55%, var(--green-400) 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.pap-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 48px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.pap-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.pap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #e0f5e8;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.pap-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
}
.pap-hero-org {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.pap-hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.75);
  font-size: 0.83rem;
}

/* ══════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════ */
.pap-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.toc-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 86px;
  box-shadow: 0 4px 24px rgba(21,92,48,0.08);
}
.toc-sidebar-header {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-sidebar nav { padding: 10px 0; }
.toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.toc-link:hover,
.toc-link.active {
  background: var(--highlight);
  color: var(--green-600);
  padding-left: 24px;
  border-left-color: var(--green-400);
}
.toc-link .pi {
  font-size: 0.8rem;
  color: var(--green-400);
  flex-shrink: 0;
}

.pap-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pap-intro-tip {
  background: var(--highlight);
  border-left: 4px solid var(--green-400);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-mid);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pap-intro-tip .pi {
  color: var(--green-500);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.section-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px 36px;
  box-shadow: 0 2px 16px rgba(21,92,48,0.05);
  scroll-margin-top: 100px;
}

.policy-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green-700);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.policy-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.3em;
  background: linear-gradient(to bottom, var(--green-400), var(--green-600));
  border-radius: 4px;
  flex-shrink: 0;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0 20px;
}

.section-tip {
  background: var(--highlight);
  border-left: 4px solid var(--green-400);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.section-tip .pi {
  color: var(--green-500);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.sub-item {
  border-left: 3px solid var(--green-200);
  padding: 12px 0 12px 18px;
  margin-bottom: 12px;
}
.sub-item:last-child { margin-bottom: 0; }
.sub-item h5 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--green-600);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sub-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.7;
}

.pap-icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pap-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--green-50);
  font-size: 0.92rem;
}
.pap-icon-list li:last-child { border-bottom: none; }
.icon-dot {
  width: 30px;
  height: 30px;
  background: var(--green-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pap-icon-list strong {
  display: block;
  color: var(--text-mid);
  font-weight: 600;
  margin-bottom: 2px;
}

.pap-notice {
  background: rgba(7,96,7,0.05);
  border-left: 4px solid var(--brand);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-top: 18px;
  color: #064e06;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pap-notice .pi {
  color: var(--brand);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.security-card {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
}
.security-card img,
.security-card .sec-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: block;
  color: var(--brand);
  font-size: 2rem;
  line-height: 48px;
}
.security-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}
.security-card span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.cookie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.cookie-card {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.cookie-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-card p {
  font-size: 0.87rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

.pap-cta {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  border-radius: 14px;
  padding: 26px 30px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pap-cta h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.pap-cta p { font-size: 0.88rem; opacity: 0.9; margin: 0; }
.pap-cta-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
  white-space: nowrap;
}
.pap-cta-btn:hover { background: rgba(255,255,255,0.32); color: #fff; }

.pap-update-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--highlight);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
}
.pap-update-strip .pi {
  color: var(--green-500);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   FOOTER — exact match to reference footer
   gradient: #0D8F5B → #0D6340
══════════════════════════════════════ */
.pap-footer {
  background: linear-gradient(to bottom, #0D8F5B, #0D6340);
  color: #ffffff;
  padding: 48px 0 0;
  margin-top: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
}
.pap-footer .f-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* 4-column grid */
.pap-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* Col 1 */
.pap-footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}
.pap-footer-col1 p {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0 0 24px;
  line-height: 1.8;
}
.pap-footer-col1 p strong {
  font-weight: 600;
}

/* Social — white circle bg, colored icons, matches reference */
.pap-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.pap-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.pap-social a:hover { opacity: 0.85; }
.pap-social a .pi {
  font-size: 1.3rem;
}
.pap-social a:nth-child(1) .pi { color: #3299FF; }   /* Twitter — blue */
.pap-social a:nth-child(2) .pi { color: #2563eb; }   /* Facebook — blue */
.pap-social a:nth-child(3) .pi { color: #e1306c; }   /* Instagram — pink */

/* Headings in cols 2-4 */
.pap-footer h6,
.pap-footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  display: block;
}

/* Link lists with chevron icons */
.pap-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pap-footer-links li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pap-footer-links li .pi {
  font-size: 0.75rem;
  color: #ffffff;
  flex-shrink: 0;
}
.pap-footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.15s;
}
.pap-footer-links a:hover { color: #86efac; } /* green-300 on hover */

/* Col 4: Newsletter */
.pap-footer-col4 p {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.6;
}
.pap-newsletter-wrap {
  display: flex;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px;
  overflow: hidden;
}
.pap-newsletter-wrap input {
  flex: 1;
  background: #ffffff;
  border: none;
  color: #333;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  min-width: 0;
}
.pap-newsletter-wrap input::placeholder { color: #aaa; }
.pap-newsletter-wrap button {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px;
  transition: background 0.2s;
}
.pap-newsletter-wrap button:hover { background: #16a34a; }
.pap-footer-col4 .f-license {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}
.pap-footer-col4 .f-license a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

/* Bottom bar */
.pap-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 0;
}
.pap-footer-bottom .f-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 2.5rem;
}
.pap-footer-bottom p {
  font-size: 0.82rem;
  color: #ffffff;
  margin: 0;
}
.pap-footer-bottom p a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s;
}
.pap-footer-bottom p a:hover { color: #86efac; }

/* Responsive footer */
@media (max-width: 900px) {
  .pap-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .pap-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pap-footer-bottom .f-container { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════
   RESPONSIVE (general)
══════════════════════════════════════ */
@media (max-width: 991px) {
  .pap-main { flex-direction: column; }
  .toc-sidebar { width: 100%; position: static; }
  .security-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section-container { padding: 20px 16px 24px; }
  .pap-hero { padding: 40px 0 56px; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .cookie-grid { grid-template-columns: 1fr; }
}