:root {
  --ink: #000;
  --muted: #4a4a4a;
  --subtle: #f7f7f7;
  --line: #d8d8d8;
  --line-strong: #aaa;
  --link: #000;
  --link-hover: #000;
  --focus: #000;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 1px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 9px 13px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner,
.content-shell,
.footer-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.language-link {
  margin-left: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  letter-spacing: .08em;
}

.legal-home {
  min-height: calc(100vh - 230px);
  padding-bottom: 96px;
}

.license-section { max-width: 790px; padding: 44px 0 80px; }
.license-list { list-style: none; margin: 20px 0 26px; padding: 0; border-top: 1px solid var(--line); }
.license-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.license-list li strong, .license-list li span:nth-child(2) { grid-column: 1; }
.license-list li span:nth-child(2) { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.license-list li span:nth-child(3), .license-list li a { grid-column: 2; text-align: right; font-size: .85rem; }
@media (max-width: 560px) {
  .license-list li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .license-list li strong, .license-list li span:nth-child(2), .license-list li span:nth-child(3), .license-list li a { grid-column: 1; text-align: left; }
}

.home-intro,
.document-hero {
  max-width: 790px;
  padding: 72px 0 38px;
  border-bottom: 1px solid var(--line);
}

.page-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-intro h1,
.document-title,
.not-found-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.home-intro > p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.document-index,
.company-note {
  max-width: 790px;
  padding-top: 46px;
}

.document-index h2,
.company-note h2 {
  margin: 0 0 15px;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.document-list a {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 20px 17px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.document-list a:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.document-list strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
}

.document-list span span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.5;
}

.document-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--ink);
  font-size: 1.1rem;
}

.document-list a:hover span span,
.document-list a:hover .document-arrow {
  color: #fff;
}

.company-note p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.document-hero {
  max-width: none;
  padding-bottom: 34px;
}

.document-title {
  max-width: 860px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.document-meta span {
  display: inline-flex;
  align-items: center;
}

.document-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 700px);
  gap: clamp(44px, 8vw, 92px);
  padding: 48px 0 96px;
}

.toc {
  position: sticky;
  top: 28px;
  align-self: start;
}

.toc-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.toc-trigger {
  display: block;
  pointer-events: none;
  cursor: default;
}

.toc-chevron {
  display: none;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.toc-links {
  display: block;
}

.toc-links a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
  text-decoration: none;
}

.toc-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

.document-body {
  min-width: 0;
}

.document-body section {
  scroll-margin-top: 28px;
  margin: 0 0 42px;
}

.document-body h2,
.action-block h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.document-body h3 {
  margin: 26px 0 7px;
  color: var(--ink);
  font-size: 1rem;
}

.document-body p,
.document-body li,
.action-block p {
  color: #262626;
}

.document-body p {
  margin: 0 0 16px;
}

.document-body ul,
.document-body ol {
  margin: 0 0 18px;
  padding-left: 1.35rem;
}

.document-body li + li {
  margin-top: 8px;
}

.notice {
  margin: 0 0 40px;
  padding: 18px 20px;
  border-left: 3px solid var(--ink);
  background: var(--subtle);
  color: #262626;
}

.notice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.action-block {
  margin: 0 0 42px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.primary-button {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.primary-button:hover {
  background: #222;
  color: #fff;
}

.site-footer {
  margin-top: 0;
  padding: 34px 0 42px;
  border-top: 1px solid #000;
  background: #000;
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}

.footer-inner .brand img {
  width: 30px;
  height: 30px;
}

.footer-inner .brand {
  color: #fff;
}

.footer-inner p {
  max-width: 560px;
  margin: 9px 0 0;
  color: #bcbcbc;
  font-size: .82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a {
  color: #fff;
  font-size: .82rem;
  text-decoration: none;
}

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

.not-found {
  min-height: calc(100vh - 180px);
  padding: 88px 0;
}

.not-found p {
  max-width: 650px;
  margin: 20px 0 26px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-nav {
    width: 100%;
    padding-bottom: 3px;
    overflow-x: auto;
    gap: 18px;
    scrollbar-width: thin;
  }

  .language-link {
    padding-left: 18px;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 28px;
  }

  .toc {
    position: static;
    margin: 0 0 14px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--subtle);
    overflow: hidden;
  }

  .toc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .toc-trigger strong {
    margin-bottom: 0;
    font-size: .78rem;
    letter-spacing: .08em;
  }

  .toc-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-right: 2px;
  }

  .toc-links {
    display: none;
    padding: 6px 16px 14px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .toc-links a {
    padding: 9px 0;
    font-size: .88rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .toc-links a:last-child {
    border-bottom: none;
  }

  .toc-toggle:checked ~ .toc-trigger .toc-chevron {
    transform: rotate(-135deg);
  }

  .toc-toggle:checked ~ .toc-links {
    display: block;
  }

  .toc-toggle:focus-visible ~ .toc-trigger {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
  }

  .document-meta {
    margin-top: 36px;
    padding-top: 20px;
    gap: 6px 18px;
    font-size: .82rem;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .content-shell,
  .footer-inner {
    width: min(100% - 32px, 1080px);
  }

  .home-intro,
  .document-hero {
    padding-top: 54px;
  }

  .legal-home {
    padding-bottom: 68px;
  }

  .document-index,
  .company-note {
    padding-top: 36px;
  }

  .document-list a {
    min-height: 128px;
    padding: 18px;
  }

  .document-list {
    grid-template-columns: 1fr;
  }

  .document-layout {
    padding: 36px 0 68px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .content-shell {
    width: 100%;
  }

  .document-hero {
    padding: 0 0 24px;
  }

  .document-layout {
    display: block;
    padding-top: 30px;
  }

  .document-body section {
    break-inside: avoid;
  }
}
