@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0d2ae5;
  /*#FF6B8B*/
  --primary-hover: #FA5276;
  /*#FA5276*/
  --secondary: #4A90E2;
  --secondary-hover: #357ABD;
  --accent: #FFB347;
  --bg-color: #FBFBFD;
  --card-bg: #FFFFFF;
  --card-border: rgba(0, 0, 0, 0.06);
  --text-main: #1D1D1F;
  --text-muted: #6E6E73;
  --text-light: #86868B;
  --glass-bg: rgba(251, 251, 253, 0.85);
  --glass-border: rgba(0, 0, 0, 0.07);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 28px 60px -12px rgba(29, 29, 31, 0.09), 0 0 1px rgba(0, 0, 0, 0.06);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.brand,
.btn,
.badge {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

/* Typography Enhancements */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #4a90e2 35%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Universal Layout Container - Strictly enforcing bounds between Logo and Download button */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(24px, 5.5vw, 64px) !important;
  padding-right: clamp(24px, 5.5vw, 64px) !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 2;
}

/* Navigation - Slim, Compact Apple Frosted Glass Header */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--primary);
}

/* Elegant Compact Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4a90e2 50%, var(--secondary) 100%);
  color: #FFFFFF !important;
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 16px -4px rgba(255, 107, 139, 0.36);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -6px rgba(255, 107, 139, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Hero Action Button (Centered Under Subtitle) */
.hero-cta-wrapper {
  margin: 10px auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.hero-cta-btn {
  padding: 13px 32px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 24px -4px rgba(255, 107, 139, 0.42);
}

.hero-subtext {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--text-main);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 0;
}

.mobile-drawer .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

/* =======================================================
   HERO SECTION (ABOVE-THE-FOLD OPTIMIZED)
======================================================= */
.hero {
  padding-top: clamp(72px, 10vh, 96px);
  padding-bottom: clamp(40px, 6vh, 60px);
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero-backdrop {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 92vw);
  height: 520px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, rgba(255, 107, 139, 0.08) 40%, rgba(251, 251, 253, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.hero-subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* Natural Blended Hero Stage */
.hero-stage-container {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 0;
}

.hero-image-blend {
  position: relative;
  max-width: 520px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 70%, transparent 100%);
  mix-blend-mode: multiply;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-blend:hover {
  transform: scale(1.02);
}

.hero-image-blend img {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================================================
   PARALLAX SPATIAL STORYTELLING SYSTEM (MIND MARKET STYLE)
======================================================= */
.page-story-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

.parallax-space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

/* Parallax Creatures (Frameless, Enlarged, and Highly Animated) */
.parallax-actor {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  user-select: none;
  z-index: 25;
  transition: opacity 0.3s ease;
}

/* Frameless Creature Wrapper (NO BOX, NO BORDER) */
.creature-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.creature-wrap:hover {
  transform: scale(1.08);
}

/* Enlarged Animal Visual Figure */
.creature-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.creature-img {
  width: clamp(115px, 14vw, 165px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
  transform-origin: center bottom;
}

/* =======================================================
   LIVELY ANIMAL MICRO-ANIMATIONS (AUTHENTIC TO APPS)
======================================================= */
/* 1. Sloth Belly Breathing (樹懶腹部起伏深呼吸) */
.anim-sloth-breathe {
  animation: sloth-breathe 4s ease-in-out infinite;
  transform-origin: 50% 65%;
}

@keyframes sloth-breathe {

  0%,
  100% {
    transform: scale(1, 1) translateY(0);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.1));
  }

  50% {
    /* Inhale: belly expands outward and upwards gently */
    transform: scale(1.06, 1.09) translateY(-4px);
    filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.13));
  }
}

/* 2. Hamster Cheeks Puffing & Munching (倉鼠鼓動嘴頰囊) */
.anim-hamster-cheeks {
  animation: hamster-cheeks 1.8s ease-in-out infinite;
  transform-origin: 50% 70%;
}

