/* ============================================
   Velvet Shine Puzzle — Privacy Policy Styles
   Premium, modern, responsive design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #6C3FC5;
  --color-primary-light: #8B5CF6;
  --color-primary-dark: #4C1D95;
  --color-accent: #F59E0B;
  --color-accent-light: #FCD34D;
  --color-bg: #F3F0FF;
  --color-bg-card: #FFFFFF;
  --color-bg-header: linear-gradient(135deg, #4C1D95 0%, #6C3FC5 40%, #8B5CF6 100%);
  --color-text: #1E1B4B;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-section-bg: #FAFAFE;
  --shadow-sm: 0 1px 3px rgba(108, 63, 197, 0.08);
  --shadow-md: 0 4px 16px rgba(108, 63, 197, 0.10);
  --shadow-lg: 0 8px 32px rgba(108, 63, 197, 0.13);
  --shadow-xl: 0 16px 48px rgba(108, 63, 197, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-main: 'Inter', 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --max-width: 860px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  min-height: 100vh;
}

/* --- Decorative background --- */
body::before {
  content: '';
  position: fixed;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* --- Header --- */
.pp-header {
  background: var(--color-bg-header);
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(76,29,149,0.18);
}

.pp-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pp-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pp-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.pp-logo-wrapper {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 0 0 3px rgba(255,255,255,0.18);
  background: #fff;
}

.pp-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.pp-app-name {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
}

.pp-header-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pp-header-label i {
  font-size: 0.82rem;
}

.pp-effective-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  font-weight: 400;
}

/* --- Main Content --- */
.pp-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* --- Table of Contents Sidebar Card --- */
.pp-toc-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: -28px auto 36px;
  padding: 28px 30px 22px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(139,92,246,0.08);
}

.pp-toc-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.pp-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}

.pp-toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.88rem;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  font-weight: 450;
}

.pp-toc-link:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.pp-toc-link .toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.pp-toc-link:hover .toc-num {
  background: var(--color-primary);
  color: #fff;
}

/* --- Intro Card --- */
.pp-intro-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 34px;
  margin-bottom: 28px;
  border-left: 4px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}

.pp-intro-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pp-intro-card p {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.pp-intro-card .pp-intro-app-name {
  font-weight: 600;
  color: var(--color-primary);
}

.pp-intro-card .pp-intro-company {
  font-weight: 600;
}

/* --- Section Cards --- */
.pp-section {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid rgba(108,63,197,0.04);
  position: relative;
  overflow: hidden;
}

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

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

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

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

.pp-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(108,63,197,0.18);
}

.pp-section h2 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

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

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

/* --- Bullet Lists --- */
.pp-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
}

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

.pp-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  box-shadow: 0 1px 4px rgba(245,158,11,0.22);
}

/* --- Highlighted Note / Callout --- */
.pp-callout {
  background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 14px 0;
  font-size: 0.92rem;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pp-callout i {
  color: var(--color-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Footer --- */
.pp-footer {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  padding: 40px 32px 30px;
  position: relative;
  overflow: hidden;
}

.pp-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pp-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pp-footer-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pp-footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.pp-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-footer-app-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.pp-footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 18px;
}

.pp-footer-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.pp-footer-detail i {
  color: var(--color-accent);
  font-size: 0.85rem;
}

.pp-footer-detail a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--transition);
}

.pp-footer-detail a:hover {
  color: var(--color-accent-light);
}

.pp-footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  text-align: center;
}

/* --- Back to Top Button --- */
.pp-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
}

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

.pp-back-to-top:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pp-section,
.pp-intro-card,
.pp-toc-card {
  animation: fadeInUp 0.55s ease both;
}

.pp-section:nth-child(1) { animation-delay: 0.04s; }
.pp-section:nth-child(2) { animation-delay: 0.08s; }
.pp-section:nth-child(3) { animation-delay: 0.12s; }
.pp-section:nth-child(4) { animation-delay: 0.16s; }
.pp-section:nth-child(5) { animation-delay: 0.20s; }
.pp-section:nth-child(6) { animation-delay: 0.24s; }
.pp-section:nth-child(7) { animation-delay: 0.28s; }
.pp-section:nth-child(8) { animation-delay: 0.32s; }
.pp-section:nth-child(9) { animation-delay: 0.36s; }
.pp-section:nth-child(10) { animation-delay: 0.40s; }
.pp-section:nth-child(11) { animation-delay: 0.44s; }
.pp-section:nth-child(12) { animation-delay: 0.48s; }
.pp-section:nth-child(13) { animation-delay: 0.52s; }
.pp-section:nth-child(14) { animation-delay: 0.56s; }
.pp-section:nth-child(15) { animation-delay: 0.60s; }

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

  .pp-logo-wrapper {
    width: 64px;
    height: 64px;
  }

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

  .pp-toc-grid {
    grid-template-columns: 1fr;
  }

  .pp-toc-card {
    padding: 22px 20px 18px;
    margin: -20px 4px 28px;
  }

  .pp-intro-card,
  .pp-section {
    padding: 22px 20px;
    border-radius: var(--radius-md);
  }

  .pp-main {
    padding: 0 10px 48px;
  }

  .pp-section-header {
    gap: 10px;
  }

  .pp-section-icon {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
    border-radius: 10px;
  }

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

  .pp-footer {
    padding: 32px 20px 24px;
  }

  .pp-footer-top {
    gap: 14px;
  }

  .pp-footer-details {
    flex-direction: column;
    gap: 8px;
  }

  .pp-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .pp-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 18px 28px;
    gap: 16px;
  }

  .pp-logo-wrapper {
    width: 56px;
    height: 56px;
  }

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

  .pp-header-label {
    font-size: 0.82rem;
  }

  .pp-toc-card {
    margin: -14px 0 22px;
    padding: 18px 16px 14px;
  }

  .pp-toc-link {
    font-size: 0.82rem;
    padding: 5px 6px;
  }

  .pp-intro-card,
  .pp-section {
    padding: 18px 16px;
  }

  .pp-section p,
  .pp-list li,
  .pp-intro-card p {
    font-size: 0.88rem;
  }
}

/* --- Selection color --- */
::selection {
  background: rgba(139, 92, 246, 0.18);
  color: var(--color-primary-dark);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(108, 63, 197, 0.22);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 63, 197, 0.38);
}
