/* Shared styles for /brevva/{terms,privacy,cookies}.html.
   Pre-launch placeholder design — substantive content but unstyled
   beyond readability + brand-aligned headers. Mirrors the look of the
   React LegalLayout in frontend/src/pages/Legal/LegalLayout.tsx so
   the eventual full-app legal pages don't feel like a different site.
*/

:root {
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --indigo-600: #4f46e5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-900: #78350f;
  --brand: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: var(--violet-600); text-decoration: none; }
a:hover { color: var(--violet-500); }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--gray-100);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header.site {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.875rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-900);
}
.brand:hover { color: var(--gray-900); }
.brand-mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-tag {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Main */
main.legal {
  padding: 3rem 0 2rem;
}
main.legal h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}
.last-updated {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 2rem;
}

/* Pre-launch banner (Note in the React LegalLayout) */
.note {
  margin: 1.5rem 0 2rem;
  padding: 0.875rem 1rem;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 8px;
  color: var(--amber-900);
  font-size: 0.9rem;
}

/* Legal prose */
.legal-content h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}
.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
}
.legal-content p {
  margin: 0 0 0.875rem;
  color: var(--gray-700);
}
.legal-content ul {
  margin: 0 0 0.875rem 1.25rem;
  padding: 0;
  color: var(--gray-700);
}
.legal-content li {
  margin-bottom: 0.4rem;
}
.legal-content strong {
  font-weight: 600;
  color: var(--gray-900);
}
.legal-content em { font-style: italic; }

/* Sub-processor table on Privacy */
.sub-processors {
  width: 100%;
  margin: 0.5rem 0 1rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  overflow-x: auto;
  display: block;
}
.sub-processors thead {
  text-align: left;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}
.sub-processors th {
  padding: 0.5rem 1rem 0.5rem 0;
  font-weight: 500;
}
.sub-processors td {
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.sub-processors td:first-child { font-weight: 500; color: var(--gray-900); }

/* Cross-link footer */
footer.legal-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-200);
  font-size: 0.75rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer.legal-footer a { color: var(--gray-500); }
footer.legal-footer a:hover { color: var(--gray-700); }
.legal-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 480px) {
  main.legal h1 { font-size: 1.625rem; }
  main.legal { padding: 2rem 0 1.5rem; }
}
