.legal-page {
  background:
    radial-gradient(circle at 0 34%, rgba(9, 99, 255, .035), transparent 22%),
    radial-gradient(circle at 100% 72%, rgba(116, 72, 232, .03), transparent 20%),
    #f6f9fd;
}

.legal-page .site-footer {
  margin-top: 0;
}

.legal-reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(9, 99, 255, .07);
}

.legal-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(90deg, var(--blue), #38a1ff, var(--green));
  box-shadow: 0 0 10px rgba(9, 99, 255, .35);
  transition: width .08s linear;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 82px) 0 clamp(86px, 9vw, 122px);
  background:
    radial-gradient(circle at 79% 24%, rgba(79, 166, 255, .2), transparent 28%),
    radial-gradient(circle at 12% 80%, rgba(18, 184, 79, .1), transparent 22%),
    linear-gradient(145deg, #f3f8ff, #fff 50%, #eaf3ff);
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(9, 99, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero::before {
  top: -180px;
  right: -100px;
  width: 430px;
  height: 430px;
  box-shadow: 0 0 0 52px rgba(9, 99, 255, .025), 0 0 0 104px rgba(9, 99, 255, .018);
}

.legal-hero::after {
  bottom: -165px;
  left: -95px;
  width: 310px;
  height: 310px;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
}

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

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 6px 12px;
  border: 1px solid #cfe0fb;
  border-radius: 99px;
  color: #0755d3;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 6px 18px rgba(11, 50, 107, .05);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.legal-kicker::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 184, 79, .11);
}

.legal-hero h1 {
  max-width: 670px;
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -.055em;
  line-height: 1.02;
}

.legal-hero h1 span {
  color: var(--blue);
}

.legal-intro {
  max-width: 650px;
  margin: 0 0 25px;
  color: #526783;
  font-size: clamp(13px, 1.25vw, 15.5px);
  line-height: 1.75;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px;
}

.legal-meta span {
  padding: 7px 11px;
  border: 1px solid #dbe7f5;
  border-radius: 9px;
  color: #536980;
  background: rgba(255, 255, 255, .88);
  font-size: 10px;
  font-weight: 600;
}

.privacy-visual {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  isolation: isolate;
}

.privacy-visual::before {
  position: absolute;
  z-index: -3;
  width: 275px;
  height: 275px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(219, 234, 255, .7));
  box-shadow: 0 25px 70px rgba(15, 64, 132, .14), inset 0 0 0 1px rgba(255, 255, 255, .9);
}

.privacy-orbit {
  position: absolute;
  z-index: -2;
  border: 1px dashed rgba(9, 99, 255, .2);
  border-radius: 50%;
}

.privacy-orbit-one {
  width: 330px;
  height: 330px;
  animation: legal-orbit-spin 34s linear infinite;
}

.privacy-orbit-two {
  width: 235px;
  height: 235px;
  border-style: solid;
  border-color: rgba(9, 99, 255, .09);
  box-shadow: 0 0 0 32px rgba(255, 255, 255, .2);
}

.privacy-shield {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 31px;
  color: #fff;
  background: linear-gradient(145deg, #2681ff, #0755df 60%, #0341b6);
  box-shadow: 0 24px 48px rgba(9, 83, 214, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: rotate(-4deg);
}

.privacy-shield::after {
  position: absolute;
  width: 16px;
  height: 16px;
  content: "";
  transform: translate(42px, -42px);
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(18, 184, 79, .15);
}

.privacy-shield svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.privacy-status {
  position: absolute;
  z-index: 3;
  display: grid;
  width: min(235px, 59%);
  min-height: 67px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 226, 246, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 14px 35px rgba(14, 52, 101, .11);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  grid-template-columns: 16px minmax(0, 1fr);
}

.privacy-status-one {
  top: 25px;
  left: -10px;
}

.privacy-status-two {
  top: 158px;
  right: -6px;
}

.privacy-status-three {
  bottom: 19px;
  left: 6px;
}

.privacy-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px currentColor;
}

.privacy-status-blue { color: rgba(9, 99, 255, .12); background: var(--blue); }
.privacy-status-green { color: rgba(18, 184, 79, .13); background: var(--green); }
.privacy-status-purple { color: rgba(116, 72, 232, .12); background: var(--purple); }

.privacy-status div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.privacy-status strong {
  color: #173251;
  font-size: 10.5px;
  line-height: 1.3;
}

.privacy-status small {
  color: #6f8198;
  font-size: 8px;
  line-height: 1.4;
}

@keyframes legal-orbit-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-orbit-one { animation: none; }
  .legal-reading-progress span { transition: none; }
}