@keyframes hamster-cheeks {

  0%,
  100% {
    transform: scale(1, 1) translateY(0);
  }

  20% {
    /* Cheeks puff out horizontally */
    transform: scale(1.1, 0.94) translateY(2px);
  }

  40% {
    /* Rapid nibble twitch */
    transform: scale(0.96, 1.05) translateY(-3px);
  }

  60% {
    /* Second cheek expansion */
    transform: scale(1.08, 0.96) translateY(1px);
  }

  80% {
    /* Happy twitch */
    transform: scale(0.98, 1.02) translateY(-1px);
  }
}

/* 3. Flamingo Walking & Stepping (火烈鳥雙腳漫步優雅平衡) */
.anim-flamingo-walk {
  animation: flamingo-walk 2.6s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes flamingo-walk {

  0%,
  100% {
    /* Right leg plant, slight tilt */
    transform: translateY(0) rotate(-3deg) scaleY(1);
  }

  25% {
    /* Step up and forward */
    transform: translateY(-10px) rotate(1.5deg) scaleY(1.03);
  }

  50% {
    /* Left leg plant, opposite tilt */
    transform: translateY(-2px) rotate(3deg) scaleY(1);
  }

  75% {
    /* Step up second leg */
    transform: translateY(-11px) rotate(-1deg) scaleY(1.03);
  }
}

/* 4. Kangaroo Springy Hopping (袋鼠跳躍蓄力彈跳) */
.anim-kangaroo-hop {
  animation: kangaroo-hop 2.2s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
  transform-origin: 50% 90%;
}

@keyframes kangaroo-hop {

  0%,
  100% {
    /* Crouch/squash anticipation */
    transform: translateY(0) scale(1.1, 0.88) rotate(0deg);
  }

  20% {
    /* Spring launch stretch */
    transform: translateY(-14px) scale(0.92, 1.12) rotate(-5deg);
  }

  45% {
    /* Airborne apex float */
    transform: translateY(-34px) scale(1, 1.04) rotate(4deg);
  }

  70% {
    /* Descent */
    transform: translateY(-12px) scale(0.96, 1.08) rotate(2deg);
  }

  85% {
    /* Ground contact squash */
    transform: translateY(2px) scale(1.08, 0.92) rotate(0deg);
  }
}

/* Native, Concise English Labels Below Each Animal */
.creature-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  max-width: 175px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.creature-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.creature-tagline {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
  line-height: 1.25;
}

.creature-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* Specific Animals Initial Setup across the vertical story path */
/* 1. Sloth (樹懶) - Anchored high in hero, drifts down towards Feature 2 */
.actor-sloth {
  top: 180px;
  left: 3%;
}

/* 2. Hamster (倉鼠) - Fast crosser from top right towards physics engine */
.actor-hamster {
  top: 210px;
  right: 3%;
}

/* 3. Flamingo (火烈鳥) - Elegant walking strut gliding down left side */
.actor-flamingo {
  top: 920px;
  left: 2%;
}

/* 火烈鳥下方的標籤預設隱藏，下滑離開段落文字時才淡入出現 */
.actor-flamingo .creature-label {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.actor-flamingo.show-label .creature-label {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 4. Kangaroo (袋鼠) - Bounding joyfully across into milestone sharing */
.actor-kangaroo {
  top: 1520px;
  right: 3%;
}

/* 5. Memory Stamp (專屬印章) */
.actor-stamp {
  top: 1880px;
  left: 5%;
}

.stamp-figure img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

/* Parallax Floating Ambient Particles (Stars, Glows, Doodles) */
.parallax-particle {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  user-select: none;
}

.particle-star {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.55;
  text-shadow: 0 0 12px rgba(255, 179, 71, 0.5);
}

.particle-sparkle {
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0.6;
  text-shadow: 0 0 10px rgba(255, 107, 139, 0.4);
}

.particle-glow {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
  pointer-events: none;
}

.glow-coral {
  background: radial-gradient(circle, rgba(255, 107, 139, 0.5) 0%, transparent 70%);
}

.glow-blue {
  background: radial-gradient(circle, rgba(74, 144, 226, 0.5) 0%, transparent 70%);
}

/* =======================================================
   FEATURES SECTION
======================================================= */
.features {
  padding-top: 57px;
  /* 32px + 25px: 下移 25px */
  padding-bottom: clamp(60px, 8vh, 100px);
  position: relative;
  z-index: 2;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5.5vw, 84px);
  align-items: center;
  margin-bottom: calc(clamp(70px, 10vh, 130px) + 15px);
  /* 區塊相距增加 15px */
}

.feature-row:last-child {
  margin-bottom: 20px;
}

.feature-row:nth-child(even) .feature-content {
  order: 2;
}

.feature-row:nth-child(even) .feature-visual {
  order: 1;
}

.feature-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: transparent;
  color: #2C75D3;
  border: 1px solid #CEE0F7;
}

.tag-physics,
.tag-parenting,
.tag-family {
  background: transparent;
  color: #2C75D3;
  border: 1px solid #CEE0F7;
}

.feature-content h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.feature-content p {
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 16px;
}

.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.feature-visual:hover {
  box-shadow: var(--shadow-lg);
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Call to Action Banner */
.cta-section {
  padding: clamp(50px, 7vh, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 139, 0.08) 0%, rgba(74, 144, 226, 0.08) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  margin-bottom: clamp(50px, 8vh, 80px);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 3;
}

.cta-section h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
}

/* Footer - Clean Apple Style */
footer {
  padding: 48px 0 36px;
  background: #FFFFFF;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =======================================================
   SHARED LEGAL & SUPPORT PAGE STYLES
======================================================= */
.page-hero {
  padding-top: clamp(90px, 12vh, 120px);
  padding-bottom: clamp(30px, 4vh, 48px);
  text-align: left;
}

.page-hero .badge {
  display: inline-flex;
  padding: 5px 14px;
  background: transparent;
  border: 1px solid #CEE0F7;
  color: #2C75D3;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.page-hero .subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--text-muted);
  max-width: 100%;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(36px, 4.5vw, 64px);
  align-items: start;
  margin-bottom: clamp(60px, 8vh, 100px);
}

.legal-sidebar {
  position: sticky;
  top: 76px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.legal-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: block;
}

.legal-nav-list a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.legal-guarantee-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.legal-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: clamp(28px, 4.5vw, 52px);
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 36px;
}

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

.legal-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.legal-section li strong {
  color: var(--text-main);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-bottom: clamp(40px, 6vh, 60px);
}

.faq-card {
  background: var(--card-bg);
  padding: clamp(24px, 3.5vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.faq-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.faq-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 144, 226, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.faq-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.faq-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.62;
  margin: 0;
}

.support-contact-banner {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.07) 0%, rgba(255, 107, 139, 0.07) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 54px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: clamp(50px, 8vh, 100px);
  box-shadow: var(--shadow-sm);
}

.support-contact-banner h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 750;
  margin-bottom: 6px;
}

