:root {
  --agx-blue: #007aff;
  --agx-blue-600: #0066cc;
  --agx-bg: #eef0f2;
  --agx-text: #020617;
  --agx-muted: #566275;
  --agx-soft: #eaf3ff;
  --agx-line: #dbe4ef;
  --agx-white: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--agx-bg);
  color: var(--agx-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--agx-bg);
  color: var(--agx-text);
}

a {
  color: inherit;
}

.public-nav-shell {
  left: 0;
  padding: 12px 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.public-nav {
  align-items: center;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 8px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 6px;
}

.brand {
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 900;
  gap: 12px;
  padding: 4px 14px 4px 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  height: 40px;
  width: 40px;
}

.home-back-short,
.button-short {
  display: none;
}

.language-switcher {
  background: #f1f5f9;
  border-radius: 999px;
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
}

.language-switcher a,
.language-switcher span {
  border-radius: 999px;
  color: var(--agx-muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.language-switcher .active {
  background: white;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  color: var(--agx-blue);
}

.language-switcher a:hover,
.footer-link:hover {
  color: var(--agx-blue);
}

.nav-actions {
  display: flex;
  gap: 8px;
  margin-left: 4px;
}

.nav-actions--end {
  margin-left: auto;
}

.button {
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
}

.button-primary {
  background: var(--agx-blue);
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.22);
  color: white;
}

.button-primary:hover {
  background: var(--agx-blue-600);
}

.button-secondary {
  background: white;
  border-color: var(--agx-line);
  color: var(--agx-text);
}

.public-container {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 24px;
}

.page-hero {
  padding: 144px 0 56px;
}

.hero-grid {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.54fr);
}

.eyebrow {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  color: var(--agx-blue);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 18px;
  padding: 8px 13px;
  text-transform: uppercase;
}

h1 {
  font-size: 72px;
  font-weight: 950;
  line-height: 0.95;
  margin: 0;
}

.lead {
  color: var(--agx-muted);
  font-size: 20px;
  line-height: 1.7;
  margin: 22px 0 0;
  max-width: 720px;
}

.hero-card,
.legal-content,
.contact-card,
.article-card {
  background: var(--agx-white);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.06);
}

.hero-card {
  padding: 28px;
}

.hero-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.15;
}

.hero-card p {
  color: var(--agx-muted);
  line-height: 1.7;
  margin: 14px 0 0;
}

.legal-section,
.content-section {
  padding: 0 0 56px;
}

.legal-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 270px minmax(0, 1fr);
}

.legal-toc {
  align-self: start;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 22px;
  position: sticky;
  top: 112px;
}

.legal-toc p {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.legal-toc a {
  color: var(--agx-muted);
  display: block;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  padding: 8px 0;
  text-decoration: none;
}

.legal-content {
  padding: 38px;
}

.legal-content h2,
.article-body h2 {
  color: var(--agx-text);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.1;
  margin: 48px 0 18px;
}

.legal-content h2:first-child,
.article-body h2:first-child {
  margin-top: 0;
}

.legal-content h3,
.article-body h3 {
  font-size: 21px;
  font-weight: 900;
  margin: 28px 0 10px;
}

.legal-content p,
.legal-content li,
.article-body p,
.article-body li {
  color: var(--agx-muted);
  font-size: 18px;
  line-height: 1.75;
}

.legal-content p,
.article-body p {
  margin: 0 0 18px;
}

.legal-content ul,
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.legal-content a,
.article-body a {
  color: var(--agx-blue);
  font-weight: 900;
}

.article-body img {
  border-radius: 24px;
  display: block;
  max-width: 100%;
}

.article-body table {
  border: 1px solid var(--agx-line);
  border-collapse: collapse;
  margin: 28px 0;
  width: 100%;
}

.article-body th,
.article-body td {
  border-top: 1px solid var(--agx-line);
  color: var(--agx-muted);
  line-height: 1.6;
  padding: 14px;
  text-align: left;
}

.article-body th {
  background: #f8fafc;
  color: var(--agx-text);
  font-weight: 900;
}

.contact-grid,
.blog-grid,
.related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card,
.article-card {
  display: grid;
  overflow: hidden;
  padding: 26px;
}

.contact-icon {
  align-items: center;
  background: var(--agx-soft);
  border-radius: 18px;
  color: var(--agx-blue);
  display: flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 24px;
  width: 58px;
}

.article-card {
  padding: 0;
  text-decoration: none;
}

.article-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.article-card-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.pill {
  background: var(--agx-soft);
  border-radius: 999px;
  color: var(--agx-blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  width: fit-content;
}

.article-card h2,
.article-card h3,
.contact-card h2,
.contact-card h3 {
  color: var(--agx-text);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.12;
  margin: 0;
}

.article-card p,
.contact-card p {
  color: var(--agx-muted);
  line-height: 1.7;
  margin: 0;
}

.final-cta {
  padding: 48px 24px 80px;
}

.final-cta-inner {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #cfe3ff;
  border-radius: 8px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1280px;
  padding: 38px;
}

.final-cta h2 {
  font-size: 48px;
  font-weight: 950;
  line-height: 1.05;
  margin: 0;
  max-width: 720px;
}

.final-cta p {
  color: var(--agx-muted);
  font-size: 19px;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 720px;
}

.final-actions {
  display: grid;
  gap: 12px;
}

.public-footer {
  background: white;
  padding: 56px 24px 64px;
}

.footer-inner {
  margin: 0 auto;
  max-width: 1280px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.06);
}

.footer-core {
  background: rgba(248, 250, 252, 0.82);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95);
  padding: 40px;
}

.footer-main {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.75fr);
}

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

.footer-brand img {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.18);
  height: 48px;
  width: 48px;
}

.footer-brand strong {
  display: block;
  font-size: 20px;
  font-weight: 950;
}

.footer-brand p {
  color: var(--agx-muted);
  line-height: 1.6;
  margin: 4px 0 0;
  max-width: 440px;
}

.footer-intro {
  display: grid;
  gap: 24px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-groups {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-group {
  display: grid;
  gap: 12px;
}

.footer-group h2 {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.footer-group ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  color: var(--agx-muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.footer-bottom {
  border-top: 1px solid rgba(219, 228, 239, 0.9);
  color: #64748b;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 16px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .public-nav-shell {
    padding: 10px 12px;
  }

  .public-nav {
    gap: 4px;
    padding: 6px;
  }

  .brand {
    font-size: 13px;
    gap: 6px;
    padding: 2px 7px 2px 2px;
  }

  .brand img {
    border-radius: 10px;
    height: 34px;
    width: 34px;
  }

  .home-back-full,
  .button-full {
    display: none;
  }

  .home-back-short,
  .button-short {
    display: inline;
  }

  .language-switcher {
    margin-left: auto;
    padding: 3px;
  }

  .language-switcher a,
  .language-switcher span {
    font-size: 12px;
    padding: 8px 9px;
  }

  .nav-actions {
    gap: 4px;
    margin-left: 0;
  }

  .nav-actions--end {
    margin-left: auto;
  }

  .button {
    font-size: 12px;
    min-height: 38px;
    padding: 0 10px;
  }

  .public-container {
    padding: 0 18px;
  }

  .page-hero {
    padding-top: 116px;
  }

  .hero-grid,
  .legal-layout,
  .final-cta-inner,
  .footer-main {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 18px;
  }

  .legal-toc {
    display: none;
  }

  .legal-content {
    padding: 26px;
  }

  .contact-grid,
  .blog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .final-cta h2 {
    font-size: 38px;
  }

  .footer-core {
    padding: 28px;
  }

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

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