.cir-legal-page {
  box-sizing: border-box;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;
  padding: 56px max(18px, calc((100vw - 1100px) / 2)) 76px;
  color: #E5E7EB;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, .08), transparent 30%),
    linear-gradient(180deg, #070A0F 0%, #0B111D 52%, #070A0F 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

.cir-legal-page *,
.cir-legal-page *::before,
.cir-legal-page *::after {
  box-sizing: border-box;
}

.cir-legal-hero {
  max-width: 980px;
  margin: 0 auto 24px;
  border: 1px solid rgba(229, 231, 235, .10);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(17, 24, 39, .92), rgba(7, 10, 15, .92));
}

.cir-legal-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 999px;
  padding: 7px 10px;
  color: #67E8F9;
  background: rgba(34, 211, 238, .08);
  font: 850 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cir-legal-hero h1,
.cir-legal-section h2 {
  color: #F9FAFB;
  letter-spacing: 0;
}

.cir-legal-hero h1 {
  max-width: 800px;
  margin: 16px 0 12px;
  font-family: "Space Grotesk", Sora, "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 850;
}

.cir-legal-hero p,
.cir-legal-section p,
.cir-legal-section li {
  color: #B7C0CD;
  line-height: 1.7;
}

.cir-legal-hero p {
  max-width: 780px;
  margin: 0;
  font-size: 17px;
}

.cir-legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: #94A3B8;
  font-size: 14px;
}

.cir-language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cir-language-switcher a,
.cir-legal-toc a {
  text-decoration: none;
}

.cir-language-switcher a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(229, 231, 235, .12);
  border-radius: 999px;
  padding: 8px 12px;
  color: #CBD5E1;
  background: rgba(31, 41, 55, .56);
  font-weight: 800;
}

.cir-language-switcher a.is-active {
  color: #A5F3FC;
  border-color: rgba(34, 211, 238, .40);
  background: rgba(34, 211, 238, .10);
}

.cir-legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.cir-legal-toc,
.cir-legal-section {
  border: 1px solid rgba(229, 231, 235, .10);
  border-radius: 18px;
  background: rgba(17, 24, 39, .86);
}

.cir-legal-toc {
  position: sticky;
  top: 18px;
  padding: 16px;
}

.cir-legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: #F9FAFB;
}

.cir-legal-toc nav {
  display: grid;
  gap: 4px;
}

.cir-legal-toc a {
  border-radius: 10px;
  padding: 8px 9px;
  color: #AAB4C2;
  font-size: 14px;
  line-height: 1.35;
}

.cir-legal-toc a:hover,
.cir-legal-toc a:focus-visible,
.cir-language-switcher a:hover,
.cir-language-switcher a:focus-visible,
.cir-legal-section a:hover,
.cir-legal-section a:focus-visible {
  outline: none;
  color: #67E8F9;
  border-color: rgba(34, 211, 238, .38);
  background: rgba(34, 211, 238, .08);
}

.cir-legal-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.cir-legal-section {
  padding: clamp(20px, 3vw, 30px);
  scroll-margin-top: 82px;
}

.cir-legal-section h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", Sora, "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.16;
}

.cir-legal-section p {
  margin: 0 0 12px;
}

.cir-legal-section ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.cir-legal-section a {
  color: #67E8F9;
  border-radius: 8px;
}

.cir-legal-notice {
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 15px;
  margin: 14px 0;
  padding: 14px 16px;
  color: #FCD34D;
  background: rgba(245, 158, 11, .08);
  line-height: 1.65;
  font-weight: 760;
}

@media (max-width: 980px) {
  .cir-legal-layout {
    grid-template-columns: minmax(0, 820px);
  }

  .cir-legal-toc {
    position: static;
  }

  .cir-legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cir-legal-page {
    padding: 28px 16px 54px;
  }

  .cir-legal-hero {
    border-radius: 16px;
    padding: 20px;
  }

  .cir-legal-meta,
  .cir-language-switcher,
  .cir-legal-toc nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cir-language-switcher a {
    justify-content: center;
    min-height: 44px;
  }

  .cir-legal-section {
    border-radius: 16px;
    padding: 18px;
  }
}
