/* Legal pages, Figma 281:6731 / 281:6900 / 281:7076 (1821px desktop). */
.loon-page.legal-page {
  --legal-body-size: 16px;
  --legal-indent: clamp(20px, 2.14168vw, 39px);
  background: #fefefe;
}

.legal-page .legal-hero {
  position: relative;
  display: block;
  isolation: isolate;
  padding: 92px 0 112px;
  background: #0e0e0e;
  border: 0;
}

.legal-page .legal-hero::after {
  content: none;
}

.legal-page .legal-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  padding-inline: 32px;
}

.legal-page .legal-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -.05em;
}

.legal-page .legal-hero .eyebrow img {
  width: 1.20836em;
  height: auto;
}

/* Override the shared heading scale for this document's Figma typography. */
.loon-page.legal-page .legal-hero h1 {
  font-size: var(--hero-heading-size) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -.05em !important;
  text-wrap: initial;
  margin-bottom: 16px;
  color: #fff;
}

.legal-page .legal-hero .legal-sub {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.05em;
}

.legal-page .legal-section {
  background: #fefefe;
}

.legal-page .legal-doc {
  overflow-wrap: anywhere;
}

.blocked-policy-page .legal-section {
  padding: 72px 0 100px;
  background: #fefefe;
}

.blocked-policy-page .legal-wrap {
  width: 100%;
  max-width: 1420px;
  padding-inline: 32px;
}

.blocked-policy-page .blocked-policy-doc {
  max-width: 1180px;
  margin: 0 auto;
  color: #000;
  font-family: var(--font-body);
  font-size: var(--legal-body-size);
  font-weight: 400;
  line-height: normal;
  letter-spacing: .02em;
}

.blocked-policy-page .blocked-policy-doc p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
}

.blocked-policy-page .blocked-policy-intro {
  font-size: 18px;
}

.blocked-policy-page .blocked-policy-doc > div + div {
  margin-top: clamp(36px, 3.18506vw, 58px);
}

.loon-page.blocked-policy-page .blocked-policy-doc h2 {
  margin: 0 0 12px;
  color: #000;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: normal !important;
  letter-spacing: .02em !important;
  text-wrap: initial;
}

.blocked-policy-page .blocked-policy-doc > div:not(.blocked-policy-intro) > p {
  margin-inline-start: var(--legal-indent);
}

.blocked-policy-page .blocked-policy-doc ol {
  margin: 24px 0 0 var(--legal-indent);
  padding-inline-start: clamp(26px, 1.75728vw, 32px);
  list-style-type: upper-alpha;
}

.blocked-policy-page .blocked-policy-doc li {
  margin: 0;
  padding: 0;
}

.blocked-policy-page .blocked-policy-doc li + li {
  margin-top: 1.2em;
}

