/* ============================================
   SUPER KIDS LIMITED — Privacy Policy Styles
   Color palette extracted from brand logo:
   - Primary Blue:   #2D8BFF / #2554D8
   - Purple Accent:  #7B2DE2 / #A64CE6
   - Green Accent:   #5CCB3B / #A8E62E
   - Gold/Amber:     #FFC63A / #FFB000
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #2D8BFF;
  --color-primary-dark: #2554D8;
  --color-primary-light: #4FC3F7;
  --color-purple: #7B2DE2;
  --color-purple-light: #A64CE6;
  --color-green: #5CCB3B;
  --color-green-light: #A8E62E;
  --color-gold: #FFC63A;
  --color-amber: #FFB000;

  /* UI Palette (derived / softened) */
  --bg-body: #F4F7FB;
  --bg-white: #FFFFFF;
  --bg-section-alt: #F0F4FA;
  --text-heading: #1E2A45;
  --text-body: #3A4A64;
  --text-muted: #6B7A94;
  --border-light: #E2E8F0;
  --divider: #E8EDF5;
  --shadow-card: 0 2px 16px rgba(37, 84, 216, 0.06);
  --shadow-header: 0 2px 20px rgba(37, 84, 216, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --max-width: 820px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, #2554D8 0%, #2D8BFF 40%, #7B2DE2 100%);
  padding: 48px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-green), var(--color-green-light), var(--color-gold), var(--color-amber));
}

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

.header-app-name {
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

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

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

/* ---------- Effective Date Badge ---------- */
.effective-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EEF4FF 0%, #F5F0FF 100%);
  border: 1px solid #D6E4FF;
  color: var(--color-primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 32px;
}

.effective-date .icon {
  font-size: 1rem;
}

/* ---------- Intro Card ---------- */
.intro-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  border-left: 4px solid var(--color-primary);
}

.intro-card p {
  margin-bottom: 16px;
  color: var(--text-body);
}

.intro-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Policy Section ---------- */
.policy-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 36px 28px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}

.policy-section:hover {
  box-shadow: 0 4px 24px rgba(37, 84, 216, 0.1);
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(123, 45, 226, 0.2);
}

.section-heading {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
}

.policy-section p {
  margin-bottom: 14px;
  color: var(--text-body);
}

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

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

.policy-section ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text-body);
  line-height: 1.7;
}

.policy-section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-purple-light));
}

/* Special highlight for contact section */
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

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

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: linear-gradient(135deg, #F0F7FF 0%, #F5F0FF 100%);
  border: 1px solid #DDE8FF;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 14px 0;
}

.highlight-box p {
  font-weight: 500;
  color: var(--text-heading);
}

/* ---------- Warning / Note Box ---------- */
.note-box {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF7E6 100%);
  border: 1px solid #FFE7B3;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 14px 0;
  font-size: 0.94rem;
  color: #7A5F1A;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, #1E2A45 0%, #2A2050 100%);
  padding: 36px 24px;
  text-align: center;
  margin-top: 0;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 12px;
  background: #fff;
}

.footer-company {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--color-primary-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-updated {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 14px;
}

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

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

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

#back-to-top:hover {
  box-shadow: 0 6px 24px rgba(37, 84, 216, 0.45);
  transform: translateY(-2px);
}

#back-to-top:active {
  transform: translateY(0);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(45, 139, 255, 0.15);
  color: var(--text-heading);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header {
    padding: 36px 18px 42px;
  }

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

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

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

  .policy-container {
    padding: 0 14px 48px;
    margin-top: -22px;
  }

  .intro-card,
  .policy-section {
    padding: 24px 22px 22px;
    border-radius: 12px;
  }

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

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

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

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

  .site-header {
    padding: 28px 16px 36px;
  }

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

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

  .intro-card,
  .policy-section {
    padding: 20px 18px 18px;
  }

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

  .effective-date {
    font-size: 0.82rem;
    padding: 8px 16px;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header {
    background: #2554D8 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #back-to-top {
    display: none !important;
  }

  .policy-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }
}
