/* ============================================
   Tofai - Design System
   AI虚拟社交与情感互动应用
   ============================================ */

:root {
  /* 主色系 - 紫罗兰 */
  --color-primary: #9354db;
  --color-primary-dark: #7B3DB8;
  --color-primary-light: #bd8bec;
  --color-accent: #EC4899;
  --color-accent-light: #F472B6;

  /* 背景与文本 */
  --color-bg: #FAFAFF;
  --color-bg-section: #F5F3FF;
  --color-bg-card: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #9354db 0%, #bd8bec 100%);
  --gradient-soft: linear-gradient(135deg, #F5F3FF 0%, #FDF2F8 100%);
  --gradient-hero: linear-gradient(160deg, #FAFAFF 0%, #F5F3FF 50%, #FDF2F8 100%);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(147, 84, 219, 0.05);
  --shadow-sm: 0 2px 8px rgba(147, 84, 219, 0.08);
  --shadow-md: 0 4px 16px rgba(147, 84, 219, 0.10);
  --shadow-lg: 0 12px 32px rgba(147, 84, 219, 0.14);
  --shadow-xl: 0 20px 48px rgba(147, 84, 219, 0.18);

  /* 字体栈 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  /* 间距 */
  --space-section: 80px;
  --container-max: 1200px;
  --header-height: 64px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section--tinted {
  background: var(--color-bg-section);
}

.section--gradient {
  background: var(--gradient-soft);
}

/* ============================================
   Typography
   ============================================ */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.nav__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__cta {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero__bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}

.hero__bg-blob--1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  right: -50px;
}

.hero__bg-blob--2 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: -50px;
  left: -50px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(147, 84, 219, 0.1);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn--ghost {
  background: white;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hero Visual - Chat Mockup */
.hero__visual {
  position: relative;
}

.chat-mockup {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  max-width: 420px;
  margin: 0 auto;
}

.chat-mockup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 16px;
}

.chat-mockup__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.chat-mockup__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-mockup__name {
  font-weight: 600;
  font-size: 1rem;
}

.chat-mockup__status {
  font-size: 0.8rem;
  color: #10B981;
}

.chat-mockup__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-msg--ai {
  background: var(--color-bg-section);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg--user {
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-mockup__input {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.chat-mockup__input i {
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* ============================================
   Features Grid
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   Characters Showcase
   ============================================ */

.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.character-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.character-card__visual {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.character-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.character-card:hover .character-card__visual img {
  transform: scale(1.05);
}

.character-card__visual--1 { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); }
.character-card__visual--2 { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); }
.character-card__visual--3 { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.character-card__visual--4 { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); }

.character-card__body {
  padding: 20px;
}

.character-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.character-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.character-card__tag--warm { background: #FCE7F3; color: #BE185D; }
.character-card__tag--cool { background: #E0E7FF; color: #4338CA; }
.character-card__tag--sunny { background: #FEF3C7; color: #92400E; }
.character-card__tag--calm { background: #D1FAE5; color: #065F46; }

.character-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Tech Highlights
   ============================================ */

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tech-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tech-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.tech-item__content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tech-item__content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.tech-visual {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.tech-visual__ring {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px dashed var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rotate 20s linear infinite;
}

.tech-visual__ring i {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-visual__label {
  text-align: center;
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   Screenshots Gallery
   ============================================ */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.screenshot-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 9 / 16;
  background: var(--color-bg-section);
}

.screenshot-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ============================================
   Download Page
   ============================================ */

.download-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: var(--gradient-hero);
  min-height: 100vh;
}

.download-hero {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.download-hero__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.download-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.download-hero p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.download-options {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  color: inherit;
}

.download-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-primary);
}

.download-card__body {
  flex: 1;
}

.download-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.download-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.download-card__arrow {
  font-size: 1.3rem;
  color: var(--color-text-light);
  transition: color 0.2s ease, transform 0.2s ease;
}

.download-card:hover .download-card__arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

.download-notice {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ============================================
   Safety Section
   ============================================ */

.safety-banner {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.safety-banner__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #059669;
  margin-bottom: 20px;
}

.safety-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.safety-banner p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.safety-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.safety-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
}

.safety-point i {
  color: #059669;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.safety-point span {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__question i {
  font-size: 1.2rem;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item__answer p {
  padding-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.active .faq-item__question i {
  transform: rotate(45deg);
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

/* ============================================
   User Reviews
   ============================================ */

.reviews {
  padding: var(--space-section) 24px;
  background: var(--color-bg-section);
}

.reviews__grid {
  max-width: var(--container-max);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-section);
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-card__time {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  color: #FBBF24;
  font-size: 0.85rem;
}

.review-card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  padding: 80px 24px;
}

.cta-section__inner {
  max-width: 700px;
  margin: 0 auto;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  color: white;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-section .btn--white {
  background: white;
  color: var(--color-primary);
}

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

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: #1A1A2E;
  color: #9CA3AF;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer-brand__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h5 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #9CA3AF;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ============================================
   Legal Pages (Privacy & Terms)
   ============================================ */

.legal-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: var(--color-bg);
}

.legal-page__header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-page__title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-page__updated {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.legal-page__content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-page__content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-page__content h2:first-child {
  margin-top: 0;
}

.legal-page__content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-page__content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page__content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page__content ul li {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-page__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.legal-page__breadcrumb a {
  color: var(--color-text-light);
}

.legal-page__breadcrumb a:hover {
  color: var(--color-primary);
}

/* ============================================
   404 Page
   ============================================ */

.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  padding: 24px;
}

.not-found__code {
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.not-found__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.not-found__desc {
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Responsive - Tablet (<=768px)
   ============================================ */

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__toggle {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__desc {
    margin: 0 auto 32px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__badge {
    margin: 0 auto 24px;
  }

  .hero__bg-blob {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .safety-banner {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .legal-page__content {
    padding: 32px 24px;
  }

  .legal-page__title {
    font-size: 1.6rem;
  }

  .cta-section__inner {
    padding: 40px 24px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   Responsive - Mobile (<=480px)
   ============================================ */

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .characters-grid {
    grid-template-columns: 1fr;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .chat-mockup {
    padding: 16px;
  }
}
