@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=EB+Garamond:ital,wght@1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ==========================================
   DESIGN TOKENS - WISPR FLOW INSPIRATION
   ========================================== */
:root {
  --color-bg: #FAF9F6; /* Soft warm off-white */
  --color-bg-alt: #F3F2EE; /* Slightly darker neutral warm */
  --color-surface: #FFFFFF;
  --color-text: #222222; /* Soft black/charcoal */
  --color-text-muted: #5F5E5A; /* Softer neutral grey */
  
  --color-primary: #0F766E; /* Teal accent */
  --color-primary-light: #115E59;
  --color-primary-container: #F0FDFA;
  --color-primary-outline: rgba(15, 118, 110, 0.1);
  
  --color-outline: rgba(0, 0, 0, 0.06);
  --color-outline-focus: #0F766E;
  
  --nav-bg: rgba(250, 249, 246, 0.75);
  --nav-border: rgba(0, 0, 0, 0.05);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.06);
  
  --font-sans: 'Roboto', sans-serif;
  --font-serif: 'EB Garamond', serif;
}

[data-theme="dark"] {
  --color-bg: #0B0E14; /* Deep dark slate */
  --color-bg-alt: #121720;
  --color-surface: #121720;
  --color-text: #F1F5F9; /* Off-white */
  --color-text-muted: #94A3B8; /* Muted cool slate */
  
  --color-primary: #2DD4BF; /* Mint/teal accent */
  --color-primary-light: #0F766E;
  --color-primary-container: #0F1D1C;
  --color-primary-outline: rgba(45, 212, 191, 0.15);
  
  --color-outline: rgba(255, 255, 255, 0.06);
  --color-outline-focus: #2DD4BF;
  
  --nav-bg: rgba(11, 14, 20, 0.75);
  --nav-border: rgba(255, 255, 255, 0.05);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.015em; /* Sleek, high-end compact tracking globally */
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Material Symbols Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Serif Italic Accent Class */
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500; /* Clean medium headers like wispr/google */
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.025em; /* Punchy tracking for headings */
  text-rendering: optimizeLegibility;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.035em; /* Extremely tight for massive hero title */
  line-height: 1.1;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  border-radius: 9999px; /* Pill button */
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-filled {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn-filled:hover {
  transform: scale(1.04);
  background-color: var(--color-primary);
  color: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: scale(0.97) !important;
}

[data-theme="dark"] .btn-filled:hover {
  color: #0b0e14;
}

.btn-outlined {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-outline);
}

.btn-outlined:hover {
  transform: scale(1.04);
  background-color: var(--color-primary-container);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================
   FLOATING CAPSULE NAVIGATION HEADER
   ========================================== */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 60px;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--nav-border);
  border-radius: 9999px; /* Capsule shape */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.4s, border-color 0.4s;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

[data-theme="dark"] .logo-icon {
  color: #0b0e14;
}

.logo-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.badge-beta {
  font-size: 0.625rem; /* 10px */
  font-weight: 600;
  text-transform: uppercase;
  background-color: var(--color-primary-container);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-outline);
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 2px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}

