:root {
  color-scheme: light;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe2ea;
  --line-strong: #c3ced9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --link: #0f766e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.document-export {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page {
  width: min(100%, 980px);
  margin: 0 auto;
  margin-top: 40px;
}

.legal-doc {
  display: block;
  /* border: 1px solid var(--line); */
  /* border-radius: 24px; */
  background: var(--surface);
  padding: clamp(22px, 4vw, 44px);
  /* box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08); */
}

.legal-page--pack .legal-doc+.legal-doc {
  margin-top: 28px;
}

.legal-doc__content {
  font-size: 16px;
  line-height: 1.72;
}

.legal-doc__table-scroll {
  display: block;
  margin: 18px 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: var(--link) color-mix(in srgb, var(--surface-muted) 90%, var(--line-strong));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}

.legal-doc__table-scroll::-webkit-scrollbar {
  height: 14px;
}

.legal-doc__table-scroll::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--surface-muted) 90%, var(--line-strong));
}

.legal-doc__table-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--link) 78%, #ffffff 22%);
  border: 3px solid color-mix(in srgb, var(--surface-muted) 90%, var(--line-strong));
  border-radius: 999px;
}

.legal-doc__table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--link);
}

body>article,
body>section[data-doc-id] {
  display: block;
  max-width: 980px;
  margin: 0 auto;
}

.document-export__summary {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
}

.document-export__summary h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.document-export__summary-list {
  margin: 0;
  padding-left: 20px;
}

.document-export__summary-list li {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

article>h1:first-child {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.24;
}

h1 {
  font-size: 30px;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 22px;
  margin: 28px 0 14px;
}

h3 {
  font-size: 18px;
  margin: 22px 0 12px;
}

p,
li {
  font-size: 16px;
  color: var(--text);
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li+li {
  margin-top: 6px;
}

strong {
  font-weight: 700;
}

a {
  color: var(--link);
}

table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  border: 0;
  background: var(--surface);
}

table:has(tr > :nth-child(2):last-child) {
  min-width: max(100%, 680px);
}

table:has(tr > :nth-child(3):last-child) {
  min-width: max(100%, 860px);
}

table:has(tr > :nth-child(4):last-child) {
  min-width: max(100%, 1020px);
}

table:has(tr > :nth-child(5):last-child) {
  min-width: max(100%, 1180px);
}

table:has(tr > :nth-child(6):last-child) {
  min-width: max(100%, 1320px);
}

th,
td {
  padding: 12px 14px;
  min-width: 220px;
  width: clamp(220px, 24vw, 320px);
  max-width: 360px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

th>*,
td>* {
  white-space: inherit;
  word-break: inherit;
  overflow-wrap: inherit;
  hyphens: inherit;
}

th {
  background: #eff6f5;
  color: #115e59;
  font-weight: 700;
}

blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid rgba(15, 118, 110, 0.25);
  background: #f0fdfa;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.doc-meta,
.doc-toc {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.doc-meta p:last-child,
.doc-toc ol:last-child,
.doc-related-documents ul:last-child {
  margin-bottom: 0;
}

.doc-toc__title,
.doc-related-documents__title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.doc-related-documents {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .document-export {
    max-width: none;
  }

  .legal-doc {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .document-export__summary,
  .doc-meta,
  .doc-toc {
    break-inside: avoid;
  }
}