/* Long-form legal typography: centered column, numbered ALL-CAPS h2s. */

.legal__body {
  max-width: 760px;
  margin-inline: auto;
}

.legal__section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin: 96px 0 40px;
}

.legal__section:first-child h2 {
  margin-top: 0;
}

/* lead section (doc title emitted as h1/h3/strong inside content html) */
.legal__section h1,
.legal__section h3 {
  text-align: center;
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.legal__section p,
.legal__section li {
  font-size: var(--text-body);
  line-height: 1.7;
}

.legal__section p {
  margin-bottom: 1.5em;
}

.legal__section li {
  margin-bottom: 0.6em;
}

.legal__section ul,
.legal__section ol {
  margin-bottom: 1.5em;
}

.legal__section a {
  word-break: break-word;
}

/* eSIM install guides (simple-template CMS pages): readable article + a
   responsive gallery of phone screenshots with captions. Scoped to .guide-page
   so it doesn't touch legal docs. */
.guide-page > h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-primary);
}
.guide-page > h2:first-child {
  margin-top: 0;
}
.guide-page h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-primary);
}
.guide-page p,
.guide-page li {
  font-size: var(--text-body);
  line-height: 1.7;
}
.guide-page p {
  margin: 0 0 1.1em;
}
.guide-page ul,
.guide-page ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.guide-page li {
  margin-bottom: 0.5em;
}
.guide-page a {
  color: var(--color-action);
  word-break: break-word;
}
.guide-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 1.25rem 0 1.75rem;
}
.guide-shots figure {
  width: 160px;
  margin: 0;
}
.guide-shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(37, 70, 95, 0.12);
  background: #fff;
}
.guide-shots figcaption {
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-text-soft);
  line-height: 1.35;
  text-align: center;
}
