/* Silent Summit Custom Stylesheet: Ink & Neon (Neo-Cultivation - Light Theme) */

/* 1. Font Definitions */
@font-face {
  font-family: 'Hoshiko Satsuki';
  src: url('/assets/fonts/HoshikoSatsuki-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. Central Design Tokens (Light Theme) */
:root {
  color-scheme: light;
  
  /* Color Palette (Light Parchment & Charcoal Ink) */
  --bg-void: #f5f2eb;         /* Pure warm paper/parchment background */
  --bg-charcoal: #eae6dd;     /* Slightly darker warm parchment for section fills */
  --bg-panel: #ffffff;        /* Pure white for containers/panels */
  --bg-card: #fcfbfa;         /* Off-white card surface */
  
  /* Text Colors (Nanquim Ink) */
  --text-primary: #0a0b0d;    /* Deep ink black */
  --text-secondary: rgba(10, 11, 13, 0.76); /* Faded ink */
  --text-muted: rgba(10, 11, 13, 0.45);      /* Highly diluted ink */
  
  /* Default Legend Theme Colors (Imposing - Cyan) */
  --accent-color: #00bcd4;    /* Slightly darker cyan for legibility on light theme */
  --accent-color-rgb: 0, 188, 212;
  --accent-text-shadow: none;
  --accent-drop-shadow: none;
  
  /* Borders and Dividers */
  --border-muted: rgba(10, 11, 13, 0.08);
  --border-focus: rgba(var(--accent-color-rgb), 0.35);
  --border-neon: rgba(var(--accent-color-rgb), 0.7);

  /* Spacing system */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 80px;

  /* Corner Radii */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Global font assignment */
  --font-display: 'Hoshiko Satsuki', Georgia, serif;
  --font-system: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  scroll-behavior: smooth;
}

/* 3. Base Reset & Defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-color-rgb), 0.3);
}

/* 4. Textures and Overlays */
.parchment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/assets/images/onboarding_start_background.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply; /* Multiply blends dark parchment fibers onto light page */
  opacity: 0.08;
  pointer-events: none;
  z-index: 999;
}

/* 5. Reusable UI Primitives & Layout */
.shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-container {
  width: 100%; /* Occupy full horizontal space */
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-muted) 15%, var(--border-muted) 85%, transparent);
  margin-top: var(--space-xl);
}

/* Eyebrows and Section Headers */
.eyebrow {
  font-family: var(--font-system);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-eyebrow {
  font-family: var(--font-system);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-subtitle {
  font-family: var(--font-system);
  max-width: 680px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-header {
  margin-bottom: var(--space-xl);
}

/* 6. Header Navigation Styles */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(245, 242, 235, 0.85); /* Semi-translucent warm parchment */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-muted);
}

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

.header-logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.header-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-nav a.nav-link-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  position: relative;
}

.header-nav a.nav-link-item:hover {
  color: var(--text-primary);
}

.header-nav a.nav-link-item:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Beautiful Custom Language Selector */
.language-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  background: var(--bg-card);
  height: 32px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.language-select-wrapper:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.04);
}

.language-select-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.15);
}

.language-select-icon {
  position: absolute;
  left: 8px;
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  stroke-width: 2px;
  pointer-events: none;
}

.language-select-arrow {
  position: absolute;
  right: 8px;
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
  stroke-width: 2px;
  pointer-events: none;
}

.language-select-input {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  height: 100%;
  width: 100%;
  padding: 0 28px 0 30px; /* Padding moved here to ensure full click target area */
}

/* Header Download CTA Action Button */
.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 6px 14px;
  height: 34px;
  border-radius: 6px;
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  color: var(--bg-void);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
}

.header-action-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.22);
}

.header-action-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.5px;
}

/* 7. CTA Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-system);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* 9-Slice Ink Brush button */
.ink-brush-btn {
  width: 280px;
  height: 60px;
  background-image: url('/assets/images/ink_brush_button.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.ink-brush-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: var(--radius-sm);
  border: 1px dashed transparent;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.ink-brush-btn:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 12px rgba(var(--accent-color-rgb), 0.35));
}

.ink-brush-btn:hover::after {
  border-color: var(--accent-color);
}

.ink-brush-btn .btn-text {
  font-family: var(--font-system);
  font-weight: 800;
  color: #ffffff; /* White text contrasts perfectly inside the black ink brush stroke */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.outline-btn {
  padding: 14px 28px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: transparent;
}

.outline-btn:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.1);
  color: var(--text-primary);
  background: rgba(var(--accent-color-rgb), 0.08);
}

