:root {
  font-family: Inter, 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  color: #302938;
  background: #faf9fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --purple: #7050c5;
  --line: #e9e4ef;
  --muted: #716a7c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--purple);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid #b89cf0;
  outline-offset: 4px;
  border-radius: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
.site-header {
  max-width: 1120px;
  margin: auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #302938;
  text-decoration: none;
}
.brand img {
  display: block;
}
.brand strong {
  font-size: 30px;
  letter-spacing: -1.5px;
}
.brand span {
  font-size: 13px;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.back {
  font-size: 13px;
  text-decoration: none;
}
.legal-page {
  max-width: 1056px;
  margin: 0 auto 64px;
  padding: 34px 42px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 32px #34204104;
}
.document-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.document-tabs,
.languages {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.document-tabs a,
.languages a {
  text-decoration: none;
  border-radius: 8px;
}
.document-tabs a {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}
.document-tabs [aria-current='page'] {
  background: #f1eafa;
  color: #5c3cb4;
  font-weight: 600;
}
.languages {
  gap: 3px;
}
.languages a {
  font-size: 11px;
  padding: 7px;
  color: var(--muted);
}
.languages [aria-current='true'] {
  background: #f6f3fa;
  color: #533b8d;
}
.document-header {
  padding: 36px 0 29px;
  max-width: 800px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #8a759d;
  margin: 0 0 13px;
}
h1 {
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.22;
  letter-spacing: -1px;
  margin: 0 0 19px;
  font-weight: 650;
}
.document-date {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 20px;
}
.document-date span {
  border-left: 1px solid var(--line);
  padding-left: 13px;
}
.intro {
  font-size: 14px;
  line-height: 1.85;
  color: #655d70;
  margin: 0;
}
.payment-summary {
  margin: 23px 0 0;
  border: 1px solid #e8def5;
  border-radius: 11px;
  padding: 15px 17px;
  font-size: 12px;
  line-height: 1.8;
  background: #faf7ff;
  color: #5d467a;
}
.document-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contents {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  gap: 9px;
  padding: 2px 17px 25px 0;
}
.contents p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #95899e;
  margin: 0 0 7px;
}
.contents a {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 0;
}
.document-content {
  min-width: 0;
}
.document-content section {
  scroll-margin-top: 24px;
  margin: 0 0 30px;
}
.document-content h2 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
  margin: 0 0 12px;
}
.document-content p {
  font-size: 13px;
  line-height: 1.95;
  color: #635b6e;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}
.document-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 12px;
}
.document-footer a {
  text-decoration: none;
}
@media (max-width: 700px) {
  .site-header {
    min-height: 74px;
    padding: 17px 20px;
  }
  .brand strong {
    font-size: 27px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .brand span {
    font-size: 11px;
    padding-left: 8px;
  }
  .back {
    font-size: 11px;
  }
  .legal-page {
    margin: 0 12px 25px;
    border-radius: 18px;
    padding: 23px 20px 0;
  }
  .document-tools {
    gap: 16px;
    padding-bottom: 20px;
  }
  .document-tabs a {
    font-size: 12px;
    padding: 8px 10px;
  }
  .languages a {
    font-size: 11px;
    padding: 8px 7px;
  }
  .document-header {
    padding: 29px 0 25px;
  }
  h1 {
    font-size: 30px;
  }
  .intro {
    font-size: 13px;
  }
  .payment-summary {
    font-size: 11px;
    padding: 13px 14px;
  }
  .document-layout {
    display: block;
    padding-top: 24px;
  }
  .contents {
    position: static;
    border-bottom: 1px solid var(--line);
    margin-bottom: 25px;
    gap: 10px;
    padding: 0 0 21px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contents p {
    grid-column: 1/-1;
  }
  .contents a {
    font-size: 10px;
  }
  .document-content h2 {
    font-size: 16px;
  }
  .document-content p {
    font-size: 13px;
  }
  .document-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
@media print {
  :root {
    background: white;
    color: #111;
  }
  .site-header,
  .document-tools,
  .contents,
  .back {
    display: none;
  }
  .legal-page {
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
  }
  .document-layout {
    display: block;
  }
  .document-content p {
    color: #222;
  }
  .document-footer {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
  h2 {
    break-after: avoid;
  }
  section {
    break-inside: auto;
  }
}
