/* Privacy, Terms, Refund, Cancellation and Contact, laid out like the
 * account page: a list of the sections down the side, and the text in a
 * column beside it. Loaded after ui.css on those five pages.
 */

.lg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 112px);
}
@media (min-width: 900px) {
  .lg-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
  }
}

.lg-side {
  align-self: start;
}
@media (min-width: 900px) {
  .lg-side {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
}
.lg-side p {
  margin: 0 0 8px 10px;
  font-family: var(--ui-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.lg-side a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text3);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lg-side a:hover {
  color: var(--text2);
  background: #111;
}
.lg-side a.is-on {
  background: var(--s2);
  color: var(--text);
}
/* On a phone the list is a row of chips above the text. */
@media (max-width: 899px) {
  .lg-side {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .lg-side p {
    flex: 1 0 100%;
    margin-left: 2px;
  }
  .lg-side a {
    border: 1px solid var(--b1);
    font-size: 12.5px;
    padding: 5px 10px;
  }
}

:root .lg-main.legal-page {
  max-width: none;
  margin: 0;
  padding: 0;
}
:root .lg-main h1 {
  font-family: var(--ui-sans);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--text);
}
:root .lg-main h2 {
  font-family: var(--ui-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 38px 0 10px;
  padding-top: 26px;
  border-top: 1px solid #1c1c1c;
  scroll-margin-top: 92px;
}
:root .lg-main h2:first-of-type {
  margin-top: 26px;
}
:root .lg-main h3 {
  font-family: var(--ui-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}
:root .lg-main p,
:root .lg-main li {
  color: var(--text2);
  font-size: 15.2px;
  line-height: 1.72;
}
:root .lg-main ul,
:root .lg-main ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}
:root .lg-main li {
  margin: 6px 0;
}
:root .lg-main a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--b2);
  text-underline-offset: 3px;
}
:root .lg-main a:hover {
  text-decoration-color: var(--text2);
}
:root .lg-main strong {
  color: var(--text);
  font-weight: 600;
}

/* The effective date, as a quiet chip under the title. */
.lg-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  padding: 5px 11px;
  border: 1px solid var(--b1);
  border-radius: 999px;
  font-family: var(--ui-mono);
  font-size: 12px;
  color: var(--text3);
}
.lg-updated::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.lg-updated strong {
  font-weight: 500;
  color: var(--text3);
}