.secondary-btn {
  padding: 8px 18px;
  border: 1px solid rgba(var(--accent-color-rgb), 0.4);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  background: rgba(var(--accent-color-rgb), 0.08);
}

.secondary-btn:hover {
  background: rgba(var(--accent-color-rgb), 0.15);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.15);
}

/* 8. Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px var(--space-lg) 80px;
  background: radial-gradient(circle at center 35%, rgba(var(--accent-color-rgb), 0.06), transparent 50%), var(--bg-void);
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
    text-align: left;
  }
}

.hero-content {
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 10vw, 8rem);
  font-weight: normal;
  letter-spacing: 0.06em;
  line-height: 0.85;
  margin-bottom: var(--space-lg);
  color: var(--text-primary); /* Deep black ink stroke */
  text-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.15);
}

@media (min-width: 992px) {
  .hero-title {
    font-size: clamp(5rem, 8vw, 9.5rem);
  }
}

.hero-section .summary {
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 992px) {
  .hero-section .summary {
    margin: 0 0 var(--space-xl) 0;
  }
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .hero-ctas {
    justify-content: flex-start;
  }
}

/* CSS Phone Mockup Styles */
.hero-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 1000px;
}

.phone-mockup {
  width: 290px;
  height: 540px;
  background: #0b0c0e; /* Deep charcoal dark mode app background */
  border: 12px solid #1a1c22; /* Phone bezel */
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 35px rgba(var(--accent-color-rgb), 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 45px rgba(var(--accent-color-rgb), 0.2);
}

.phone-speaker {
  width: 60px;
  height: 12px;
  background: #1a1c22;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  font-family: var(--font-system);
}

.mock-header {
  margin-bottom: var(--space-md);
  margin-top: 5px;
}

.mock-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mock-level {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.5);
  transition: color 0.3s ease;
}

.mock-xp-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.mock-xp-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.mock-xp-progress {
  height: 100%;
  background: var(--accent-color);
  box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.8);
  border-radius: var(--radius-pill);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mock-stats-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-md);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.02);
}

.mock-progress-circle {
  position: relative;
  width: 110px;
  height: 110px;
}

.circular-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 85, 100;
  filter: drop-shadow(0 0 6px rgba(var(--accent-color-rgb), 0.7));
  transition: stroke 0.3s ease, filter 0.3s ease;
}

.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.circle-text .percentage {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.circle-text .label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mock-tasklist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow: hidden;
}

.mock-tasklist .list-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.mock-task-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
}

.mock-task-item.completed {
  background: rgba(var(--accent-color-rgb), 0.03);
  border-color: rgba(var(--accent-color-rgb), 0.1);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through rgba(255, 255, 255, 0.2);
}

.mock-task-item .task-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
  color: var(--accent-color);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* 9. Philosophy Section */
.philosophy-section {
  width: 100%;
  background: linear-gradient(180deg, var(--bg-void), var(--bg-charcoal));
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-md);
}

.philosophy-text-block h3 {
  font-family: var(--font-system);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.philosophy-text-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.philosophy-card-container {
  display: flex;
  justify-content: center;
}

.philosophy-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(var(--accent-color-rgb), 0.06), transparent 50%);
  pointer-events: none;
}

.pillar-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  background: var(--text-primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.philosophy-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.philosophy-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 10. Interactive Legends Showcase */
.legends-section {
  width: 100%;
  background: var(--bg-charcoal);
}

.legends-showcase-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .legends-showcase-container {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}

/* Left panel: Selected Legend Preview */
.legend-preview-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.1), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  transition: background 0.3s ease;
}

.legend-frame-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-md);
  background: transparent;
}

/* Outer broken frame: Top section with open bottom */
.legend-top-frame {
  width: fit-content;
  border: 2px solid var(--accent-color);
  border-bottom: none;
  padding: 10px 10px 14px 10px; /* 14px bottom padding lets vertical lines extend below image container */
  display: flex;
  justify-content: center;
  transition: border-color 0.3s ease;
}

/* Inner frame hugging the image closely */
.avatar-image-frame {
  width: fit-content;
  height: 280px; /* Height of the portrait frame */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  padding: 8px;
  border: 1px solid var(--accent-color);
  background: var(--bg-panel);
  transition: border-color 0.3s ease;
}

.avatar-preview-image {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  z-index: 4;
}

/* Metadata sits in the vertical gap */
.legend-metadata {
  width: 0;
  min-width: 100%; /* Match parent container width */
  text-align: center;
  padding: 12px 0; /* Creates the exact gap space between borders */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.legend-soul-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--text-primary);
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.15);
  transition: all 0.3s ease;
}

