/* PantanOS shared stylesheet — single source of truth for design tokens and
   chrome (nav, footer) used by all marketing pages: index.html,
   es/privacy.html, en/privacy.html. Anchored to the Flutter dark theme so
   marketing → splash → app share one continuous navy surface. */

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

/* --- Design tokens --- */
:root {
  /* Legacy tokens retained — policy.css consumes these for the legal-copy
     card and a few existing rules below still reference them. Values
     unchanged. */
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #E65100;
  --bg: #E3F2FD;
  --surface: #FFFFFF;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --divider: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 12px;

  /* Brand-aligned dark-theme tokens (anchored to Flutter dark ColorScheme).
     The marketing chrome consumes these everywhere — nav, footer, hero,
     all sections except the legal-copy card inside the privacy policy. */
  --bg-dark: #1A2A33;            /* Flutter dark surface (icon navy) */
  --surface-dark: #1E3040;       /* surfaceContainerLow */
  --surface-elevated: #284050;   /* surfaceContainerHigh */
  --primary-light: #4DB6AC;      /* AA-on-dark teal (~6.5:1 vs --bg-dark) */
  --accent-warm: #E65100;        /* Warm orange (large only on dark) */
  --accent-warm-light: #FFB74D;  /* AA-on-dark orange (~10.2:1 vs --bg-dark) */
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.78);
  --text-on-dark-subtle: rgba(255,255,255,0.56);
  --border-on-dark: rgba(255,255,255,0.08);
  --shadow-on-dark-lg: 0 24px 60px -12px rgba(0,0,0,0.55);
  --shadow-glow-teal: 0 0 80px -8px rgba(14,124,140,0.45);
  --shadow-glow-orange: 0 0 32px -4px rgba(230,81,0,0.35);
}

/* --- Base --- */
body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Nav (dark + translucent) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26,42,51,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-on-dark);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
/* Two-tone wordmark — "Pantan" + "OS" rendered as adjacent siblings with no
   whitespace between them so the rendered text reads as one word. Two-tone
   rule mirrors capability `brand-wordmark` — Pantan in onSurface, OS in
   primary, under the dark theme. */
.nav-logo .word {
  display: inline-flex;
  align-items: baseline;
}
.nav-logo .word > span:first-child { color: var(--text-on-dark); }
.nav-logo .word-os { color: var(--primary-light); }

.nav-langs { display: flex; gap: 4px; }
.nav-langs a {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-on-dark-subtle);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-langs a:hover { color: var(--primary-light); background: rgba(77,182,172,0.1); }
.nav-langs a.active {
  color: var(--primary-light);
  background: rgba(77,182,172,0.16);
  font-weight: 600;
}

/* --- Footer (dark) --- */
.footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-on-dark-subtle);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-on-dark);
  background: var(--bg-dark);
}
.footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}
.footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-logo { font-size: 1.125rem; }
  .footer { padding: 24px 16px; }
  .footer-links { gap: 16px; }
}
