:root {
  color-scheme: dark;
}

.legal-page,
.legal-shell,
.legal-main {
  min-width: 320px;
  background: #000;
}

.legal-page {
  color: #f5f5f3;
}

.legal-page .site-header {
  position: fixed !important;
  inset: 0 0 auto;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(18px);
  opacity: 1;
  transform: none;
  transition: none;
}

.legal-page .site-header.is-scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.84);
  opacity: 1;
  transform: none;
  transition: none;
}

.legal-page .primary-nav a[aria-current="page"] {
  position: relative;
  color: rgba(245, 245, 243, 0.96);
}

.legal-page .primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: rgba(245, 245, 243, 0.62);
  content: "";
}

.legal-main {
  overflow: hidden;
}

.legal-document {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(106px, 11vw, 136px) 24px clamp(54px, 7vw, 82px);
  isolation: isolate;
}

.legal-document-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  text-align: center;
}

body.legal-page .legal-document-copy * {
  font-family: "Inter", sans-serif;
}

body.legal-page .legal-document-copy h1,
body.legal-page .legal-document-copy h2 {
  font-family: "Space Grotesk", sans-serif;
}

.legal-document-id {
  margin: 0;
  color: rgba(245, 245, 243, 0.42);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.legal-document h1 {
  margin: 20px 0 0;
  color: #f7f7f4;
  font-size: clamp(3rem, 5.3vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.095em;
  line-height: 0.83;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
}

.legal-document h1 em {
  color: rgba(245, 245, 243, 0.48);
  font-style: normal;
}

.legal-sow-title {
  max-width: 980px;
  margin-inline: auto;
  white-space: normal;
  text-wrap: balance;
}

.legal-document-subtitle {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(245, 245, 243, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-align: center;
}

.legal-document-lead {
  max-width: 700px;
  margin: 27px auto 0;
  color: rgba(245, 245, 243, 0.67);
  font-size: 0.9rem;
  line-height: 1.64;
}

.legal-document-emphasis {
  max-width: 730px;
  margin: 28px auto 0;
  color: rgba(245, 245, 243, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

.legal-document-body {
  max-width: 730px;
  margin: 24px auto 0;
  text-align: left;
}

.legal-document-body p {
  margin: 0 0 16px;
  color: rgba(245, 245, 243, 0.64);
  font-size: 0.9rem;
  line-height: 1.64;
}

.legal-document-body h2 {
  margin: 38px 0 15px;
  color: rgba(245, 245, 243, 0.94);
  font-size: clamp(1.45rem, 2vw, 1.92rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.legal-sow-content {
  max-width: 820px;
  margin-top: 44px;
}

.legal-sow-section {
  text-align: left;
}

.legal-sow-section + .legal-sow-section {
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid rgba(245, 245, 243, 0.1);
}

.legal-sow-section > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 2.35vw, 2.15rem);
  line-height: 1.05;
}

.legal-sow-section h3,
.legal-sow-annex h3 {
  margin: 30px 0 13px;
  color: rgba(245, 245, 243, 0.9);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.legal-sow-section h4,
.legal-sow-annex h4 {
  margin: 25px 0 11px;
  color: rgba(245, 245, 243, 0.82);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.legal-sow-content ul,
.legal-sow-content ol {
  margin: 8px 0 19px;
  padding-left: 1.25rem;
  color: rgba(245, 245, 243, 0.64);
}

.legal-sow-content li {
  margin: 0 0 8px;
  padding-left: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.58;
}

.legal-sow-content ol li::marker {
  color: rgba(245, 245, 243, 0.48);
  font-weight: 700;
}

.legal-sow-content ul li::marker {
  color: rgba(245, 245, 243, 0.38);
}

.legal-sow-kicker {
  margin: 0 0 12px !important;
  color: rgba(245, 245, 243, 0.42) !important;
  font-size: 0.62rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.legal-sow-callout {
  margin: 24px 0 0 !important;
  padding: 15px 17px;
  border-left: 2px solid rgba(245, 245, 243, 0.55);
  background: rgba(245, 245, 243, 0.045);
  color: rgba(245, 245, 243, 0.8) !important;
}

.legal-sow-definitions {
  margin: 20px 0 22px;
}

.legal-sow-definitions > div {
  display: grid;
  grid-template-columns: minmax(145px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(245, 245, 243, 0.08);
}

.legal-sow-definitions > div:last-child {
  border-bottom: 1px solid rgba(245, 245, 243, 0.08);
}

.legal-sow-definitions dt {
  color: rgba(245, 245, 243, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.legal-sow-definitions dd {
  margin: 0;
  color: rgba(245, 245, 243, 0.6);
  font-size: 0.86rem;
  line-height: 1.58;
}

.legal-sow-annex {
  margin-top: 76px;
  padding: 36px 0 0;
  border-top: 1px solid rgba(245, 245, 243, 0.25);
}

.legal-sow-annex > h2 {
  margin-top: 0;
  text-transform: none;
}

.legal-sow-annex-title {
  color: rgba(245, 245, 243, 0.78) !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600;
}

.legal-sow-table-wrap {
  margin: 22px 0 20px;
  overflow-x: auto;
  border: 1px solid rgba(245, 245, 243, 0.12);
}

.legal-sow-table {
  width: 100%;
  min-width: 510px;
  border-collapse: collapse;
  color: rgba(245, 245, 243, 0.64);
  font-size: 0.78rem;
}

.legal-sow-table th,
.legal-sow-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(245, 245, 243, 0.09);
  text-align: left;
  vertical-align: top;
}

.legal-sow-table tr:last-child th,
.legal-sow-table tr:last-child td {
  border-bottom: 0;
}

.legal-sow-table th {
  width: 38%;
  color: rgba(245, 245, 243, 0.78);
  font-weight: 700;
}

.legal-sow-table td {
  color: rgba(245, 245, 243, 0.4);
}

.legal-sow-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 18px 0 20px;
  padding: 4px 0;
  border-top: 1px solid rgba(245, 245, 243, 0.09);
  border-bottom: 1px solid rgba(245, 245, 243, 0.09);
}

.legal-sow-fields p {
  min-height: 42px;
  margin: 0 !important;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 245, 243, 0.06);
  color: rgba(245, 245, 243, 0.45) !important;
  font-size: 0.75rem !important;
}

.legal-sow-fields p:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.legal-sow-fields strong {
  color: rgba(245, 245, 243, 0.68);
  font-weight: 600;
}

.legal-sow-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.legal-sow-signatures > div {
  display: grid;
  gap: 0;
  padding: 17px;
  border: 1px solid rgba(245, 245, 243, 0.1);
}

.legal-sow-signatures strong {
  margin-bottom: 17px;
  color: rgba(245, 245, 243, 0.82);
  font-size: 0.8rem;
}

.legal-sow-signatures span {
  padding: 11px 0;
  border-top: 1px solid rgba(245, 245, 243, 0.08);
  color: rgba(245, 245, 243, 0.38);
  font-size: 0.72rem;
}

.legal-sow-disclaimer {
  color: rgba(245, 245, 243, 0.55);
}

.legal-sow-endnote {
  margin-top: 58px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(245, 245, 243, 0.1);
}

.legal-sow-endnote p:last-child {
  color: rgba(245, 245, 243, 0.46);
  font-size: 0.78rem;
  line-height: 1.58;
}

.legal-sow-section + .legal-sow-section {
  border-top: 0;
}

.legal-sow-callout {
  padding: 0;
  border-left: 0;
  background: transparent;
}

.legal-sow-definitions {
  margin: 20px 0 22px;
}

.legal-sow-definitions > div {
  display: block;
  padding: 0;
  border: 0;
  margin: 0 0 15px;
}

.legal-sow-definitions > div:last-child {
  border-bottom: 0;
}

.legal-sow-definitions dt {
  margin-bottom: 3px;
}

.legal-sow-table-wrap {
  margin: 20px 0;
  overflow: visible;
  border: 0;
}

.legal-sow-table {
  min-width: 0;
}

.legal-sow-table th,
.legal-sow-table td {
  padding: 5px 0;
  border: 0;
}

.legal-sow-table th {
  width: 38%;
}

.legal-sow-fields {
  display: block;
  margin: 18px 0 20px;
  padding: 0;
  border: 0;
}

.legal-sow-fields p,
.legal-sow-fields p:nth-last-child(-n + 2) {
  min-height: 0;
  padding: 3px 0;
  border: 0;
}

.legal-sow-signatures {
  display: block;
  margin-top: 24px;
}

.legal-sow-signatures > div {
  display: block;
  padding: 0;
  border: 0;
  margin: 0 0 25px;
}

.legal-sow-signatures strong,
.legal-sow-signatures span {
  display: block;
  padding: 3px 0;
  border: 0;
}

.legal-sow-signatures strong {
  margin-bottom: 7px;
}

.legal-sow-annex {
  padding-top: 0;
  border-top: 0;
}

.legal-sow-content {
  max-width: 730px;
  margin-top: 24px;
}

.legal-sow-section + .legal-sow-section {
  margin-top: 38px;
  padding-top: 0;
}

.legal-sow-content ul,
.legal-sow-content ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.legal-sow-content li {
  margin: 0 0 9px;
  padding: 0;
}

.legal-sow-content li::marker {
  content: "";
}

.legal-sow-table,
.legal-sow-table tbody,
.legal-sow-table tr {
  display: block;
  width: 100%;
}

.legal-sow-table th,
.legal-sow-table td {
  display: inline;
  width: auto;
  padding: 0;
}

.legal-sow-table th::after {
  content: ": ";
}

.legal-sow-table tr {
  margin-bottom: 8px;
}

.legal-sow-table td:empty::after {
  content: " ";
}

.legal-sow-fields p {
  margin-bottom: 4px !important;
}

.legal-sow-signatures {
  margin-top: 20px;
}

.legal-sow-signatures > div {
  margin-bottom: 20px;
}

.legal-sow-signatures span {
  display: inline;
  margin-right: 18px;
}

.legal-sow-signatures span::after {
  content: " ";
}

.legal-document-body em {
  color: rgba(245, 245, 243, 0.88);
}

.legal-document-source {
  margin: 22px auto 0;
  max-width: 730px;
  text-align: left;
  color: rgba(245, 245, 243, 0.36);
  font-size: 0.68rem;
  line-height: 1.5;
}

.legal-document-source a {
  color: rgba(245, 245, 243, 0.58);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document-source a:hover,
.legal-document-source a:focus-visible {
  color: rgba(245, 245, 243, 0.9);
}

.legal-document-closing {
  margin-top: 36px;
}

.legal-page-footer {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 clamp(24px, 5vw, 88px);
  background: #000;
}

.legal-page-footer p {
  width: min(100%, 1520px);
  margin: 0 auto;
  color: rgba(245, 245, 243, 0.4);
  font-family: "Inter", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.055em;
}

@media (max-width: 760px) {
  .legal-document {
    padding-top: 108px;
  }

}

@media (max-width: 520px) {
  .legal-document {
    min-height: 0;
    padding: 104px 22px 54px;
  }

  .legal-document h1 {
    font-size: clamp(2.85rem, 15vw, 4.5rem);
    white-space: normal;
  }

  .legal-document-lead {
    margin-top: 24px;
    font-size: 0.88rem;
  }

  .legal-document-body p {
    font-size: 0.86rem;
  }

  .legal-document-source {
    margin-top: 22px;
    font-size: 0.62rem;
  }

}
