

.lg {

  --lg-measure: 37.5rem;
  --lg-doc: 44rem;
  --lg-toc: 15rem;
  --lg-gap: 4.5rem;

  --lg-stop: calc(var(--header-h) + 20px);

  --lg-r: var(--r);
  --lg-r-sm: var(--r-sm);

  color: var(--ink);
}

.lg-head {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 62%,
              color-mix(in srgb, var(--cream) 0%, transparent) 100%);
  padding: 52px 0 46px;
  border-bottom: 1px solid transparent;
}
.lg-head__in { max-width: 46rem; }

.lg-head__h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.028em;
  color: var(--ink);
}

.lg-head__sum {
  margin-top: 16px;
  max-width: var(--lg-measure);
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.lg-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.lg-meta__i { display: block; }
.lg-meta__i b { color: var(--ink-2); font-weight: 600; }
.lg-meta__sep { width: 1px; height: 14px; background: var(--line-2); flex: none; }

.lg-meta__tbc {
  padding: 1px 7px 2px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--star) 16%, var(--white));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--star) 45%, var(--white));
  color: #8a5a05;
}

.lg-switch {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lg-switch__x {
  display: block;
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
a.lg-switch__x:hover { border-color: var(--ink); color: var(--ink); }
.lg-switch__x.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inv);
}

.lg-body {
  padding: 40px 0 90px;
  display: block;
}

@media screen and (min-width: 1040px) {
  .lg-body {
    display: grid;
    grid-template-columns: var(--lg-toc) minmax(0, var(--lg-doc));
    column-gap: var(--lg-gap);
    justify-content: center;
    align-items: start;
    padding-top: 52px;
  }
}

.lg-doc {
  width: 100%;
  max-width: var(--lg-doc);
  counter-reset: lg-s;
}

