/* ============================================
   Bombay Hardware Match 3 – Privacy Policy
   Premium Modern Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a2744;
  --primary-light: #243557;
  --accent: #f0a500;
  --accent-glow: #ffc940;
  --bg: #f4f6fb;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 12px 48px rgba(0,0,0,.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- Selection --- */
::selection { background: var(--accent); color: var(--primary); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0f1a30 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
}

.header-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.15);
  transition: transform var(--transition);
}

.header-logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-app-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.header-app-name span {
  color: var(--accent);
}

.header-subtitle {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
  background: linear-gradient(160deg, var(--primary) 0%, #0d1526 50%, #162240 100%);
  padding: 60px 28px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(240,165,0,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(240,165,0,.4));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 20px;
  border-radius: 50px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  margin-top: 6px;
}

.hero-date i {
  color: var(--accent);
}

/* ============================================
   TABLE OF CONTENTS (Sidebar Nav)
   ============================================ */
.page-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 40px 28px 80px;
}

.toc-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  border: 1px solid var(--border);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.toc-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-title i { color: var(--accent); font-size: .75rem; }

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
  background: linear-gradient(135deg, rgba(26,39,68,.06), rgba(240,165,0,.06));
  color: var(--primary);
}

.toc-list a.active {
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}

.toc-list a i {
  font-size: .8rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Intro card */
.intro-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 28px 32px;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  line-height: 1.8;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(240,165,0,.15), transparent 70%);
  border-radius: 50%;
}

.intro-card .emoji-icon {
  font-size: 1.4rem;
  margin-right: 6px;
}

/* Section card */
.policy-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 32px 36px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.policy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.policy-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.policy-section:hover::before {
  opacity: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.badge-blue { background: linear-gradient(135deg, #e8f0fe, #d0e2ff); color: #1a56db; }
.badge-green { background: linear-gradient(135deg, #e6f7ed, #c6f0d6); color: #16a34a; }
.badge-purple { background: linear-gradient(135deg, #f0e6ff, #e0d0ff); color: #7c3aed; }
.badge-red { background: linear-gradient(135deg, #fee8e8, #fdd0d0); color: #dc2626; }
.badge-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.badge-teal { background: linear-gradient(135deg, #e0f7f7, #c0efef); color: #0d9488; }
.badge-pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.badge-indigo { background: linear-gradient(135deg, #e8eaff, #d0d4ff); color: #4f46e5; }
.badge-orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #e65100; }

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.section-body {
  font-size: .93rem;
  color: var(--text);
  line-height: 1.85;
}

.section-body p {
  margin-bottom: 12px;
}

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

/* Sub-headings inside sections */
.sub-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-heading .num {
  background: var(--accent);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Lists */
.policy-list {
  list-style: none;
  margin: 10px 0 16px;
  padding: 0;
}

.policy-list li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: .9rem;
  color: var(--text);
}

.policy-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 15px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, #fef9e7, #fdf2d0);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 14px 0;
  font-size: .88rem;
  color: #92400e;
}

.highlight-box i {
  margin-right: 6px;
  color: #d97706;
}

/* Info note */
.info-note {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid #3b82f6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 14px 0;
  font-size: .88rem;
  color: #1e40af;
}

.info-note i {
  margin-right: 6px;
  color: #3b82f6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--primary) 0%, #0f1a30 100%);
  color: rgba(255,255,255,.7);
  padding: 40px 28px 30px;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.12);
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border: none;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--accent-glow);
  text-decoration: underline;
}

.footer-contact i {
  color: var(--accent);
}

.footer-meta {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

.footer-meta span {
  color: rgba(255,255,255,.55);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  border: 2px solid rgba(255,255,255,.1);
}

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

.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(240,165,0,.35);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.content-area .fade-up:nth-child(1) { transition-delay: .05s; }
.content-area .fade-up:nth-child(2) { transition-delay: .1s; }
.content-area .fade-up:nth-child(3) { transition-delay: .15s; }
.content-area .fade-up:nth-child(4) { transition-delay: .2s; }
.content-area .fade-up:nth-child(5) { transition-delay: .25s; }
.content-area .fade-up:nth-child(6) { transition-delay: .3s; }
.content-area .fade-up:nth-child(7) { transition-delay: .35s; }
.content-area .fade-up:nth-child(8) { transition-delay: .4s; }
.content-area .fade-up:nth-child(9) { transition-delay: .45s; }
.content-area .fade-up:nth-child(10) { transition-delay: .5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 16px 60px;
  }

  .toc-sidebar {
    display: none;
  }

  .hero-banner {
    padding: 44px 20px 38px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .policy-section {
    padding: 24px 22px;
  }

  .section-header {
    gap: 12px;
  }

  .section-icon-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .header-inner {
    padding: 12px 18px;
  }

  .header-logo {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-radius: 12px;
  }

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

@media (max-width: 480px) {
  html { font-size: 15px; }

  .hero-banner {
    padding: 36px 16px 30px;
  }

  .hero-icon { font-size: 2.2rem; }

  .hero-date {
    font-size: .78rem;
    padding: 6px 14px;
  }

  .policy-section {
    padding: 20px 18px;
    border-radius: 12px;
  }

  .section-body {
    font-size: .88rem;
  }

  .footer-inner {
    gap: 16px;
  }
}