.legal-summary {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
  margin-top: -54px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-summary-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(12, 44, 88, .08);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.legal-summary-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), #59a7ff);
}

.legal-summary-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--green), #64d892);
}

.legal-summary-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--purple), #a78bfa);
}

@media (hover: hover) {
  .legal-summary-card:hover {
    transform: translateY(-4px);
    border-color: #c9dbf2;
    box-shadow: 0 20px 44px rgba(12, 44, 88, .11);
  }
}

.legal-summary-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 16px;
  font-weight: 800;
}

.legal-summary-card:nth-child(2) .legal-summary-icon {
  color: #058648;
  background: #e9f9f0;
}

.legal-summary-card:nth-child(3) .legal-summary-icon {
  color: var(--purple);
  background: #f2edff;
}

.legal-summary-card h2 {
  margin-bottom: 5px;
  color: #142a49;
  font-size: 14px;
  letter-spacing: -.02em;
}

.legal-summary-card p {
  margin: 0;
  color: #687b92;
  font-size: 10.5px;
  line-height: 1.6;
}

.legal-main {
  padding: clamp(42px, 6vw, 76px) 0 clamp(62px, 8vw, 100px);
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 28px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100vh - var(--header-height) - 40px);
  max-height: calc(100dvh - var(--header-height) - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 38px rgba(12, 44, 88, .08);
  scrollbar-width: thin;
  scrollbar-color: #c5d7eb transparent;
}

.legal-toc h2 {
  margin-bottom: 13px;
  color: #18304f;
  font-size: 13px;
  letter-spacing: -.015em;
}

.legal-toc ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: policy-nav;
}

.legal-toc li {
  counter-increment: policy-nav;
}

.legal-toc a {
  display: grid;
  min-height: 36px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  color: #61748c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  grid-template-columns: 23px minmax(0, 1fr);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.legal-toc a::before {
  content: counter(policy-nav, decimal-leading-zero);
  color: #9aacbf;
  font-size: 7.5px;
  font-weight: 700;
}

.legal-toc a:hover {
  color: var(--blue);
  background: #f0f6ff;
}

.legal-toc a.is-active {
  transform: translateX(2px);
  color: #0757db;
  background: linear-gradient(90deg, #eaf3ff, #f4f8ff);
  box-shadow: inset 3px 0 0 var(--blue);
}

.legal-toc a.is-active::before {
  color: var(--blue);
}

.legal-toc-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 0;
  padding: 12px 3px 0;
  border-top: 1px solid #e6edf6;
  color: #8595a9;
  font-size: 8.5px;
  font-weight: 600;
}

.legal-toc-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 184, 79, .1);
}

.legal-document {
  min-width: 0;
}

.legal-notice {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #cfe0fb;
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  color: #36516f;
  background: linear-gradient(135deg, #eff6ff, #f9fcff);
  box-shadow: 0 12px 30px rgba(18, 63, 124, .055);
  font-size: 12px;
  line-height: 1.7;
}

.legal-notice strong {
  color: #133c79;
  font-size: 13.5px;
}

.legal-section {
  scroll-margin-top: calc(var(--header-height) + 22px);
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid #dfe8f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 32px rgba(12, 44, 88, .06);
  transition: border-color .22s ease, box-shadow .22s ease;
}

.legal-section + .legal-section {
  margin-top: 15px;
}

@media (hover: hover) {
  .legal-section:hover {
    border-color: #cbdcf0;
    box-shadow: 0 16px 38px rgba(12, 44, 88, .08);
  }
}

.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #10294b;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -.035em;
  line-height: 1.2;
}