.legend-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Outer broken frame: Bottom bracket */
.legend-bottom-bracket {
  width: 100%; /* Stretches to parent width */
  height: 14px; /* Height of the vertical tick marks going up */
  border: 2px solid var(--accent-color);
  border-top: none;
  transition: border-color 0.3s ease;
}

.legend-stats {
  width: min(100%, 280px);
  margin: var(--space-md) auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.stat-name {
  width: 75px;
  text-align: left;
  letter-spacing: 0.05em;
}

.stat-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(10, 11, 13, 0.08); /* Diluted nanquim border/background */
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.4s ease, background-color 0.3s ease;
}

.stat-value {
  width: 32px;
  text-align: right;
  font-family: monospace;
  font-size: 0.75rem;
}

.legend-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
  margin: var(--space-sm) auto 0; /* Reduced top margin since stats sit above it */
  text-align: center;
}

/* Right side list of cards */
.legends-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}

.legend-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.legend-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  pointer-events: none;
}

.legend-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.legend-card-soul {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legend-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.legend-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.legend-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  opacity: 0.25;
  transition: all 0.2s ease;
}

/* Legends Card Hover & Active state */
.legend-card:hover {
  background: var(--bg-panel);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.legend-card.active {
  background: var(--bg-panel);
  border-color: var(--border-neon);
  box-shadow: 0 5px 20px rgba(var(--accent-color-rgb), 0.08);
  transform: translateX(6px);
}

.legend-card.active .legend-card-accent {
  opacity: 1;
  width: 6px;
  box-shadow: 0 0 10px var(--accent-color);
}

.legend-card.active .legend-card-soul {
  color: var(--text-primary);
  font-weight: 800;
}

/* 11. The Four Pillars Grid */
.pillars-section {
  width: 100%;
  background: linear-gradient(180deg, var(--bg-charcoal), var(--bg-void));
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 576px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-glow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.04), transparent 70%);
  pointer-events: none;
  transition: background 0.3s ease;
}

.pillar-header {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
  position: relative; /* Anchor for absolute icon placement */
}

.pillar-icon {
  position: absolute;
  top: 4px;
  right: 0;
  width: 26px;
  height: 26px;
  color: var(--accent-color);
  opacity: 0.85;
  stroke-width: 1.8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.18) rotate(-8deg);
  opacity: 1;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: var(--space-xs);
  transition: color 0.3s ease;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.05em;
  font-weight: normal;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.pillar-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.pillar-modules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid var(--border-muted);
  padding-top: var(--space-md);
}

.pillar-modules li {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.module-bullet-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-color);
  opacity: 0.65;
  stroke-width: 2.5px;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.pillar-card:hover .module-bullet-icon {
  opacity: 1;
  transform: translateX(2px);
}

/* Pillar Card Hover effects */
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 0 15px rgba(var(--accent-color-rgb), 0.05);
}

.pillar-card:hover .pillar-number {
  color: var(--text-primary);
  text-shadow: 2px 2px 0 var(--accent-color);
  transform: translateY(-2px);
}

.pillar-card:hover .pillar-glow {
  background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.1), transparent 70%);
}

/* 12. App Engine Features Grid */
.features-section {
  width: 100%;
  background: var(--bg-void);
}

.features-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .features-split {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-detail-card {
  padding: var(--space-lg);
  border: 1px solid var(--border-muted);
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-detail-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 0 15px rgba(var(--accent-color-rgb), 0.05);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-color-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: background 0.3s ease;
}

.feature-card-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-color);
  stroke-width: 2px;
  transition: transform 0.3s ease;
}

.feature-detail-card:hover .feature-card-icon {
  transform: scale(1.1);
}

.feature-detail-card:hover .feature-icon-wrapper {
  background: rgba(var(--accent-color-rgb), 0.15);
}

.feature-detail-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-detail-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* 13. Download & Footer Panels */
.download-section {
  width: 100%;
  background: var(--bg-void);
}

.download-box {
  background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.06),
    0 0 30px rgba(var(--accent-color-rgb), 0.03);
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.05), transparent 75%);
  pointer-events: none;
}

.download-box h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.1);
}

.download-box p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  font-size: 1.05rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

.version-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.download-status-label {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
}

.cta-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.45);
  transform: none;
}

.beta-download-panel {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.beta-download-heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.beta-download-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.beta-download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.beta-download-card:hover {
  border-color: var(--accent-color);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.05);
}

.beta-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.beta-download-title {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.beta-download-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.beta-card-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-color-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.beta-download-card:hover .beta-card-icon-wrapper {
  background: rgba(var(--accent-color-rgb), 0.12);
}

.beta-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-color);
  stroke-width: 2.5px;
  transition: transform 0.25s ease;
}

