/* ============================================================
   ChallanFree – Terms of Use
   style.css
   Theme: Light Orange · White · Deep Charcoal
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Orange Palette ── */
  --orange:       #f47c2f;
  --orange2:      #e06520;
  --orange3:      #ff9a56;
  --orange-light: #fff3ea;
  --orange-mid:   #fde0c8;
  --orange-glow:  #f47c2f22;

  /* ── Neutral Palette ── */
  --bg:       #ffffff;
  --surface:  #ffffff;
  --surface2: #fff8f3;
  --charcoal: #1c1a18;
  --text:     #2a2520;
  --muted:    #8a7e75;
  --border:   #f0dece;
  --white:    #ffffff;

  /* ── Status ── */
  --red:   #d93025;
  --green: #2e7d4f;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-serif:   'Cormorant Garamond', serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 32px #f47c2f14;
  --transition: 0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--orange); transition: color var(--transition); }
a:hover { color: var(--orange2); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--orange-light); }
::-webkit-scrollbar-thumb { background: var(--orange3); border-radius: 4px; }

/* ====================================================
   HEADER
==================================================== */
.pp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 20px #f47c2f18;
}

.pp-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}
.logo-accent { color: var(--orange); }
.logo-icon   { font-size: 20px; }

.pp-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.pp-nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.pp-nav-links a:hover { color: var(--orange); }
.pp-nav-links .nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 700;
}
.pp-nav-links .nav-cta:hover { background: var(--orange2); color: var(--white); }

/* ====================================================
   HERO BANNER
==================================================== */
.pp-hero {
  background: linear-gradient(135deg, #1c1a18 0%, #2e2520 60%, #1c1a18 100%);
  position: relative;
  overflow: hidden;
  padding: 88px 32px 68px;
  text-align: center;
}

/* Ghost background text — says TERMS for this page */
.pp-hero::before {
  content: 'TERMS';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 800;
  letter-spacing: 16px;
  color: #f47c2f07;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.pp-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange2), var(--orange3), var(--orange2));
}

.pp-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, #f47c2f12, transparent 70%);
  pointer-events: none;
}

.pp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.pp-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--orange3);
  border: 1px solid #ff9a5640;
  padding: 5px 18px;
  border-radius: 2px;
  margin-bottom: 22px;
}

.pp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 88px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.pp-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--orange3);
}

.pp-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pp-meta-chip {
  background: #ffffff0d;
  border: 1px solid #ffffff18;
  border-radius: 30px;
  padding: 7px 18px;
  font-size: 13px;
  color: #ffffffaa;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

/* ====================================================
   BREADCRUMB
==================================================== */
.pp-breadcrumb {
  background: var(--orange-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
}
.pp-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pp-breadcrumb-inner a    { color: var(--orange); font-weight: 500; }
.pp-breadcrumb-inner .sep { color: var(--border); }

/* ====================================================
   LAYOUT
==================================================== */
.pp-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 100px;
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 56px;
  align-items: start;
}

/* ====================================================
   SIDEBAR
==================================================== */
.pp-sidebar {
  position: sticky;
  top: 88px;
}

.pp-toc {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--orange-glow);
}

.pp-toc-header {
  background: var(--orange);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

.pp-toc-list { list-style: none; padding: 8px 0; }

.pp-toc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.pp-toc-list li a:hover,
.pp-toc-list li a.active {
  color: var(--orange);
  border-left-color: var(--orange);
  background: var(--orange-light);
}

.toc-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--orange3);
  min-width: 20px;
  flex-shrink: 0;
}

