

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  font-feature-settings:
    "cv11",
    "ss01",
    "tnum" 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: default;
}

.legal,
.legal * {
  -webkit-user-select: text;
  user-select: text;
}
.legal button,
.legal summary,
.legal .lg-seg a,
.legal .lg-toc a {
  -webkit-user-select: none;
  user-select: none;
}

.legal {
  background: var(--ink);
  color: var(--paper);
  padding: 92px 24px 24px;
}
.lg-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.lg-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}
.lg-skip:focus {
  top: 12px;
}

.lg-hero {
  padding: 28px 0 8px;
  max-width: 760px;
}
.lg-hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 16px;
}
.lg-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey);
  max-width: 620px;
  margin-bottom: 22px;
}
.lg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--grey-dim);
  margin-bottom: 26px;
}
.lg-meta span {
  white-space: nowrap;
}
.lg-meta b {
  color: var(--grey);
  font-weight: 600;
}

.lg-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(var(--ink-rgb), 0.4);
}
.lg-seg a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--grey);
  border-radius: var(--radius);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.lg-seg a:hover {
  color: var(--paper);
}
.lg-seg a.is-active,
.lg-seg a[aria-current="true"] {
  background: var(--paper);
  color: var(--ink);
}

.lg-glance {
  margin: 44px 0 8px;
}
.lg-glance-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--safelight);
  margin-bottom: 14px;
}
.lg-glance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.lg-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(var(--ink-rgb), 0.4);
}
.lg-card i {
  font-size: 22px;
  color: var(--safelight);
  display: block;
  margin-bottom: 10px;
}
.lg-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--paper);
}
.lg-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--grey);
}
.lg-glance-foot {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--grey-dim);
}

.lg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}

.lg-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(var(--ink-rgb), 0.4);
  font-size: 13px;
}
.lg-toc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-weight: 600;
  color: var(--paper);
}
.lg-toc summary::-webkit-details-marker {
  display: none;
}
.lg-toc summary::after {
  content: "\002B";
  font-size: 18px;
  font-weight: 400;
  color: var(--grey-dim);
}
.lg-toc[open] summary::after {
  content: "\2212";
}
.lg-toc-inner {
  padding: 0 12px 14px;
}
.lg-toc-group + .lg-toc-group {
  margin-top: 20px;
}
.lg-toc-label {
  display: block;
  padding: 0 12px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.lg-toc ol {
  list-style: none;
  counter-reset: toc;
}
.lg-toc li {
  counter-increment: toc;
  margin-top: 2px;
}
.lg-toc li a {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--grey);
  line-height: 1.4;
}
.lg-toc li a::before {
  content: counter(toc) ".";
  flex: none;
  min-width: 1.6em;
  color: var(--grey-dim);
  font-variant-numeric: tabular-nums;
}
.lg-toc li a:hover {
  color: var(--paper);
  background: var(--line-soft);
}
.lg-toc li a.is-active {
  color: var(--paper);
  font-weight: 600;
  background: var(--line-soft);
}
.lg-toc .lg-toc-plain a::before {
  content: none;
}

.lg-body {
  min-width: 0;
}
.lg-part {
  scroll-margin-top: 88px;
  counter-reset: sec;
}
.lg-part + .lg-part {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.lg-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--safelight);
  margin-bottom: 12px;
}
.lg-part-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 14px;
}
.lg-part-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 68ch;
  margin-bottom: 8px;
}

.lg-sec {
  scroll-margin-top: 88px;
  padding-top: 40px;
  max-width: 72ch;
}
.lg-part--wide .lg-sec {
  max-width: none;
}
.lg-sec h3 {
  counter-increment: sec;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 14px;
}
.lg-sec h3::before {
  content: counter(sec) ".";
  display: inline-block;
  min-width: 1.7em;
  color: var(--grey-dim);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.lg-sec h3 .lg-anchor {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-dim);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.lg-sec h3:hover .lg-anchor,
.lg-sec h3 .lg-anchor:focus-visible {
  opacity: 1;
}
.lg-sec h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  margin: 22px 0 8px;
}