/* Pulsing dot indicator inside the beta badge */
.badge-beta::before {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 0;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-link:hover {
  color: var(--color-text);
}

.navbar-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-link.active {
  color: var(--color-text);
}

.navbar-link.active::after {
  transform: scaleX(1);
  background-color: var(--color-text);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: transparent;
  color: var(--color-text);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-btn:hover {
  background-color: var(--color-bg-alt);
  transform: scale(1.1) rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Nav Panel */
.mobile-nav-panel {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 90%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-panel.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-bg-alt);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* ==========================================
   HERO / MAIN VIEW
   ========================================== */
.hero-section {
  min-height: 100vh;
  padding: 120px 0 80px 0; /* Tighter padding to prevent content clipping */
  display: flex;
  align-items: center;
  text-align: left;
  box-sizing: border-box;
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 40px; /* Shift content slightly to the right */
  margin-top: -35px;  /* Shift content slightly up */
}

.hero-title {
  font-size: 2.8rem; /* Reduced size for visual balance and to prevent layout hiding */
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-phone-mockup {
  flex: 0.8;
  width: 100%;
  max-width: 520px; /* Increased scale of the mockup image */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float-phone 6s ease-in-out infinite;
}

/* Linear and radial gradient overlay to fade out the complete bottom and bottom right */
/* Dark theme fade overlay */
.hero-phone-mockup::before {
  content: '';
  position: absolute;
  inset: 0; /* Cover the entire image */
  background: 
    linear-gradient(to top, #0B0E14 0%, transparent 10%),
    radial-gradient(circle at bottom right, #0B0E14 10%, transparent 40%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s ease;
  opacity: 0; /* Hidden by default in light mode */
}

/* Light theme fade overlay */
.hero-phone-mockup::after {
  content: '';
  position: absolute;
  inset: 0; /* Cover the entire image */
  background: 
    linear-gradient(to top, #FAF9F6 0%, transparent 10%),
    radial-gradient(circle at bottom right, #FAF9F6 10%, transparent 40%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s ease;
  opacity: 1; /* Visible by default in light mode */
}

/* Under dark mode, toggle opacities */
[data-theme="dark"] .hero-phone-mockup::before {
  opacity: 1;
}

[data-theme="dark"] .hero-phone-mockup::after {
  opacity: 0;
}

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

@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-description {
  max-width: 580px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto; /* Allow natural scrolling stack on mobile viewports */
    padding: 120px 0 60px 0;
    text-align: center;
  }

  .hero-content-left {
    display: contents; /* Flatten wrapper to allow grid template area layout */
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
      "title"
      "image"
      "desc"
      "download";
    gap: 24px;
    justify-items: center;
    text-align: center;
  }

  .hero-title {
    grid-area: title;
    font-size: 2.2rem; /* Scaled down tagline on mobile to keep page elements visible */
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .hero-buttons {
    grid-area: download;
    margin-left: 0;
    margin-bottom: 0;
    justify-content: center;
  }

  .hero-description {
    grid-area: desc;
    margin-left: 0;
    margin-bottom: 0;
    padding: 0 16px;
  }

  .hero-phone-mockup {
    grid-area: image;
    max-width: 260px;
  }
}

/* ==========================================
   REMOVED ANIMATION SECTION
   ========================================== */
/* Note: Animation and trust sections removed to clean layout */



/* ==========================================
   MINIMAL SECTIONS (FEATURES, FAQ, SUPPORT)
   ========================================== */
.section-wrapper {
  padding: 96px 0;
  border-bottom: 1px solid var(--color-outline);
}

.section-wrapper:last-of-type {
  border-bottom: none;
}

.section-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 56px auto;
}

.section-tag {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 500;
  margin-top: 4px;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background-color: var(--color-surface);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--color-outline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1rem;
  font-weight: 500;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Accordion FAQ */
.faq-grid {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-question {
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

.faq-answer {
  padding: 0 4px 20px 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: none;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.25s;
  font-size: 18px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Support Form Section */
/* Note: Support and contact sections removed to clean layout */

/* ==========================================
   FOOTER BAR
   ========================================== */
.footer-m3 {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-outline);
  padding: 80px 0 40px 0;
  font-size: 0.8rem;
  transition: background-color 0.4s, border-color 0.4s;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-desc {
  color: var(--color-text-muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--color-text-muted);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

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

.footer-links-list .footer-link:hover {
  transform: translateX(4px);
}

.footer-newsletter-text {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 4px;
  background-color: var(--color-surface);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--color-outline);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding-left: 16px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.newsletter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-btn:hover {
  transform: scale(1.1);
  background-color: var(--color-primary);
  color: var(--color-bg);
}

[data-theme="dark"] .newsletter-btn:hover {
  color: #0b0e14;
}

.footer-divider {
  height: 1px;
  background-color: var(--color-outline);
  margin: 40px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--color-text-muted);
}

.footer-legal-inline {
  display: flex;
  gap: 16px;
}

/* ==========================================
   STORE BADGE BUTTONS (PIXEL PERFECT)
   ========================================== */
.store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 16px;
  border: 1px solid #222222;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 152px;
  height: 48px;
  text-align: left;
}

.badge-btn:hover {
  background-color: #111111;
  border-color: var(--color-primary);
  transform: scale(1.04);
}

/* =============================================
   HERO GOOGLE PLAY BADGE
   ============================================= */
.hero-play-btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 13px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease,
              filter 0.2s ease;
}

.hero-play-btn:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

.hero-play-btn:active {
  transform: scale(0.96);
  filter: none;
}

.hero-play-btn .play-badge-img {
  display: block;
  height: 64px;
  width: auto;
  border-radius: 13px;
}

@media (max-width: 768px) {
  .hero-play-btn .play-badge-img {
    height: 54px;
  }
}

.badge-logo svg {
  width: 20px;
  height: 20px;
  display: block;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.badge-subtitle {
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.badge-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.2px;
}

/* Toast Message */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-outline);
  color: var(--color-text);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 400;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================
   LEGAL HUB PAGE LAYOUT (legal.html) - GOOGLE/APPLE DEFAULT LEGAL TYPOGRAPHY
   ========================================== */
.legal-hero {
  padding-top: 130px;
  padding-bottom: 50px;
  background-color: var(--color-bg-alt);
  text-align: center;
  border-bottom: 1px solid var(--color-outline);
}

.legal-hero .container {
  max-width: 760px;
  margin: 0 auto;
  width: 90%;
}

.legal-hero h1 {
  font-size: 1.75rem; /* 28px - Google/Apple Legal Title size */
  font-weight: 500; /* Google uses weight 500 for legal titles */
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-hero p {
  font-size: 0.875rem; /* 14px */
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Pill Anchors */
.legal-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legal-nav a {
  padding: 6px 16px;
  background-color: var(--color-surface);
  border-radius: 9999px;
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-outline);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-nav a:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

[data-theme="dark"] .legal-nav a:hover {
  color: #0b0e14;
}

.legal-content {
  padding: 60px 0; /* Google/Apple uses compact margins */
  background-color: var(--color-surface);
}

.legal-content .container {
  max-width: 760px;
  margin: 0 auto;
  width: 90%;
}

.legal-section {
  margin-bottom: 48px; /* Compact, neat structure */
}

.legal-section h2 {
  font-size: 1.25rem; /* 20px - Google/Apple sub-title size */
  font-weight: 500; /* Google uses weight 500 for section titles */
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-section .last-updated {
  font-size: 0.8125rem; /* 13px */
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-weight: 400;
  opacity: 0.8;
}

.legal-section p {
  font-size: 0.875rem; /* 14px - Apple/Google T&C body size */
  color: var(--color-text-muted); /* Lighter/softer grey color */
  line-height: 1.6; /* 1.6 line height for legibility */
  margin-bottom: 12px;
  font-weight: 400;
}

.legal-section h3 {
  font-size: 1rem; /* 16px - Google/Apple H3 size */
  font-weight: 500; /* Google style medium header */
  color: var(--color-text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-section h4 {
  font-size: 0.875rem; /* 14px - Google/Apple H4 size */
  font-weight: 500; /* Medium weight */
  color: var(--color-text);
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-section ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.legal-section ul li {
  font-size: 0.875rem; /* 14px */
  color: var(--color-text-muted); /* Lighter/softer grey */
  line-height: 1.6;
  margin-bottom: 6px;
  list-style: disc;
  font-weight: 400;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  filter: brightness(1.1);
}

.legal-divider {
  height: 1px;
  background-color: var(--color-outline);
  margin: 48px 0; /* Compact separators */
}

/* ==========================================
   ANDROID & RESPONSIVE MOBILE OPTIMIZATIONS
   ========================================== */
/* Typography and footer responsiveness on Android/mobile screens */
@media (max-width: 768px) {
  /* Circular download button layout on small screen displays */
  .nav-download-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-download-btn .btn-text {
    display: none !important;
  }

  .nav-download-btn .download-icon {
    display: inline-block !important;
  }

  body {
    line-height: 1.55;
    letter-spacing: -0.01em;
  }
  
  /* Footer mobile styling */
  .footer-m3 {
    padding: 60px 0 30px 0;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-brand-desc {
    max-width: 100%;
    padding: 0 20px;
  }
  .footer-newsletter-text {
    padding: 0 20px;
  }
  .newsletter-form {
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer-legal-inline {
    justify-content: center;
  }
  
  /* Legal page mobile heading typography scaling */
  .legal-hero h1 {
    font-size: 1.5rem; /* 24px */
  }
  .legal-section h2 {
    font-size: 1.15rem; /* 18.4px */
  }
  .legal-section h3 {
    font-size: 0.95rem; /* 15.2px */
  }

  /* Hero Play badge on mobile */
  .hero-play-btn {
    padding: 8px 16px 8px 12px;
    gap: 9px;
  }

  .hero-play-btn .play-store-icon {
    width: 18px;
    height: 22px;
  }

  .hero-play-btn .play-btn-title {
    font-size: 15px;
  }
}