/* Sidebar contact card */
.pp-sidebar-contact {
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-top: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pp-sidebar-contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange3));
}
.pp-sidebar-contact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
}
.pp-sidebar-contact p {
  font-size: 13px;
  color: #ffffffaa;
  margin-bottom: 16px;
  line-height: 1.55;
}
.pp-sidebar-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  border-radius: 6px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}
.pp-sidebar-wa:hover { background: #1ea952; color: var(--white); transform: translateY(-1px); }

/* Related Documents sidebar card */
.pp-sidebar-related {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.pp-related-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.pp-related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.pp-related-link:last-child { border-bottom: none; }
.pp-related-link:hover {
  color: var(--orange);
  background: var(--orange-light);
  padding-left: 22px;
}

/* ====================================================
   MAIN CONTENT
==================================================== */
.pp-content { min-width: 0; }

.pp-updated-bar {
  background: #fff3ea;
  border: 1.5px solid #f47c2f35;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #a04a10;
}
.pp-updated-bar strong { font-weight: 700; }

/* Section */
.pp-section {
  margin-bottom: 56px;
  scroll-margin-top: 96px;
}

.pp-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.pp-section-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  background: var(--orange);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pp-section-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.pp-section p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.78;
}
.pp-section p:last-child { margin-bottom: 0; }

.pp-subhead {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.5px;
  margin: 24px 0 10px;
}

/* Bullet list */
.pp-list {
  list-style: none;
  margin: 14px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}
.pp-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 8px;
}

/* Info boxes */
.pp-infobox {
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 22px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pp-infobox.orange {
  background: #fff3ea;
  border: 1.5px solid #f47c2f30;
  border-left: 4px solid var(--orange);
}
.pp-infobox.amber {
  background: #fffbf0;
  border: 1.5px solid #f5c84240;
  border-left: 4px solid #f5a623;
}
.pp-infobox.red {
  background: #fff5f5;
  border: 1.5px solid #d9302525;
  border-left: 4px solid var(--red);
}
.pp-infobox-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.pp-infobox-body p { font-size: 14px; margin-bottom: 0; line-height: 1.65; color: var(--text); }
.pp-infobox-body strong { color: var(--charcoal); }

/* Table */
.pp-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-table th {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  padding: 13px 16px;
  text-align: left;
}
.pp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.6;
}
.pp-table tr:nth-child(even) td { background: var(--orange-light); }
.pp-table tr:last-child td { border-bottom: none; }

/* ====================================================
   CONTACT CARD
==================================================== */
.pp-contact-card {
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pp-contact-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, #f47c2f18, transparent 70%);
  pointer-events: none;
}
.pp-contact-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange2), var(--orange3), var(--orange2));
}
.pp-contact-text h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.pp-contact-text p { font-size: 15px; color: #ffffffaa; line-height: 1.65; }
.pp-contact-actions { display: flex; flex-direction: column; gap: 12px; }

/* ====================================================
   BUTTONS
==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange2);
  border-color: var(--orange2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #f47c2f40;
}
.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wa:hover { background: #1ea952; border-color: #1ea952; color: var(--white); transform: translateY(-2px); }
.btn-outline-light {
  background: transparent;
  color: #ffffffcc;
  border-color: #ffffff22;
}
.btn-outline-light:hover { border-color: #ffffff80; color: var(--white); transform: translateY(-2px); }

/* ====================================================
   FOOTER
==================================================== */
.pp-footer {
  background: var(--charcoal);
  border-top: 1px solid #ffffff0e;
  padding: 36px 32px;
  text-align: center;
}
.pp-footer p { font-size: 13px; color: #ffffffaa; margin-bottom: 6px; }
.pp-footer a { color: var(--orange3); }
.pp-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pp-footer-links a {
  font-size: 13px;
  color: #ffffff55;
  transition: color var(--transition);
}
.pp-footer-links a:hover { color: var(--orange3); }

/* ====================================================
   BACK TO TOP
==================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 20px #f47c2f55;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  text-decoration: none;
  line-height: 1;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover   { background: var(--orange2); transform: translateY(-3px); color: var(--white); }

/* ====================================================
   WHATSAPP FLOAT
==================================================== */
.wa-float {
  position: fixed;
  bottom: 92px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  padding: 10px 18px 10px 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 24px #25D36655;
  z-index: 999;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wa-float svg   { width: 32px; height: 32px; flex-shrink: 0; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 10px 32px #25D36665; color: var(--white); }

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 960px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-sidebar { position: static; }
  .pp-contact-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .pp-nav-links { display: none; }
}
@media (max-width: 640px) {
  .pp-layout      { padding: 40px 18px 80px; }
  .pp-hero        { padding: 60px 18px 48px; }
  .pp-hero h1     { font-size: 44px; }
  .pp-section-header h2 { font-size: 22px; }
  .wa-float span  { display: none; }
  .wa-float       { padding: 10px; border-radius: 50%; }
}