.lg-prose p,
.lg-prose li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-soft);
}
.lg-prose > * + * {
  margin-top: 12px;
}
.lg-prose ul,
.lg-prose ol {
  margin: 12px 0 0;
  padding-left: 1.3em;
}
.lg-prose ul {
  list-style: disc;
}
.lg-prose ol {
  list-style: decimal;
}
.lg-prose li + li {
  margin-top: 6px;
}
.lg-prose li::marker {
  color: var(--grey-dim);
}
.lg-prose strong {
  color: var(--paper);
  font-weight: 600;
}
.lg-prose a:not(.lg-anchor) {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--grey-dim);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.lg-prose a:not(.lg-anchor):hover {
  text-decoration-color: var(--safelight);
  color: var(--safelight);
}
.lg-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: var(--radius);
  background: var(--line-soft);
  border: 1px solid var(--line);
  color: var(--paper);
}

.lg-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--safelight);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(var(--safelight-rgb), 0.07);
}
.lg-note p {
  font-size: 14.5px;
  line-height: 1.65;
}
.lg-note strong:first-child {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--safelight);
}

.lg-caps p {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
}

.lg-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.lg-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.lg-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lg-table th,
.lg-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.lg-table thead th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-dim);
  background: rgba(var(--ink-rgb), 0.5);
}
.lg-table tbody tr:last-child th,
.lg-table tbody tr:last-child td {
  border-bottom: 0;
}
.lg-table tbody th {
  width: 26%;
  font-weight: 600;
  color: var(--paper);
}
.lg-table td {
  color: var(--text-soft);
}

.lg-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.lg-contact-grid .lg-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
}
.lg-contact-grid .lg-card p {
  font-size: 13.5px;
}
.lg-contact-grid .lg-card a {
  word-break: break-word;
}

.lg-backtop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
}
.lg-backtop:hover {
  color: var(--paper);
}

.lg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.lg-actions .btn {
  width: auto;
  padding: 8px 16px;
}

.legal-footer-wrap {
  background: var(--ink);
}

@media (min-width: 721px) {
  .legal a:focus-visible,
  .legal button:focus-visible,
  .legal summary:focus-visible {
    outline: 2px solid var(--safelight);
    outline-offset: 2px;
    border-radius: var(--radius);
  }
}

@media (min-width: 640px) {
  .legal {
    padding-left: 32px;
    padding-right: 32px;
  }
  .lg-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .lg-glance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 56px;
  }
  .lg-toc {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    border: 0;
    background: transparent;
  }
  .lg-toc summary {
    display: none;
  }
  .lg-toc-inner {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal *,
  .legal *::before,
  .legal *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .lnav,
  .lg-toc,
  .lg-seg,
  .lg-actions,
  .lg-backtop,
  .lg-skip,
  .lg-anchor,
  .lfooter-links,
  .theme-switch {
    display: none !important;
  }
  html,
  body,
  .legal,
  .lmain {
    background: #fff !important;
    color: #000 !important;
  }
  .legal {
    padding: 0;
  }
  .lg-layout {
    display: block;
    margin-top: 16px;
  }
  .lg-hero h1,
  .lg-part-title,
  .lg-sec h3,
  .lg-sec h4,
  .lg-prose strong,
  .lg-card h3,
  .lg-table tbody th {
    color: #000 !important;
  }
  .lg-prose p,
  .lg-prose li,
  .lg-table td,
  .lg-card p,
  .lg-lede,
  .lg-part-intro {
    color: #222 !important;
  }
  .lg-card,
  .lg-table-wrap,
  .lg-note {
    border-color: #bbb !important;
    background: none !important;
    break-inside: avoid;
  }
  .lg-part + .lg-part {
    break-before: page;
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }
  .lg-sec {
    break-inside: avoid-page;
    padding-top: 22px;
    max-width: none;
  }
  .lg-sec h3,
  .lg-sec h4 {
    break-after: avoid;
  }
  .lg-prose a:not(.lg-anchor) {
    color: #000 !important;
    text-decoration: underline;
  }
  .lg-prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
}