.legal-section h2::before {
  width: 7px;
  height: 28px;
  content: "";
  flex: 0 0 auto;
  border-radius: 99px;
  background: linear-gradient(var(--blue), #4ba5ff);
}

.legal-section h3 {
  margin: 23px 0 8px;
  color: #223b59;
  font-size: 14px;
}

.legal-section p,
.legal-section li {
  color: #596d86;
  font-size: 13px;
  line-height: 1.76;
}

.legal-section p {
  margin-bottom: 13px;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 23px;
}

.legal-section li::before {
  position: absolute;
  top: .72em;
  left: 3px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #cfe0fb;
}

.legal-section strong {
  color: #2b435f;
}

.legal-section a {
  color: #075ddd;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #a8c9fa;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  text-decoration-color: currentColor;
}

.legal-contact-card {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #cfe0f5;
  border-radius: 16px;
  background:
    radial-gradient(circle at 95% 10%, rgba(9, 99, 255, .11), transparent 32%),
    linear-gradient(135deg, #f2f7ff, #fbfdff);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-contact-card a {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e0e9f4;
  border-radius: 11px;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 50, 107, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.legal-contact-card a:hover {
  transform: translateY(-2px);
  border-color: #b9d3f5;
  box-shadow: 0 12px 25px rgba(11, 50, 107, .09);
}

.legal-contact-card small {
  color: #7d8da2;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.legal-contact-card strong {
  overflow-wrap: anywhere;
  color: #114fbb;
  font-size: 11.5px;
}

.legal-footer-active {
  color: #fff !important;
  font-weight: 600;
}

@media (max-width: 960px) {
  .legal-hero-inner {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  }

  .privacy-visual {
    min-height: 330px;
    transform: scale(.9);
  }

  .legal-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .legal-toc {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .legal-hero {
    padding-bottom: 92px;
  }

  .legal-hero-inner {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .legal-hero-copy {
    max-width: 650px;
    margin-inline: auto;
    text-align: center;
  }

  .legal-meta {
    justify-content: center;
  }

  .privacy-visual {
    width: min(100%, 470px);
    min-height: 315px;
    margin-inline: auto;
    transform: none;
  }

  .privacy-visual::before {
    width: 240px;
    height: 240px;
  }

  .privacy-orbit-one {
    width: 292px;
    height: 292px;
  }

  .privacy-orbit-two {
    width: 208px;
    height: 208px;
  }

  .privacy-shield {
    width: 98px;
    height: 98px;
    border-radius: 27px;
  }

  .privacy-shield svg {
    width: 50px;
    height: 50px;
  }

  .privacy-status-one { top: 17px; left: 1%; }
  .privacy-status-two { top: 132px; right: 0; }
  .privacy-status-three { bottom: 13px; left: 3%; }

  .legal-summary {
    gap: 10px;
    margin-top: -45px;
    grid-template-columns: 1fr;
  }

  .legal-summary-card {
    display: grid;
    min-height: 0;
    align-items: center;
    gap: 3px 12px;
    padding: 15px;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .legal-summary-icon {
    margin: 0;
    grid-row: span 2;
  }

  .legal-summary-card h2 {
    margin: 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

  .legal-section {
    padding: 25px 22px;
    border-radius: 15px;
  }
}

@media (max-width: 520px) {
  .legal-hero {
    padding-top: 46px;
  }

  .legal-hero h1 {
    font-size: 38px;
  }

  .legal-intro {
    font-size: 13px;
  }

  .legal-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .privacy-visual {
    min-height: 280px;
  }

  .privacy-visual::before {
    width: 205px;
    height: 205px;
  }

  .privacy-orbit-one {
    width: 252px;
    height: 252px;
  }

  .privacy-orbit-two {
    width: 178px;
    height: 178px;
  }

  .privacy-shield {
    width: 82px;
    height: 82px;
    border-radius: 23px;
  }

  .privacy-shield svg {
    width: 43px;
    height: 43px;
  }

  .privacy-shield::after {
    width: 13px;
    height: 13px;
    transform: translate(31px, -31px);
    border-width: 3px;
  }

  .privacy-status {
    width: min(210px, 69%);
    min-height: 60px;
    padding: 10px 12px;
  }

  .privacy-status-one { top: 9px; }
  .privacy-status-two { top: 111px; }
  .privacy-status-three { bottom: 8px; }

  .legal-toc ol,
  .legal-contact-card {
    grid-template-columns: 1fr;
  }

  .legal-section + .legal-section {
    margin-top: 12px;
  }

  .legal-section {
    padding: 22px 18px;
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 12.5px;
  }
}
