.legal-cover {
  padding-block: clamp(40px, 6vw, 84px);
}
.legal-cover h1 {
  max-width: 17ch;
  font-size: clamp(36px, 5.6vw, 76px);
  letter-spacing: -.04em;
  line-height: 1.06;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.legal-cover .shell > p { margin-bottom: 24px; }
.legal-back, .legal-cover-meta, .legal-languages { display: flex; align-items: center; gap: 12px; }
.legal-back { width: fit-content; min-height: 44px; margin-bottom: 17px; }
.legal-back .icon, .legal-links .icon { color: var(--w-green); }
.legal-cover-meta { flex-wrap: wrap; gap: 12px 24px; color: #c8d1cd; font-size: .875rem; }
.legal-languages a {
  display: grid;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 24px;
}
.legal-languages a[aria-current] { background: #28312f; color: #fff; }
.legal-languages a:hover { color: var(--w-green); }
.legal-cover a:focus-visible { outline: 2px solid var(--w-green); outline-offset: 3px; }
.legal-body {
  grid-template-columns: minmax(210px, 1fr) minmax(0, 2.8fr);
  align-items: start;
  column-gap: clamp(28px, 5vw, 72px);
}
.legal-toc { position: sticky; top: 90px; max-height: calc(100dvh - 108px); overflow: auto; }
.legal-body nav { position: static; background: var(--w-surface); padding: 16px; }
.legal-body summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 650;
}
.legal-body summary::-webkit-details-marker { display: none; }
.legal-body details[open] summary .icon { transform: rotate(180deg); }
.legal-body nav ul, .legal-links { margin: 0; padding: 0; list-style: none; }
.legal-body nav a { display: flex; align-items: center; min-height: 44px; font-size: .875rem; line-height: 1.3; }
.legal-body nav a:hover { background: #e4e7e9; }
.legal-body article { max-width: 70ch; }
.legal-body section { scroll-margin-top: 12px; }
.legal-body section:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
.legal-body article p { color: #3d454a; line-height: 1.68; }
.legal-body article p:last-child { margin-bottom: 0; }
.legal-body article a { color: var(--w-ink); text-decoration: underline; text-underline-offset: .22em; }
.legal-reference { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.legal-directory, .legal-related { padding-bottom: clamp(48px, 7vw, 96px); }
.legal-directory { padding-top: clamp(28px, 4.5vw, 66px); }
.legal-related > h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; margin: 0 0 18px; }
.legal-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(18px, 5vw, 72px); }
.legal-links li { border-top: 1px solid var(--w-line); }
.legal-links li:nth-last-child(-n+2) { border-bottom: 1px solid var(--w-line); }
.legal-links a {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--w-ink);
  font-weight: 600;
}
.legal-links a:hover, .legal-links a[aria-current] { background: var(--w-surface); }
.legal-directory .legal-links a { padding-block: 18px; }
.legal-directory .legal-links small {
  display: block;
  max-width: 56ch;
  margin-top: 5px;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: #495154;
}
.legal-links .icon { flex: none; width: 20px; height: 20px; stroke: var(--w-ink); }
.legal-links a:hover .icon, .legal-links a[aria-current] .icon { stroke: var(--w-deep); }
.legal-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 3vw, 32px);
  margin-top: clamp(24px, 4vw, 48px);
  border-radius: 20px;
  background: #131718;
  color: #fff;
}
.legal-contact h2 { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.025em; }
.legal-contact address { margin-top: 8px; font-style: normal; color: #c8d1cd; font-size: .875rem; }
.legal-contact dl { margin: 0; display: grid; gap: 10px; }
.legal-contact dt { color: #c8d1cd; font-size: .875rem; }
.legal-contact dd { margin: 0; }
.legal-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--w-green);
  text-underline-offset: .26em;
  overflow-wrap: anywhere;
}
.legal-contact a:focus-visible { outline-color: var(--w-green); border-radius: 6px; }
@media(max-width: 760px) {
  .legal-body { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; }
  .legal-body nav { margin-bottom: 0; padding: 6px 10px; }
  .legal-body nav a { font-size: .9375rem; }
}
@media(max-width: 540px) {
  .legal-links { grid-template-columns: minmax(0, 1fr); }
  .legal-links li:nth-last-child(2) { border-bottom: 0; }
  .legal-cover h1 { font-size: clamp(30px, 8vw, 46px); }
}

.legal-actions { margin-bottom: clamp(32px, 5vw, 64px); }
.legal-directory h2 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 32px); }