.support-contact-banner p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =======================================================
   RESPONSIVE MEDIA QUERIES
======================================================= */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
  }

  .legal-sidebar {
    position: static;
    width: 100%;
  }
}

@media (max-width: 920px) {
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 32px;
    text-align: left;
    margin-bottom: calc(clamp(48px, 8vh, 72px) + 15px);
    /* 區塊相距增加 15px */
    width: 100%;
  }

  .feature-row:nth-child(even) .feature-content {
    order: 1;
  }

  .feature-row:nth-child(even) .feature-visual {
    order: 2;
  }

  .feature-content {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .feature-visual {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero p.hero-subtitle {
    max-width: 100%;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .support-contact-banner {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  /* On tablets and mobile, hide floating parallax actors to keep typography and boundaries pristine */
  .parallax-actor {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
  }

  /* Keep 'Download App' button visible at the far right of the navbar to anchor content width */
  .nav-right .btn-primary {
    display: inline-flex;
    order: 2;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 980px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 68px;
    padding-bottom: 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    width: 100%;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Compact frameless animated animals on mobile */
  .creature-img {
    width: clamp(72px, 18vw, 100px);
  }

  .creature-label {
    padding: 4px 8px;
    max-width: 110px;
    border-radius: 10px;
  }

  .creature-name {
    font-size: 0.76rem;
  }

  .creature-tagline {
    font-size: 0.65rem;
  }

  .creature-sub {
    display: none;
  }
}