:root {
  --blue-50: #eef1fa;
  --blue-200: #c3cde9;
  --blue-500: #5f74b8;
  --blue-600: #3c53a4;
  --blue-700: #273b8e;
  --blue-800: #1f2f72;
  --blue-950: #111a41;
  --gray-50: #f7f8fa;
  --gray-200: #e2e5eb;
  --gray-500: #818894;
  --gray-600: #606774;
  --gray-700: #474d59;
  --container: 70rem;
}

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

html {
  scroll-behavior: smooth;
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--gray-700);
  background: #fff;
}

::selection {
  color: #fff;
  background: var(--blue-700);
}

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

a:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

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

.header-inner {
  display: flex;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  justify-content: center;
}

.wordmark {
  display: block;
  max-width: 100%;
  height: auto;
}

.wordmark-link {
  display: block;
  line-height: 0;
  transition: opacity 0.2s;
}

.wordmark-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

.title-band {
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.title-inner {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.eyebrow, .toc-title {
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.title-accent {
  width: 4rem;
  height: 3px;
  background: var(--blue-700);
}

.document-meta {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  color: var(--gray-500);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
}

.document-meta div {
  display: flex;
  gap: 0.4rem;
}

.document-meta dt {
  font-weight: 600;
}

.document-meta dd {
  margin: 0;
}

.legal-layout {
  display: grid;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  grid-template-columns: 14rem minmax(0, 47.5rem);
  gap: 4rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 7rem;
  max-height: calc(100vh - 8.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc-links {
  display: flex;
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid var(--gray-200);
  flex-direction: column;
  gap: 0.5rem;
}

.toc a {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.4;
}

.legal-article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3rem;
}

.document-intro {
  display: flex;
  padding-bottom: 0.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-section {
  display: flex;
  scroll-margin-top: 7rem;
  flex-direction: column;
  gap: 0.75rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  font-weight: 500;
}

h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.heading-rule {
  height: 1px;
  min-width: 1.5rem;
  background: var(--gray-200);
  flex: 1;
}

.legal-article p {
  margin: 0;
}

.legal-article ul {
  display: flex;
  margin: 0;
  padding-left: 1.375rem;
  flex-direction: column;
  gap: 0.375rem;
}

.legal-article strong {
  color: #31363f;
  font-weight: 600;
}

.legal-notice {
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.site-footer {
  position: relative;
  margin-top: auto;
  padding: 4rem 0 3rem;
  overflow: hidden;
  color: #fff;
  background: #2e3b8e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.site-footer::before {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(48px);
  content: "";
}

.footer-inner {
  position: relative;
  display: flex;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-label {
  margin: 0 0 1.5rem;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact {
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(191, 219, 254, 0.8);
  font-weight: 300;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  transition: color 0.2s;
}

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

.footer-address {
  max-width: 34rem;
  margin: 0;
  font-style: normal;
}

.social-icons {
  display: flex;
  margin-bottom: 2rem;
  align-items: center;
  gap: 1.5rem;
}

.social-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.social-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.copyright {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(191, 219, 254, 0.6);
  font-size: 0.875rem;
}

.copyright p {
  margin: 0;
}

@media (max-width: 800px) {
  .title-inner, .legal-layout {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .legal-layout {
    display: block;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 520px) {
  .title-inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .document-meta {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .document-meta div {
    flex-direction: column;
    gap: 0.125rem;
  }

  .legal-layout {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

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

  .heading-rule {
    display: none;
  }
}

@media print {
  .site-header, .toc, .site-footer {
    display: none;
  }

  .title-band {
    background: #fff;
  }

  .title-inner, .legal-layout {
    max-width: none;
    padding: 1.5rem 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-section {
    break-inside: avoid;
  }
}
