/* True-Acc — legal & inner pages (aligned with landing slate + emerald) */

:root {
  --bg-deep: #f8fafc;
  --bg-panel: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #059669;
  --accent-dim: #047857;
  --accent-hover: #10b981;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --footer-heading: #f8fafc;
  --radius: 12px;
  --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(4rem, 12vw, 5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(0.875rem, 4vw, 1.5rem);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 0;
  min-width: 0;
}

.header-stack .header-inner {
  padding-bottom: 0.55rem;
}

@media (min-width: 768px) {
  .header-stack .header-inner {
    padding-bottom: 0.85rem;
  }
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: none;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: 1rem;
    row-gap: 0.35rem;
  }
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--text);
}

.nav--auth {
  display: none;
}

@media (min-width: 768px) {
  .nav--auth {
    display: flex;
  }
}

@media (max-width: 767px) {
  .nav-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0 0.75rem;
    margin: 0;
    width: 100%;
  }

  .nav-mobile a {
    flex: 0 1 auto;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-mobile a:hover,
  .nav-mobile a:focus-visible {
    color: var(--accent);
    border-color: rgba(5, 150, 105, 0.35);
  }
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
}

/* Footer — marketing layout */

.site-footer {
  padding: 1.5rem 0;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.site-footer--marketing {
  padding: 2.5rem 0 0;
  border-top: 1px solid #1e293b;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-marketing-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-marketing-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--footer-heading);
}

.footer-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--footer-text);
  max-width: 36ch;
}

.footer-col-heading {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.footer-company-lines {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--footer-text);
}

.footer-company-lines a {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-company-lines a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-bottom-bar {
  padding: 1rem 0 max(1.25rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

@media (max-width: 767px) {
  .site-footer--marketing .footer-marketing-grid {
    text-align: center;
    justify-items: center;
  }

  .footer-brand-block {
    align-items: center;
  }

  .footer-note {
    margin-inline: auto;
  }

  .site-footer--marketing .footer-company-block {
    text-align: center;
  }

  .site-footer--marketing .footer-nav-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer--marketing .footer-links--stacked {
    align-items: center;
  }
}
