/* Eroded Networks legal pages — restrained glass treatment. */
.en-legal-page {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
  color: var(--en-text, #f5f7fa);
}

.en-legal-page::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(34rem, 60vh);
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(93, 145, 173, .11), transparent 38%),
    radial-gradient(circle at 86% 4%, rgba(242, 106, 33, .08), transparent 34%);
  mask-image: linear-gradient(#000 45%, transparent 100%);
}

.en-legal-shell {
  width: min(100% - 2rem, 1180px);
}

.en-legal-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  overflow: hidden;
  border: 1px solid rgba(174, 183, 194, .17);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(21, 30, 40, .79), rgba(16, 23, 32, .58)),
    rgba(9, 13, 18, .54);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.en-legal-hero-copy {
  max-width: 760px;
}

.en-legal-eyebrow {
  margin: 0 0 .65rem;
  color: var(--en-primary, #f26a21);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.en-legal-hero h1 {
  margin: 0;
  color: var(--en-text, #f5f7fa);
  font-size: clamp(2.15rem, 4.4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.en-legal-intro {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--en-text-muted, #aeb7c2);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.en-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  margin-top: 1.35rem;
  color: rgba(174, 183, 194, .82);
  font-size: .84rem;
}

.en-legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.en-legal-meta span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--en-secondary, #5d91ad);
  box-shadow: 0 0 0 3px rgba(93, 145, 173, .1);
}

.en-legal-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: .25rem;
  padding: .3rem;
  border: 1px solid rgba(174, 183, 194, .17);
  border-radius: 13px;
  background: rgba(9, 13, 18, .44);
}

.en-legal-switcher a {
  min-width: 74px;
  padding: .68rem .9rem;
  border-radius: 9px;
  color: var(--en-text-muted, #aeb7c2);
  font-size: .9rem;
  font-weight: 550;
  text-align: center;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}

.en-legal-switcher a:hover {
  color: var(--en-text, #f5f7fa);
  background: rgba(255, 255, 255, .045);
}

.en-legal-switcher a.active {
  color: #17100b !important;
  background: rgba(242, 106, 33, .88);
  box-shadow: 0 6px 20px rgba(242, 106, 33, .14);
}

.en-legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 238px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.en-legal-toc {
  position: sticky;
  top: 92px;
  padding: 1.25rem;
  border: 1px solid rgba(174, 183, 194, .14);
  border-radius: 18px;
  background: rgba(16, 23, 32, .62);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .025);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.en-legal-toc > p {
  margin: 0 0 .85rem;
  color: rgba(174, 183, 194, .72);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.en-legal-toc ol {
  display: grid;
  gap: .16rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.en-legal-toc li {
  counter-increment: legal-toc;
}

.en-legal-toc a {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: .42rem;
  padding: .47rem .4rem;
  border-radius: 8px;
  color: var(--en-text-muted, #aeb7c2);
  font-size: .82rem;
  line-height: 1.35;
  text-decoration: none;
}

.en-legal-toc a::before {
  content: counter(legal-toc, decimal-leading-zero);
  color: rgba(93, 145, 173, .78);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}

.en-legal-toc a:hover {
  color: var(--en-text, #f5f7fa);
  background: rgba(255, 255, 255, .035);
}

.en-legal-document {
  overflow: hidden;
  border: 1px solid rgba(174, 183, 194, .15);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(21, 30, 40, .72), rgba(16, 23, 32, .64)),
    rgba(9, 13, 18, .45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}

.en-legal-summary {
  margin: clamp(1rem, 2.6vw, 1.75rem);
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  border: 1px solid rgba(93, 145, 173, .2);
  border-radius: 15px;
  background: rgba(93, 145, 173, .075);
}

.en-legal-summary h2 {
  margin: 0 0 .45rem;
  color: var(--en-text, #f5f7fa);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.en-legal-summary p {
  margin: 0;
  color: rgba(225, 230, 236, .9);
  font-size: .95rem;
  line-height: 1.65;
}

.en-legal-section {
  position: relative;
  scroll-margin-top: 110px;
  margin: 0 clamp(1.15rem, 3vw, 2.4rem);
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(.1rem, 1vw, .55rem);
  border-top: 1px solid rgba(174, 183, 194, .115);
}

.en-legal-section-number {
  display: block;
  margin-bottom: .42rem;
  color: rgba(242, 106, 33, .76);
  font-size: .72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .11em;
}

.en-legal-section h2 {
  margin: 0 0 1rem;
  color: var(--en-text, #f5f7fa);
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.en-legal-section p,
.en-legal-section li {
  color: var(--en-text-muted, #aeb7c2);
  font-size: .98rem;
  line-height: 1.78;
}

.en-legal-section p {
  margin: 0 0 1rem;
}

.en-legal-section p:last-child {
  margin-bottom: 0;
}

.en-legal-section ul {
  display: grid;
  gap: .55rem;
  margin: .35rem 0 1.15rem;
  padding-left: 1.25rem;
}

.en-legal-section li::marker {
  color: rgba(242, 106, 33, .78);
}

.en-legal-section strong {
  color: rgba(245, 247, 250, .94);
  font-weight: 600;
}

.en-legal-section a,
.en-legal-contact a {
  color: #a8d0e3 !important;
  text-decoration-color: rgba(140, 183, 204, .45);
  text-underline-offset: .18em;
}

.en-legal-section a:hover,
.en-legal-contact a:hover {
  color: #d1e8f2 !important;
  text-decoration-color: currentColor;
}

.en-legal-contact {
  margin: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(242, 106, 33, .18);
  border-radius: 16px;
  background: rgba(242, 106, 33, .055);
}

.en-legal-contact h2 {
  margin-bottom: .75rem;
}

.en-legal-page a:focus-visible {
  outline: 3px solid rgba(242, 106, 33, .7);
  outline-offset: 3px;
}

@media (max-width: 899.98px) {
  .en-legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .en-legal-toc {
    position: static;
    display: none;
  }

  .en-legal-hero {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .en-legal-page {
    padding-top: 1rem;
  }

  .en-legal-shell {
    width: min(100% - 1rem, 1180px);
  }

  .en-legal-hero {
    display: block;
    padding: 1.35rem;
    border-radius: 18px;
  }

  .en-legal-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
  }

  .en-legal-intro {
    font-size: .98rem;
    line-height: 1.58;
  }

  .en-legal-meta {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
  }

  .en-legal-switcher {
    width: 100%;
    margin-top: 1.25rem;
  }

  .en-legal-switcher a {
    flex: 1 1 50%;
  }

  .en-legal-document {
    border-radius: 18px;
  }

  .en-legal-summary {
    margin: .75rem;
    border-radius: 13px;
  }

  .en-legal-section {
    margin: 0 1rem;
    padding: 1.55rem .1rem;
  }

  .en-legal-section p,
  .en-legal-section li {
    font-size: .94rem;
    line-height: 1.72;
  }

  .en-legal-contact {
    margin: .8rem;
    padding: 1.15rem;
  }
}

@media (max-width: 339.98px) {
  .en-legal-shell {
    width: min(100% - .75rem, 1180px);
  }

  .en-legal-hero {
    padding: 1.15rem;
  }

  .en-legal-hero h1 {
    font-size: 1.95rem;
  }

  .en-legal-summary,
  .en-legal-contact {
    margin: .6rem;
  }

  .en-legal-section {
    margin: 0 .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .en-legal-page *,
  .en-legal-page *::before,
  .en-legal-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .en-legal-hero,
  .en-legal-toc,
  .en-legal-document,
  .en-legal-summary,
  .en-legal-contact {
    border: 1px solid CanvasText;
  }
}
