/* Itinera — Shared styles for all static pages */

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

:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-fg: #f8fafc;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-800: #92400e;
  --white: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--slate-900);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Legal page header */
.legal-header {
  border-bottom: 1px solid var(--slate-200);
}

.legal-header-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--slate-900);
}

.back-link {
  font-size: 0.875rem;
  color: var(--slate-500);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--slate-700);
  text-decoration: none;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

/* Main content area */
.legal-content {
  flex: 1;
  max-width: 768px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.legal-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

.legal-content .intro {
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content .label {
  font-weight: 500;
  color: var(--slate-800);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content ul li {
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-content ul li .label {
  color: var(--slate-800);
}

/* Contact card (support page) */
.contact-card {
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card h2 {
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item .contact-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
  margin-bottom: 2px;
}

.contact-item .contact-value {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

.contact-item a {
  font-size: 0.875rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--slate-600);
  line-height: 1.7;
  margin: 0;
}

/* Alert banner */
.alert-amber {
  margin-top: 2.5rem;
  border-radius: 8px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  padding: 1rem;
}

.alert-amber p {
  font-size: 0.875rem;
  color: var(--amber-800);
  margin: 0;
}

/* Footer */
.legal-footer {
  border-top: 1px solid var(--slate-200);
  margin-top: auto;
}

.legal-footer-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--slate-400);
}

@media (min-width: 640px) {
  .legal-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--slate-600);
  text-decoration: none;
}