.lg-toc {
  margin-bottom: 34px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--lg-r);
  background: var(--paper);
}
.lg-toc__t {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.lg-toc__list {
  list-style: none;
  counter-reset: lg-toc;
  border-left: 2px solid var(--line);
}
.lg-toc__list li { counter-increment: lg-toc; }

.lg-toc__list a {
  display: block;
  position: relative;
  padding: 6px 0 6px 34px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}
.lg-toc__list a::before {
  content: counter(lg-toc);
  position: absolute;
  left: 14px;
  top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.lg-toc__list a:hover { color: var(--ink); }
.lg-toc__list a:hover::before { color: var(--ink-2); }

.lg-toc__help {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.lg-toc__help a { color: var(--accent); text-decoration: none; font-weight: 600; }
.lg-toc__help a:hover { text-decoration: underline; }

@media screen and (min-width: 1040px) {
  .lg-toc {
    position: sticky;
    top: var(--lg-stop);
    max-height: calc(100vh - var(--lg-stop) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-bottom: 0;
    padding: 20px 18px 18px;
    background: none;
    border: 0;
    border-radius: 0;
  }
  .lg-toc { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
}

@media screen and (max-width: 1039px) and (min-width: 560px) {
  .lg-toc__list { columns: 2; column-gap: 26px; }
  .lg-toc__list li { break-inside: avoid; }
}

.lg-body:has(#s1:target)  .lg-toc__list a[href="#s1"],
.lg-body:has(#s2:target)  .lg-toc__list a[href="#s2"],
.lg-body:has(#s3:target)  .lg-toc__list a[href="#s3"],
.lg-body:has(#s4:target)  .lg-toc__list a[href="#s4"],
.lg-body:has(#s5:target)  .lg-toc__list a[href="#s5"],
.lg-body:has(#s6:target)  .lg-toc__list a[href="#s6"],
.lg-body:has(#s7:target)  .lg-toc__list a[href="#s7"],
.lg-body:has(#s8:target)  .lg-toc__list a[href="#s8"],
.lg-body:has(#s9:target)  .lg-toc__list a[href="#s9"],
.lg-body:has(#s10:target) .lg-toc__list a[href="#s10"],
.lg-body:has(#s11:target) .lg-toc__list a[href="#s11"],
.lg-body:has(#s12:target) .lg-toc__list a[href="#s12"],
.lg-body:has(#s13:target) .lg-toc__list a[href="#s13"],
.lg-body:has(#s14:target) .lg-toc__list a[href="#s14"],
.lg-body:has(#s15:target) .lg-toc__list a[href="#s15"],
.lg-body:has(#s16:target) .lg-toc__list a[href="#s16"],
.lg-body:has(#s17:target) .lg-toc__list a[href="#s17"],
.lg-body:has(#s18:target) .lg-toc__list a[href="#s18"],
.lg-body:has(#s19:target) .lg-toc__list a[href="#s19"],
.lg-body:has(#s20:target) .lg-toc__list a[href="#s20"],
.lg-body:has(#s21:target) .lg-toc__list a[href="#s21"],
.lg-body:has(#s22:target) .lg-toc__list a[href="#s22"],
.lg-body:has(#s23:target) .lg-toc__list a[href="#s23"],
.lg-body:has(#s24:target) .lg-toc__list a[href="#s24"],
.lg-body:has(#s25:target) .lg-toc__list a[href="#s25"],
.lg-body:has(#s26:target) .lg-toc__list a[href="#s26"],
.lg-body:has(#s27:target) .lg-toc__list a[href="#s27"],
.lg-body:has(#s28:target) .lg-toc__list a[href="#s28"] {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}
.lg-body:has(#s1:target)  .lg-toc__list a[href="#s1"]::before,
.lg-body:has(#s2:target)  .lg-toc__list a[href="#s2"]::before,
.lg-body:has(#s3:target)  .lg-toc__list a[href="#s3"]::before,
.lg-body:has(#s4:target)  .lg-toc__list a[href="#s4"]::before,
.lg-body:has(#s5:target)  .lg-toc__list a[href="#s5"]::before,
.lg-body:has(#s6:target)  .lg-toc__list a[href="#s6"]::before,
.lg-body:has(#s7:target)  .lg-toc__list a[href="#s7"]::before,
.lg-body:has(#s8:target)  .lg-toc__list a[href="#s8"]::before,
.lg-body:has(#s9:target)  .lg-toc__list a[href="#s9"]::before,
.lg-body:has(#s10:target) .lg-toc__list a[href="#s10"]::before,
.lg-body:has(#s11:target) .lg-toc__list a[href="#s11"]::before,
.lg-body:has(#s12:target) .lg-toc__list a[href="#s12"]::before,
.lg-body:has(#s13:target) .lg-toc__list a[href="#s13"]::before,
.lg-body:has(#s14:target) .lg-toc__list a[href="#s14"]::before,
.lg-body:has(#s15:target) .lg-toc__list a[href="#s15"]::before,
.lg-body:has(#s16:target) .lg-toc__list a[href="#s16"]::before,
.lg-body:has(#s17:target) .lg-toc__list a[href="#s17"]::before,
.lg-body:has(#s18:target) .lg-toc__list a[href="#s18"]::before,
.lg-body:has(#s19:target) .lg-toc__list a[href="#s19"]::before,
.lg-body:has(#s20:target) .lg-toc__list a[href="#s20"]::before,
.lg-body:has(#s21:target) .lg-toc__list a[href="#s21"]::before,
.lg-body:has(#s22:target) .lg-toc__list a[href="#s22"]::before,
.lg-body:has(#s23:target) .lg-toc__list a[href="#s23"]::before,
.lg-body:has(#s24:target) .lg-toc__list a[href="#s24"]::before,
.lg-body:has(#s25:target) .lg-toc__list a[href="#s25"]::before,
.lg-body:has(#s26:target) .lg-toc__list a[href="#s26"]::before,
.lg-body:has(#s27:target) .lg-toc__list a[href="#s27"]::before,
.lg-body:has(#s28:target) .lg-toc__list a[href="#s28"]::before {
  color: var(--accent);
}

.lg-s {
  counter-increment: lg-s;
  scroll-margin-top: var(--lg-stop);
  padding-top: 34px;
  padding-bottom: 6px;
  border-top: 1px solid var(--line);
}
.lg-s:first-child { border-top: 0; padding-top: 0; }

.lg-s__h {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
  --lg-hfs: clamp(21px, 2.3vw, 25px);
  font-family: var(--font-head);
  font-size: var(--lg-hfs);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.018em;
  color: var(--ink);
  scroll-margin-top: var(--lg-stop);
}
.lg-s__h::before {
  content: counter(lg-s);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: calc(var(--lg-hfs) * .61 - 15px);
  border-radius: var(--lg-r-sm);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--accent);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.lg-s:target .lg-s__h::before {
  background: var(--accent);
  color: var(--ink-inv);
}

.lg-s__link {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  opacity: 0;
  transition: opacity .14s var(--ease);
}
.lg-s__h:hover .lg-s__link,
.lg-s__link:focus-visible { opacity: 1; }

.lg-h3 {
  margin: 26px 0 10px;
  font-family: var(--font-head);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -.008em;
  color: var(--ink);
}
.lg-h3:first-child { margin-top: 0; }

.lg-s p,
.lg-s ul,
.lg-s ol,
.lg-s dl,
.lg-plain,
.lg-note,
.lg-tnote { max-width: var(--lg-measure); }

.lg-s p {
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
}
.lg-s p:last-child { margin-bottom: 0; }
.lg-s strong, .lg-s b { font-weight: 700; }

.lg-s a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
  transition: text-decoration-color .14s var(--ease);
}
.lg-s a:hover { text-decoration-color: var(--accent); }

.lg-ul, .lg-ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.lg-ul li, .lg-ol li {
  position: relative;
  padding-left: 26px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
}
.lg-ul li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-line);
}
.lg-ol { counter-reset: lg-n; }
.lg-ol li { counter-increment: lg-n; }
.lg-ol li::before {
  content: counter(lg-n) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.9;
}

.lg-def {
  margin: 0 0 18px;
  display: grid;
  gap: 14px;
}
.lg-def dt {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.lg-def dd {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-2);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.lg-plain {
  margin: 0 0 18px;
  padding: 13px 18px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--lg-r-sm) var(--lg-r-sm) 0;
  background: var(--accent-soft);
}
.lg-plain__k {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.lg-plain p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  max-width: none;
}

.lg-plain--counsel {
  border-left-color: var(--star);
  background: color-mix(in srgb, var(--star) 11%, var(--white));
}
.lg-plain--counsel .lg-plain__k { color: #8a5a05; }

.lg-note {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--lg-r-sm);
  background: var(--paper);
}
.lg-note p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 8px;
  max-width: none;
}
.lg-note p:last-child { margin-bottom: 0; }
.lg-note strong { color: var(--ink); }

.lg-tw {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--lg-r);
  background: var(--white);
}
.lg-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.lg-t caption {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.lg-t thead th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--cream);
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.lg-t td,
.lg-t tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  color: var(--ink-2);
}
.lg-t tbody th {
  font-weight: 700;
  color: var(--ink);
}
.lg-t tbody tr:last-child td,
.lg-t tbody tr:last-child th { border-bottom: 0; }
.lg-t code { font-size: 13px; }
.lg-t strong { color: var(--ink); }

.lg-tnote {
  margin: -8px 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.lg-yes, .lg-no {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.lg-yes { background: var(--accent-soft); color: var(--accent); }
.lg-no { background: var(--paper); color: var(--ink-3); border: 1px solid var(--line); }

@media screen and (max-width: 620px) {
  .lg-tw { border-radius: var(--lg-r); overflow: hidden; }
  .lg-t, .lg-t tbody, .lg-t tr, .lg-t td, .lg-t tbody th { display: block; width: auto; }
  .lg-t thead { display: none; }

  .lg-t caption { display: block; }
  .lg-t tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-2);
  }
  .lg-t tbody tr:last-child { border-bottom: 0; }
  .lg-t td, .lg-t tbody th {
    padding: 7px 16px;
    border-bottom: 0;
  }

  .lg-t td::before, .lg-t tbody th::before {
    content: attr(data-l);
    display: block;
    margin-bottom: 1px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
}

.lg-key {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--lg-r);
  overflow: hidden;
}
.lg-key__i { padding: 16px 18px; background: var(--white); }
.lg-key__v {
  display: block;
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.lg-key__k {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
}

.lg-steps {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.lg-steps li {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 2px solid var(--line);
}
.lg-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.lg-steps li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent-line);
}
.lg-steps b {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.lg-steps span {
  display: block;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--lg-measure);
}

.lg-rules {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: var(--lg-measure);
}
.lg-rules li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
}
.lg-rules .icon { width: 18px; height: 18px; margin-top: 4px; }
.lg-rules--no .icon { color: var(--red); }
.lg-rules--yes .icon { color: var(--green); }
.lg-rules strong { display: inline; }

.lg-sum {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--lg-r);
  background: var(--accent-soft);
  max-width: var(--lg-measure);
}
.lg-sum__t {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.lg-sum__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 60%, transparent);
  font-size: 15.5px;
  color: var(--ink-2);
}
.lg-sum__row b { color: var(--ink); font-weight: 700; text-align: right; white-space: nowrap; }
.lg-sum__row--tot {
  border-bottom: 0;
  border-top: 2px solid var(--accent);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 600;
}
.lg-sum__row--tot b { font-size: 19px; color: var(--accent); }

.lg-faq {
  margin: 0;
  max-width: var(--lg-measure);
  border-top: 1px solid var(--line);
}

.lg-q { border-bottom: 1px solid var(--line); }

.lg-q > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13px;
  gap: 18px;
  align-items: start;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  transition: color .14s var(--ease);
}
.lg-q > summary::-webkit-details-marker { display: none; }
.lg-q > summary:hover { color: var(--accent); }
.lg-q > summary:focus-visible { outline-offset: 4px; border-radius: var(--lg-r-sm); }

.lg-q__sign {
  width: 13px;
  height: 13px;
  margin-top: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 13px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 13px no-repeat;
  transition: transform .2s var(--ease);
}
.lg-q[open] .lg-q__sign { transform: rotate(135deg); }

.lg-q__a { padding: 0 0 18px; }
.lg-q__a p {
  margin-bottom: 12px;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--ink-2);
  max-width: none;
}
.lg-q__a p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .lg-q__sign { transition: none; }
}

.lg-end {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--lg-r);
  background: var(--paper);
}
.lg-end__t {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.lg-end p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: var(--lg-measure);
  margin-bottom: 14px;
}
.lg-end__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.lg-end__row a {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .14s var(--ease);
}
.lg-end__row a:hover { text-decoration: underline; }

.lg-top {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .14s var(--ease);
}
.lg-top:hover { color: var(--accent); }

@media screen and (max-width: 620px) {

  .lg-head__sum { font-size: 18px; }
  .lg-meta { font-size: 14px; }

  .lg-meta__sep { display: none; }

  .lg-switch { gap: 10px; }
  .lg-switch__x {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 16px;
    font-size: 14px;
  }

  .lg-toc__t { font-size: 12px; }
  .lg-toc__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0 8px 34px;
    font-size: 15px;
  }

  .lg-toc__list a::before {
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
  }
  .lg-toc__help { font-size: 15px; }

  .lg-s__h::before { font-size: 14px; }

  .lg-s__link { display: none; }
  .lg-h3 { font-size: 19px; }

  .lg-s p a,
  .lg-s li a,
  .lg-s dd a,
  .lg-s dt a,
  .lg-s td a,
  .lg-s th a { padding-block: 4px; }

  .lg-ul li, .lg-ol li { font-size: 17px; }
  .lg-def dd { font-size: 17px; }
  .lg-plain__k { font-size: 12px; }
  .lg-note p { font-size: 16px; }

  .lg-t { font-size: 15px; }
  .lg-t caption { font-size: 14px; }
  .lg-t code { font-size: 14px; }
  .lg-t td::before, .lg-t tbody th::before { font-size: 12px; }
  .lg-tnote { font-size: 14px; }

  .lg-yes, .lg-no { font-size: 14px; }

  .lg-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-key__i:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lg-key__k { font-size: 14px; }

  .lg-steps b { font-size: 14px; }
  .lg-steps span { font-size: 17px; }
  .lg-rules li { font-size: 17px; }
  .lg-sum__t { font-size: 14px; }
  .lg-sum__row { font-size: 16px; }
  .lg-sum__row--tot { font-size: 17px; }

  .lg-q > summary { font-size: 17px; }
  .lg-q__a p { font-size: 17px; }

  .lg-end__t { font-size: 19px; }

  .lg-end__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }
  .lg-end__row a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .lg-end__row a:last-child { border-bottom: 0; }
  .lg-top {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
  }
}

@media print {
  .topbar,
  .header,
  .mobile-menu,
  .backdrop,
  .footer,
  .chat,
  .to-top,
  .cookies,
  .scroll-progress,
  .lg-toc,
  .lg-switch,
  .lg-end,
  .lg-top,
  .lg-s__link { display: none !important; }

  @page { margin: 18mm 16mm; }

  html, body { background: var(--white); }

  .container { width: auto; }

  .lg { --lg-measure: 100%; --lg-doc: 100%; }
  .lg-head {
    background: none;
    padding: 0 0 14px;
    border-bottom: 1.5pt solid #000;
  }
  .lg-head__h1 { font-size: 22pt; }
  .lg-head__sum { font-size: 11pt; color: #000; }
  .lg-meta { font-size: 9pt; color: #000; margin-top: 10px; }

  .lg-body { display: block; padding: 16px 0 0; }
  .lg-doc { max-width: none; }

  .lg-s { padding-top: 16px; border-top: .5pt solid #999; }
  .lg-s__h { font-size: 13pt; break-after: avoid; page-break-after: avoid; }
  .lg-s__h::before { background: none; color: #000; border: .5pt solid #999; }
  .lg-h3 { font-size: 11pt; break-after: avoid; page-break-after: avoid; }
  .lg-s p, .lg-ul li, .lg-ol li { font-size: 10.5pt; color: #000; }

  .lg-plain {
    background: none;
    border-left: 2pt solid #000;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .lg-plain__k { color: #000; }
  .lg-plain p { font-size: 10pt; }

  .lg-plain--counsel { border-left-style: dashed; }

  .lg-note, .lg-sum, .lg-key { background: none; break-inside: avoid; page-break-inside: avoid; }
  .lg-key__i { background: none; }

  .lg-tw { overflow: visible; break-inside: auto; }
  .lg-t { font-size: 9pt; }
  .lg-t thead { display: table-header-group; background: none; }
  .lg-t thead th { background: none; color: #000; }
  .lg-t tr { break-inside: avoid; page-break-inside: avoid; }
  .lg-t td, .lg-t tbody th { color: #000; }

  .lg-steps li { break-inside: avoid; page-break-inside: avoid; }

  .lg-faq { border-top: .5pt solid #999; }
  .lg-q { break-inside: avoid; page-break-inside: avoid; border-bottom: .5pt solid #999; }
  .lg-q > summary { font-size: 11pt; }
  .lg-q__sign { display: none; }
  .lg-q__a p { font-size: 10pt; color: #000; }
  .lg-q::details-content { display: block; content-visibility: visible; }

  .lg-s a { color: #000; text-decoration: underline; }
  .lg-s a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; word-break: break-all; }
  .lg-s a[href^="mailto:"]::after { content: ""; }
  .lg-s a[href^="/"]::after { content: " (deviqo.com" attr(href) ")"; font-size: 8.5pt; }
}

.lg-toc__more { display: none; }
@media screen and (max-width: 559px) {
  .js .lg-toc:not(.is-open) .lg-toc__list li:nth-child(n+7) { display: none; }
  .js .lg-toc:not(.is-open) .lg-toc__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 6px 0 0 34px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
  }
}

