/*
  Styling for the standalone legal pages (privacy-policy.html, terms.html).
  These live in /public and are served as plain HTML, so they can't use the
  app's Tailwind build — this sheet mirrors the Navbar + Footer design tokens
  by hand. Keep values in sync with src/components/Navbar.tsx and Footer.tsx.
*/

:root {
  --navy: #1c2b4a;
  --orange: #f5921b;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 4rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: #ffffff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.gradient-text {
  background: linear-gradient(to right, var(--navy), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- Navbar */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.03);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand img {
  height: 3rem;
  width: auto;
}

.nav-brand span {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease;
}

.nav-brand:hover span {
  opacity: 0.75;
}

.nav-links {
  display: none;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.125rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--navy), var(--orange));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 75%;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(28, 43, 74, 0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
  box-shadow: 0 12px 28px -8px rgba(245, 146, 27, 0.55);
  transform: scale(1.03);
}

.nav-cta .cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--navy);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-cta:hover .cta-icon {
  background: var(--orange);
  color: #fff;
}

.nav-back {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  white-space: nowrap;
}

.nav-back:hover {
  color: var(--gray-900);
}

/* ------------------------------------------------------------ Page body */

.legal-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: rgba(245, 146, 27, 0.4);
}

.legal-main h1 {
  margin: 1rem 0 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--gray-950);
}

.updated {
  margin: 0.875rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.legal-main h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--gray-900);
}

.legal-main p,
.legal-main li {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.legal-main ul {
  padding-left: 1.25rem;
}

.legal-main li {
  margin-bottom: 0.5rem;
}

.legal-main strong {
  color: var(--gray-900);
  font-weight: 600;
}

.legal-main a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 43, 74, 0.25);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-main a:hover {
  color: var(--orange);
  border-color: rgba(245, 146, 27, 0.5);
}

.legal-main address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Registered-entity card — mirrors the app's card treatment */
.entity-card {
  margin: 0 0 2.5rem;
  padding: 1.75rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(243, 244, 246, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 40px -8px rgba(0, 0, 0, 0.06);
}

.entity-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
}

.entity-card .entity-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.entity-card .entity-row svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.entity-card .legal-name {
  font-weight: 600;
  color: var(--gray-900);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  color: var(--gray-700);
}

.footer-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 146, 27, 0.3), transparent);
}

.footer-orb {
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: rgba(245, 146, 27, 0.08);
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand-col .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.footer-brand-col .brand img {
  height: 2.5rem;
  width: auto;
}

.footer-brand-col .brand span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: color 0.3s ease;
}

.footer-brand-col .brand:hover span {
  color: var(--orange);
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.socials a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.footer-office {
  margin-top: 2rem;
}

.footer-office h4,
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: 0.025em;
  margin: 0 0 0.75rem;
}

.footer-col h4 {
  margin-bottom: 1.25rem;
}

.footer-office .office-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  max-width: 24rem;
}

.footer-office svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-office address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.footer-office .legal-name {
  font-weight: 500;
  color: var(--gray-900);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--gray-900);
}

.footer-col a svg {
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-col a:hover svg {
  opacity: 1;
  transform: translateY(0);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

.footer-bottom .legal-line {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--gray-600);
  text-align: center;
}

.footer-bottom-row {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-row p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--gray-900);
}

/* ------------------------------------------------------------ Responsive */

@media (min-width: 768px) {
  body {
    padding-top: 4.5rem;
  }

  .nav-inner {
    height: 4.5rem;
  }

  .nav-brand img {
    height: 3.5rem;
  }

  .nav-brand span {
    font-size: 1.25rem;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-back {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom .legal-line {
    text-align: left;
  }

  .footer-bottom-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .nav-inner,
  .footer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: span 2 / span 2;
  }
}

@media (max-width: 640px) {
  .legal-main h1 {
    font-size: 1.875rem;
  }

  .legal-main {
    padding-top: 2.5rem;
  }
}
