/* Terms, Privacy, FAQ and 404. Loaded after home.css. New rules use the lg- prefix. */

/* Current page in the menu. Copied from pricing.css. */

.nav-links a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--text);
}

/* Short dark band. Same idea as the pricing hero, with less padding. */

.lg-hero {
  background: var(--bg);
}

.lg-hero .hero-inner {
  padding: 132px 24px 56px;
}

.lg-hero .hero-copy {
  flex: 1 1 100%;
  max-width: 760px;
}

.lg-hero .hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16em;
}

.lg-updated {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.lg-hero .hero-lead {
  max-width: 40em;
}

.lg-note {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.lg-note a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lg-hero .hero-actions a {
  max-width: 100%;
}

/* Two columns from 1024px. The list stays under the sticky menu. */

.lg-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
}

.lg-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  min-width: 0;
}

.lg-toc-label {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.lg-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lg-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}

.lg-toc-list a:hover {
  color: var(--accent-text);
}

.lg-num {
  flex: 0 0 2.5em;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--jade);
}

.lg-toc-other {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lg-article {
  min-width: 0;
  max-width: 720px;
}

.lg-article h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 56px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 108px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lg-article h2:first-of-type {
  margin-top: 0;
}

.lg-article h3 {
  margin: 28px 0 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}

.lg-article p,
.lg-article li {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: break-word;
}

.lg-article p {
  margin: 0 0 14px;
}

.lg-article p:last-child {
  margin-bottom: 0;
}

.lg-article ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.lg-article li + li {
  margin-top: 8px;
}

.lg-article li::marker {
  color: var(--jade);
}

.lg-article a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lg-article .strong {
  font-weight: 600;
}

.lg-article strong {
  font-weight: 700;
}

@media (min-width: 1024px) {
  .lg-layout {
    grid-template-columns: minmax(180px, 240px) minmax(0, 720px);
    justify-content: start;
    align-items: start;
    column-gap: 48px;
  }

  .lg-toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 4px 8px 4px 0;
  }
}

/* FAQ groups. The open-and-close rows use the homepage .faq-item rules. */

.lg-groups {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px 48px;
  min-width: 0;
}

.lg-group-title {
  margin: 40px 0 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lg-group:first-child .lg-group-title {
  margin-top: 8px;
}

/* Centered button row. Copied from the pricing page call to action. */

.lg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

@media (max-width: 700px) {
  .lg-cta .cta-lines {
    display: none;
  }
}

@media (max-width: 480px) {
  .lg-hero .hero-inner {
    padding: 116px 16px 40px;
  }

  .lg-layout,
  .lg-groups {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lg-article h2,
  .lg-group-title {
    font-size: 24px;
  }
}
