/* ─── Wordistan Design System ───
   App palette: 60/30/10 rule
   60% warm off-white surfaces
   30% deep emerald green brand
   10% warm amber accent
   ─────────────────────────────── */

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

:root {
  --bg: #F8F8F6;
  --surface: #FFFFFF;
  --surface-dim: #F1F3F5;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --primary: #1B6D24;
  --primary-dark: #14532D;
  --primary-light: #DCF7E3;
  --primary-hover: #166534;

  --accent: #E65100;
  --accent-light: #FFF3E0;

  --amber: #D97706;
  --amber-light: #FEF3C7;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 720px;
  --max-w-wide: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ─── Header / Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.btn-nav {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-nav:hover {
  background: var(--primary-hover);
  color: #fff !important;
  text-decoration: none;
}

/* ─── Mobile Nav ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle svg { display: block; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
}

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  flex: 1;
}
.container-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  flex: 1;
}

/* ─── Document Header ─── */
.doc-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.doc-header .badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.doc-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.doc-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.last-updated {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Legal Content ─── */
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface-dim);
}
.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.4rem;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.legal-section li { margin-bottom: 0.35rem; }

.callout {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
  color: var(--primary-dark);
  font-size: 0.875rem;
  line-height: 1.6;
}
.callout-warning {
  background: var(--amber-light);
  border-left-color: var(--amber);
  color: #92400E;
}
.callout-success {
  background: #F0FDF4;
  border-left-color: #16A34A;
  color: #15803D;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 1.25rem;
  display: block;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s, transform 0.15s;
}
.btn-store:hover {
  background: #374151;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn-store svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-icon.green { background: var(--primary-light); }
.feature-icon.amber { background: var(--amber-light); }
.feature-icon.accent { background: var(--accent-light); }

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

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

/* ─── Support / Form ─── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 640px) {
  .support-grid { grid-template-columns: 1fr; }
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.support-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }

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

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .doc-title { font-size: 1.35rem; }
  .legal-card { padding: 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
}
