/* Flank legal pages — readability and tone refinements */

.rich-text_wrap .rich-text_container {
  max-width: 46rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.rich-text_wrap .u-rich-text {
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

/* Title — restrained, serif, with a thin divider beneath */
.rich-text_wrap .u-rich-text h1 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.rich-text_wrap .u-rich-text h1 strong {
  font-weight: 400;
}

/* "Last updated" meta */
.rich-text_wrap .u-rich-text h1 + p strong:first-child,
.rich-text_wrap .u-rich-text > p:first-of-type strong:first-child {
  /* harmless extra specificity anchor, real meta styling below */
}

.rich-text_wrap .u-rich-text h1 + p {
  margin-top: 0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e6e6e6;
  color: #6b6b6b;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rich-text_wrap .u-rich-text h1 + p strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Section headings — subtle rule above, more gravitas */
.rich-text_wrap .u-rich-text h2 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid #ececec;
  color: #111;
}

.rich-text_wrap .u-rich-text h2 strong {
  font-weight: 400;
}

/* First h2 sits tighter against the metadata */
.rich-text_wrap .u-rich-text h1 + p + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rich-text_wrap .u-rich-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: #111;
}

/* Paragraphs and lists */
.rich-text_wrap .u-rich-text p {
  margin: 0 0 1.1rem;
}

.rich-text_wrap .u-rich-text ul,
.rich-text_wrap .u-rich-text ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.rich-text_wrap .u-rich-text li {
  margin-bottom: 0.4rem;
}

.rich-text_wrap .u-rich-text li > ul,
.rich-text_wrap .u-rich-text li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

/* Links — brand primary, underlined on hover */
.rich-text_wrap .u-rich-text a {
  color: #b93315;
  text-decoration: underline;
  text-decoration-color: rgba(185, 51, 21, 0.35);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}

.rich-text_wrap .u-rich-text a:hover {
  text-decoration-color: #b93315;
}

/* Tables — clean, legal-document aesthetic */
.rich-text_wrap .u-rich-text [data-rt-embed-type='true'] {
  margin: 0.5rem 0 2rem;
  overflow-x: auto;
}

.rich-text_wrap .u-rich-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.rich-text_wrap .u-rich-text table th {
  background: #fafafa;
  text-align: left;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #d4d4d4 !important;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #444;
}

.rich-text_wrap .u-rich-text table td {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #ececec !important;
  vertical-align: top;
}

.rich-text_wrap .u-rich-text table tr:last-child td {
  border-bottom: 0 !important;
}

/* Changelog / update notice */
.rich-text_wrap .u-rich-text blockquote {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: #faf7f5;
  border-left: 3px solid #f15532;
  border-radius: 0 4px 4px 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #333;
}

.rich-text_wrap .u-rich-text blockquote strong:first-child {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b93315;
  font-weight: 600;
}

/* Strip the Webflow section padding on the top — h1 gives its own breathing room */
.rich-text_wrap .section-padding_wrap[data-wf--structure-section-padding--style-size="page-top"] {
  padding-top: 3rem;
}

/* Remove Webflow's default empty <p> visual noise */
.rich-text_wrap .u-rich-text p:empty {
  display: none;
}

/* Small-screen tweaks */
@media (max-width: 640px) {
  .rich-text_wrap .u-rich-text {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .rich-text_wrap .u-rich-text h1 {
    font-size: 1.875rem;
  }

  .rich-text_wrap .u-rich-text h2 {
    font-size: 1.25rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
  }

  .rich-text_wrap .u-rich-text table {
    font-size: 0.875rem;
  }

  .rich-text_wrap .u-rich-text table th,
  .rich-text_wrap .u-rich-text table td {
    padding: 0.5rem 0.625rem !important;
  }
}