.legal-pattern-wrap {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.legal-pattern-hero {
  position: absolute;
  inset: auto 0 0;
  height: clamp(45.9px, 5.09995vw, 92.87px);
}

.legal-pattern-footer {
  height: clamp(45.9px, 5.09995vw, 92.87px);
  background: #fefefe;
}

.legal-pattern {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(900px, 100%, 1821px);
  height: 100%;
  transform: translateX(-50%);
  container-type: inline-size;
}

.legal-pattern > .figma-artwork-canvas {
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 800px) {
  .legal-page .legal-hero {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 56px;
  }
}

/* Preserve the existing page widths; Figma hierarchy uses capped type sizes. */
.privacy-policy-page .legal-section {
  padding: 72px 0 100px;
}

.privacy-policy-page .legal-wrap {
  max-width: 1420px;
  padding-inline: 32px;
}

.privacy-policy-page .privacy-doc {
  max-width: none;
  grid-template-columns: 330px minmax(0, 1fr);
  column-gap: 80px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .02em;
  color: #000;
}

.privacy-policy-page .privacy-doc > .legal-section-block {
  margin: 0 0 40px;
  padding-inline-start: clamp(20px, 2.08677vw, 38px);
}

.privacy-policy-page .privacy-doc p {
  max-width: 1030px;
  margin: 0 0 1.2em;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.loon-page.privacy-policy-page .privacy-doc h2 {
  margin: 0 0 28px calc(-1 * clamp(20px, 2.08677vw, 38px));
  padding-top: 24px;
  border-top: 1px solid #d9d9d9;
  color: #929192;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: normal !important;
  letter-spacing: .02em !important;
  text-wrap: initial;
}

.privacy-policy-page .privacy-doc {
  counter-reset: privacy-section;
}

.privacy-policy-page .legal-section-block[id] > h2::before {
  counter-increment: privacy-section;
  content: counter(privacy-section, decimal-leading-zero) "   ";
  white-space: pre;
}

.loon-page.privacy-policy-page .privacy-doc h3 {
  margin: 0 0 4px;
  font-size: inherit !important;
  font-weight: 700 !important;
  line-height: normal !important;
  letter-spacing: .02em !important;
  text-wrap: initial;
}

.privacy-policy-page .privacy-doc strong {
  display: block;
  color: #000;
  font-weight: 700;
}

.privacy-policy-page .privacy-doc ul {
  padding-inline-start: 22px;
  list-style: disc;
}

.privacy-policy-page .privacy-doc ul:has(> li > strong) {
  padding: 0;
  list-style: none;
}

.privacy-policy-page .privacy-doc li {
  margin-bottom: 1.2em;
}

.privacy-policy-page .privacy-doc .legal-toc {
  top: 120px;
  grid-row: 1 / span 9;
  margin: 0;
  padding: 0;
  border: 0;
}

.loon-page.privacy-policy-page .legal-toc h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: #6e6666;
  font-size: 18px !important;
}

.privacy-policy-page .legal-toc ul {
  padding: 0;
  list-style: none;
  counter-reset: privacy-link;
}

.privacy-policy-page .legal-toc li {
  margin: 0;
  font-size: 14px;
}

.privacy-policy-page .legal-toc li a {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0 12px 16px;
  border-left: 4px solid transparent;
  color: #949494;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
}

.privacy-policy-page .legal-toc li a::before {
  counter-increment: privacy-link;
  content: counter(privacy-link, decimal-leading-zero);
  white-space: nowrap;
}

.privacy-policy-page .legal-toc li a:hover,
.privacy-policy-page .legal-toc li a:focus-visible,
.privacy-doc:not(:has(.legal-section-block:target)) .legal-toc li:first-child a,
.privacy-doc:has(#collection-and-use:target) a[href="#collection-and-use"],
.privacy-doc:has(#sharing-of-personal-information:target) a[href="#sharing-of-personal-information"],
.privacy-doc:has(#information-about-our-website:target) a[href="#information-about-our-website"],
.privacy-doc:has(#safeguards-and-retention:target) a[href="#safeguards-and-retention"],
.privacy-doc:has(#your-choices:target) a[href="#your-choices"],
.privacy-doc:has(#privacy-governance:target) a[href="#privacy-governance"],
.privacy-doc:has(#updates-to-privacy-policy:target) a[href="#updates-to-privacy-policy"],
.privacy-doc:has(#contact-us:target) a[href="#contact-us"] {
  color: #d14449;
  border-left-color: #c5201c;
}

.loon-page.privacy-policy-page .legal-toc .privacy-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 20px 0;
  padding-top: 12px;
  border-top: 2px solid #d9d9d9;
  color: #a71c1c;
  font-size: 14px;
}

.privacy-contact img {
  width: clamp(26px, 2.91049vw, 53px);
  height: auto;
}

/* Terms retains its original compact text and readable document width. */
.terms-page .legal-section {
  padding: 72px 0 100px;
}

.terms-page .legal-wrap {
  width: 100%;
  max-width: 1420px;
  padding-inline: 32px;
}

.terms-page .terms-doc {
  max-width: 1180px;
  color: #000;
  font-size: var(--legal-body-size);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .02em;
}

.terms-page .terms-doc p,
.terms-page .terms-doc li {
  max-width: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.terms-page .terms-doc p {
  margin: 0 0 1.2em;
}

.terms-page .terms-doc > div {
  margin-top: clamp(12px, .98847vw, 18px);
  border-radius: 11px;
  background: #f4f4f4;
}

.loon-page.terms-page .terms-doc h2 {
  margin: 0;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: normal !important;
  letter-spacing: .02em !important;
}

.terms-page .terms-accordion-trigger {
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 14px;
  padding: 15px 18px;
  background: #f4f4f4;
  color: #454545;
  font: inherit;
  letter-spacing: inherit;
}

.terms-page .terms-accordion-trigger[aria-expanded="true"] {
  background: #000;
  color: #fff;
}

.terms-page .terms-index {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 11px;
  background: #dfdfdf;
  color: #454545;
  font-size: 12px;
  font-weight: 700;
}

.terms-page .terms-accordion-trigger[aria-expanded="true"] .terms-index {
  background: #434343;
  color: #fff;
}

.terms-page .terms-section-title {
  overflow-wrap: anywhere;
}

.terms-page .terms-chevron,
.terms-page .terms-accordion-trigger[aria-expanded="true"] .terms-chevron {
  display: block;
  width: 100%;
  height: auto;
  transform: none;
}

.terms-page .terms-accordion-panel {
  padding: 24px 30px 18px;
  background: #f4f4f4;
}

.terms-page .terms-tools {
  display: flex;
  justify-content: flex-end;
  max-width: 1180px;
  margin-inline: auto;
  margin-bottom: clamp(16px, 1.37287vw, 25px);
}

.terms-page .terms-tools[hidden] {
  display: none;
}

.terms-page .terms-expand-all {
  min-height: 45px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: #d9d9d9;
  color: #000;
  font: 400 var(--legal-body-size)/normal var(--font-body);
  letter-spacing: .02em;
}

.terms-page :is(.terms-expand-all, .terms-accordion-trigger):focus-visible {
  outline: 3px solid #a71c1c;
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .privacy-policy-page .privacy-doc {
    display: block;
  }

  .privacy-policy-page .privacy-doc .legal-toc {
    position: static;
    margin: 32px 0 48px;
  }
}
