:root {
  color-scheme: light;
  --background: #fbfaf8;
  --card: #ffffff;
  --muted-card: #f4f6f8;
  --foreground: #172335;
  --muted: #667589;
  --border: #e3ded6;
  --primary: #17457a;
  --primary-strong: #11345d;
  --primary-soft: #eef5fb;
  --accent: #c7a65a;
  --shadow: 0 18px 55px rgba(23, 35, 53, 0.09);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(199, 166, 90, 0.14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--background) 38rem);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  color: var(--primary-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(227, 222, 214, 0.76);
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: var(--header-height);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 112px;
  min-width: 96px;
}

.brand img,
.site-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

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

.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.ghost-button {
  color: var(--foreground);
}

.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(23, 69, 122, 0.16);
}

.primary-button:hover {
  background: var(--primary-strong);
  color: #ffffff;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 5px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  margin-top: 24px;
  font-size: clamp(38px, 6vw, 58px);
}

.hero-copy {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 72px;
}

.toc {
  display: block;
}

.toc-inner {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow: auto;
  padding: 4px 4px 4px 0;
  scrollbar-color: rgba(102, 117, 137, 0.35) transparent;
  scrollbar-width: thin;
}

.toc-inner::-webkit-scrollbar {
  width: 6px;
}

.toc-inner::-webkit-scrollbar-track {
  background: transparent;
}

.toc-inner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(102, 117, 137, 0.28);
}

.toc-inner p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.toc a {
  display: block;
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.toc a:hover {
  background: var(--primary-soft);
  color: var(--foreground);
  transform: translateX(2px);
}

.toc span {
  color: var(--primary);
  font-weight: 750;
}

.legal-content {
  min-width: 0;
}

.legal-section {
  scroll-margin-top: calc(var(--header-height) + 28px);
  margin-bottom: 48px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.section-heading h2 {
  color: var(--foreground);
  font-size: clamp(24px, 3vw, 31px);
}

.legal-section p,
.legal-section li,
.contact-card p,
.site-footer p {
  color: var(--muted);
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-section li {
  margin: 8px 0;
}

.legal-section strong {
  color: var(--foreground);
}

.company {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 22px;
  box-shadow: 0 12px 35px rgba(23, 35, 53, 0.05);
}

.company strong {
  font-size: 15px;
}

.contact-card {
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--card), var(--muted-card));
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
}

.contact-card h2 {
  margin-top: 16px;
  font-size: 22px;
}

.contact-card p {
  margin: 10px auto 20px;
  max-width: 520px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 36px 0 42px;
}

.site-footer > div {
  max-width: 420px;
}

.site-footer img {
  width: 136px;
}

.site-footer p {
  margin: 12px 0 0;
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--foreground);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .legal-shell {
    display: block;
  }

  .toc {
    margin-bottom: 36px;
  }

  .toc-inner {
    position: static;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    padding: 18px;
  }

  .toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    padding-left: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .nav-shell {
    height: var(--header-height);
  }

  .brand {
    width: 96px;
  }

  .nav-actions {
    gap: 8px;
  }

  .ghost-button {
    display: none;
  }

  .primary-button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .contact-card {
    padding: 26px 20px;
  }
}