.beta-download-card:hover .beta-icon {
  transform: translateY(1px);
}

.beta-download-empty {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.download-page-shell {
  min-height: 100vh;
  padding: 140px var(--space-lg) 72px;
  background: radial-gradient(circle at center 20%, rgba(var(--accent-color-rgb), 0.08), transparent 48%), var(--bg-void);
  position: relative;
  z-index: 2;
}

.download-page-panel {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.06);
}

.download-page-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 0.95;
  margin-bottom: var(--space-xs);
}

.download-lead {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.download-release-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: rgba(var(--accent-color-rgb), 0.04);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .download-release-card {
    grid-template-columns: auto 1fr auto;
  }
}

.download-release-icon-side {
  display: flex;
  justify-content: center;
}

.download-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: rgba(var(--accent-color-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.05);
  border: 1px solid rgba(var(--accent-color-rgb), 0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.large-download-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
  stroke-width: 2px;
  transition: transform 0.3s ease;
}

.download-release-card:hover .download-icon-circle {
  transform: scale(1.05);
  background: rgba(var(--accent-color-rgb), 0.15);
}

.download-release-card:hover .large-download-icon {
  transform: translateY(1px);
}

.download-release-info-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

@media (min-width: 768px) {
  .download-release-info-side {
    text-align: left;
  }
}

.download-release-label {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.download-release-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.download-release-btn-side {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .download-release-btn-side {
    width: auto;
  }
}

.download-note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .download-note-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.download-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-md);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.download-note:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.note-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.note-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
  stroke-width: 2.2px;
}

.download-note strong {
  color: var(--text-primary);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.download-note span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.download-checksum {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: calc(-1 * var(--space-md)) 0 var(--space-xl);
  padding: var(--space-md);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.checksum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.checksum-title-side {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.checksum-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
  stroke-width: 2.2px;
}

.download-checksum strong {
  color: var(--text-primary);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-checksum-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--accent-color-rgb), 0.08);
  border: 1px solid rgba(var(--accent-color-rgb), 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.copy-checksum-btn:hover {
  background: rgba(var(--accent-color-rgb), 0.15);
  border-color: var(--accent-color);
}

.copy-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5px;
}

.download-checksum code {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.beta-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--accent-color);
  padding-left: 10px;
}

.beta-section-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  stroke-width: 2.2px;
}

.download-beta-section h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 14. Footer Layout */
.app-footer {
  width: 100%;
  background: #ede9df; /* Darkened parchment surface */
  border-top: 1px solid var(--border-muted);
  padding: var(--space-xl) var(--space-lg);
  z-index: 2;
}

.footer-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-logo-block {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  position: relative;
}

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

.footer-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* 15. Animation Helpers */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .eyebrow {
  animation-delay: 0.1s;
}

.hero-content .hero-title {
  animation-delay: 0.2s;
}

.hero-content .summary {
  animation-delay: 0.3s;
}

.hero-content .hero-ctas {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 16. Responsiveness Breakpoints */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .legends-showcase-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .legend-preview-panel {
    padding: var(--space-lg);
  }
  
  .avatar-image-frame {
    height: 300px;
  }
  
  .features-split {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .download-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .ink-brush-btn {
    width: 100%;
    max-width: 320px;
  }
  
  .outline-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* 17. Policy and Legal Pages Styling (Light Theme) */
.document-shell {
  min-height: 100vh;
  padding: 120px 20px 56px; /* offset for fixed header */
  background: var(--bg-void);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.policy {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border-muted);
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.05);
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-color);
  transition: opacity 0.2s ease;
  letter-spacing: 0.08em;
}

.back-link:hover {
  opacity: 0.7;
}

.policy .eyebrow {
  color: var(--accent-color);
  background: var(--text-primary);
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  padding: 0.28rem 0.42rem 0.28rem 0.68rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.language-selector select {
  width: 7.2rem;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 1.7rem 0.42rem 0.68rem;
  background: rgba(var(--accent-color-rgb), 0.12);
  color: var(--text-primary);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.language-selector select:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.policy-header {
  margin-bottom: 42px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Ensure precise left vertical alignment */
}

.policy-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.policy h1 {
  font-family: var(--font-system); /* Clean legible sans-serif for legal/doc titles */
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: var(--space-sm) 0;
  color: var(--text-primary);
}

.policy h2 {
  margin: 38px 0 14px;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

.policy p,
.policy li {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
}

.policy p {
  margin: 0 0 16px;
}

.policy ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.policy li + li {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .document-shell {
    padding: 80px 12px 36px;
  }

  .policy {
    padding: 22px;
  }
}
