/* Legal pages (Terms, Privacy). Prefix lg- so other page CSS stays untouched. */

.lg-main {
  width: 100%;
  padding: 128px 0 calc(var(--promo-h, 100px) + 64px);
}

.lg-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: min(1440px, 100%);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 48px;
}

.lg-title,
.landing h1.lg-title {
  margin: 0;
  color: var(--ink);
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: break-word;
  font-feature-settings: "calt" 0, "salt", "ss01", "ss05", "ss06", "ss07", "ss08";
}

.lg-layout {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  min-width: 0;
}

.lg-meta {
  display: flex;
  flex-direction: column;
  flex: 0 0 284px;
  width: 284px;
  gap: 4px;
}

.landing p.lg-updated-label,
.lg-updated-label {
  margin: 0;
  color: var(--grey);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.landing p.lg-updated-date,
.lg-updated-date {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lg-body {
  display: flex;
  flex-direction: column;
  flex: 0 1 720px;
  width: 720px;
  max-width: 720px;
  min-width: 0;
}

.lg-body > h2:first-child,
.landing .lg-body > h2:first-child {
  margin-top: 0;
}

.lg-body h2,
.landing .lg-body h2 {
  margin: 64px 0 0;
  color: var(--ink);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  font-feature-settings: "calt" 0, "salt", "ss01", "ss05", "ss06", "ss07", "ss08";
}

.lg-body h3,
.landing .lg-body h3 {
  margin: 40px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  font-feature-settings: "calt" 0, "salt", "ss01", "ss05", "ss06", "ss07", "ss08";
}

.lg-body h4,
.landing .lg-body h4 {
  margin: 40px 0 0;
  color: var(--dark);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
  font-feature-settings: "calt" 0, "salt", "ss01", "ss05", "ss06", "ss07", "ss08";
}

.lg-body p,
.landing .lg-body p {
  margin: 24px 0 0;
  color: var(--dark);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.lg-body strong {
  color: var(--dark);
  font-weight: 600;
}

.lg-body em {
  font-style: italic;
}

.landing .lg-body a,
.lg-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.35s cubic-bezier(0.44, 0, 0.56, 1),
    text-decoration-color 0.35s cubic-bezier(0.44, 0, 0.56, 1);
}

@media (hover: hover) and (pointer: fine) {
  .landing .lg-body a:hover,
  .lg-body a:hover {
    color: var(--ink);
    text-decoration: none;
  }
}

.lg-body ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--dark);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.lg-body li {
  position: relative;
  padding-left: 22px;
}

.lg-body li + li {
  margin-top: 0;
}

.lg-body li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.lg-page [data-inview] {
  transition-delay: var(--d, 0s);
}

.lg-body figure {
  width: 100%;
  margin: 24px 0 0;
  overflow-x: auto;
}

.lg-body table {
  width: 100%;
  margin-top: 24px;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lg-body th,
.lg-body td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.lg-body th:last-child,
.lg-body td:last-child {
  border-right: 0;
}

.lg-body tbody tr:last-child td,
.lg-body tbody tr:last-child th {
  border-bottom: 0;
}

.lg-body thead tr:first-child > *:first-child {
  border-top-left-radius: 8px;
}

.lg-body thead tr:first-child > *:last-child {
  border-top-right-radius: 8px;
}

.lg-body tbody:last-child tr:last-child > *:first-child {
  border-bottom-left-radius: 8px;
}

.lg-body tbody:last-child tr:last-child > *:last-child {
  border-bottom-right-radius: 8px;
}

.lg-body th {
  background: var(--sage);
  color: var(--ink);
}

.lg-body td {
  background: var(--white);
  color: var(--dark);
}

@media (max-width: 1199.98px) {
  .lg-main {
    padding-top: 120px;
  }

  .lg-container {
    padding-inline: 24px;
  }

  .lg-title,
  .landing h1.lg-title {
    font-size: 64px;
    letter-spacing: -0.04em;
    line-height: 1.05;
  }

  .lg-meta {
    flex: 0 0 145px;
    width: 145px;
  }

  .lg-body {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }

  .lg-body h2,
  .landing .lg-body h2 {
    font-size: 36px;
  }

  .lg-body h3,
  .landing .lg-body h3 {
    font-size: 28px;
  }

  .lg-body h4,
  .landing .lg-body h4 {
    font-size: 22px;
  }

  .lg-body p,
  .landing .lg-body p,
  .lg-body ul {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 767.98px) {
  .lg-main {
    padding: 104px 0 calc(var(--promo-h, 100px) + 48px);
  }

  .landing.lg-page [data-inview] {
    transform: translateY(16px);
  }

  .landing.lg-page [data-inview].is-inview {
    transform: none;
  }

  .lg-title,
  .landing h1.lg-title {
    font-size: 42px;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .lg-layout {
    flex-direction: column;
    gap: 64px;
  }

  .lg-meta,
  .lg-body {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .lg-body h2,
  .landing .lg-body h2 {
    margin-top: 48px;
    font-size: 32px;
  }

  .lg-body h3,
  .landing .lg-body h3 {
    font-size: 24px;
  }

  .lg-body h4,
  .landing .lg-body h4 {
    font-size: 20px;
  }

  .lg-body table {
    min-width: 0;
  }

  .lg-body th,
  .lg-body td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing .lg-body a,
  .lg-body a {
    transition: none;
  }
}
