:root {
  --ink: #172528;
  --muted: #627174;
  --paper: #fbfdfc;
  --surface: rgba(255, 255, 255, 0.88);
  --line: rgba(23, 37, 40, 0.11);
  --teal: #27d7c2;
  --teal-deep: #087d73;
  --pink: #ff5caa;
  --shadow: 0 18px 60px rgba(30, 61, 67, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(39, 215, 194, 0.1), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(111, 144, 255, 0.11), transparent 31rem),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #075f58;
}

:focus-visible {
  outline: 3px solid rgba(39, 215, 194, 0.58);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(22px, 5vw, 76px);
  background: rgba(251, 253, 252, 0.8);
  border-bottom: 1px solid rgba(23, 37, 40, 0.07);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid rgba(23, 37, 40, 0.12);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(33, 94, 90, 0.13);
}

.legal-header__home {
  padding: 9px 15px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.legal-header__home:hover {
  color: var(--ink);
  border-color: rgba(39, 215, 194, 0.65);
  transform: translateY(-1px);
}

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(68px, 9vw, 126px) 24px clamp(62px, 8vw, 104px);
  border-bottom: 1px solid rgba(23, 37, 40, 0.07);
}

.legal-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(125deg, rgba(211, 255, 235, 0.72), rgba(206, 226, 255, 0.68)),
    #eef8f6;
}

.legal-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.42;
  background-image: radial-gradient(rgba(23, 37, 40, 0.17) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.legal-hero__glow {
  position: absolute;
  z-index: -1;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.34;
}

.legal-hero__glow--one {
  top: -13rem;
  left: -8rem;
  background: var(--teal);
}

.legal-hero__glow--two {
  right: -10rem;
  bottom: -17rem;
  background: #8b90ff;
}

.legal-hero__content {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.legal-hero__eyebrow {
  margin: 0 0 14px;
  color: #116e67;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 930px;
  margin: 0 auto;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.legal-hero__subtitle {
  max-width: 720px;
  margin: 24px auto 0;
  color: #45585b;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.legal-hero__meta span {
  padding: 8px 13px;
  color: #334649;
  font-size: 0.77rem;
  font-weight: 720;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(23, 37, 40, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 820px);
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
  width: min(1230px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
}

.legal-sidebar {
  position: sticky;
  top: 106px;
  max-height: calc(100vh - 126px);
  overflow: auto;
  scrollbar-width: thin;
}

.legal-toc,
.legal-related {
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(30, 61, 67, 0.045);
}

.legal-toc summary,
.legal-related p {
  margin: 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc summary {
  cursor: pointer;
}

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

.legal-toc nav {
  margin-top: 13px;
}

.legal-toc__link,
.legal-related a {
  display: block;
  padding: 7px 9px;
  color: #526164;
  font-size: 0.79rem;
  font-weight: 640;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 9px;
}

.legal-toc__link:hover,
.legal-related a:hover,
.legal-related a[aria-current="page"] {
  color: var(--ink);
  background: rgba(39, 215, 194, 0.11);
}

.legal-toc__link--sub {
  padding-left: 19px;
  font-size: 0.75rem;
}

.legal-related {
  margin-top: 14px;
  padding: 16px;
}

.legal-related p {
  margin: 3px 8px 8px;
}

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

.legal-article > :first-child {
  margin-top: 0;
}

.legal-article h1,
.legal-article h2 {
  color: #15282b;
  scroll-margin-top: 106px;
}

.legal-article h1 {
  margin: 3.7rem 0 1.05rem;
  padding-top: 0.25rem;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.legal-article h1::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 15px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--pink));
  border-radius: 99px;
}

.legal-article h2 {
  margin: 2.35rem 0 0.8rem;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.legal-article p {
  margin: 0 0 1.1rem;
  color: #3e4d50;
}

.legal-article strong {
  color: #233639;
  font-weight: 780;
}

.legal-article ul {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.legal-article li {
  position: relative;
  padding-left: 1.55rem;
  color: #3e4d50;
}

.legal-article li::before {
  position: absolute;
  top: 0.7em;
  left: 0.18rem;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(39, 215, 194, 0.11);
}

.policy-note {
  position: relative;
  margin: 1.8rem 0 2.2rem;
  padding: 22px 24px 22px 27px;
  color: #264145;
  font-weight: 610;
  line-height: 1.65;
  background:
    linear-gradient(135deg, rgba(39, 215, 194, 0.11), rgba(111, 144, 255, 0.08)),
    var(--surface);
  border: 1px solid rgba(39, 215, 194, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.policy-note::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 4px;
  content: "";
  background: linear-gradient(var(--teal), #8b90ff);
  border-radius: 99px;
}

.legal-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 28px clamp(22px, 5vw, 76px);
  background: #10191b;
}

.legal-brand--footer {
  color: #fff;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.legal-footer nav a {
  color: #b8c4c6;
  font-size: 0.77rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-footer nav a:hover,
.legal-footer nav a[aria-current="page"] {
  color: var(--teal);
}

.legal-footer p {
  margin: 0;
  color: #8e9b9d;
  font-size: 0.72rem;
  white-space: nowrap;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .legal-layout {
    display: block;
    width: min(100% - 32px, 760px);
    padding-top: 34px;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 42px;
    overflow: visible;
  }

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

  .legal-toc:not([open]) {
    padding-bottom: 16px;
  }

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

  .legal-related p {
    grid-column: 1 / -1;
  }

  .legal-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 84px;
  }

  .legal-header {
    min-height: 66px;
    padding: 8px 16px;
  }

  .legal-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .legal-header .legal-brand span {
    display: none;
  }

  .legal-header__home {
    font-size: 0.78rem;
  }

  .legal-hero {
    padding: 62px 18px 56px;
  }

  .legal-hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
    line-height: 1.01;
  }

  .legal-hero__subtitle {
    margin-top: 18px;
    font-size: 1rem;
  }

  .legal-hero__meta {
    display: grid;
    justify-items: center;
    margin-top: 25px;
  }

  .legal-layout {
    width: min(100% - 28px, 760px);
    padding-bottom: 80px;
  }

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

  .legal-article h1 {
    margin-top: 3rem;
  }

  .policy-note {
    padding: 19px 18px 19px 22px;
  }

  .legal-footer {
    padding: 34px 20px;
  }

  .legal-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 350px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .skip-link,
  .legal-header,
  .legal-sidebar,
  .legal-footer,
  .legal-hero__glow {
    display: none !important;
  }

  .legal-hero {
    padding: 0 0 24pt;
    border-bottom: 1px solid #aaa;
  }

  .legal-hero::before,
  .legal-hero::after {
    display: none;
  }

  .legal-hero__content {
    text-align: left;
  }

  .legal-hero h1 {
    max-width: none;
    font-size: 28pt;
  }

  .legal-hero__meta {
    justify-content: flex-start;
  }

  .legal-hero__meta span {
    padding: 0;
    border: 0;
  }

  .legal-layout {
    display: block;
    width: auto;
    padding: 24pt 0;
  }

  .legal-article h1,
  .legal-article h2 {
    break-after: avoid;
  }

  .legal-article p,
  .legal-article li,
  .policy-note {
    orphans: 3;
    widows: 3;
  }
}
