/*
  Dialed website: the Terms and Privacy pages (page title and the long text block).
  A faithful copy of the live Framer pages. Every value below was read from the live CSS and
  computed styles (reference/shared/css/live-terms.css and live-privacy.css; captures and
  measurements in reference/legal/), so change one only after checking it there.

  Breakpoints, as on the live site (see site.css):
    layout      (max-width: 1199.98px)
    text sizes  (max-width: 1199px)
*/

/* ---------- Page title (the live "hero text" block) ---------- */

.legal-hero {
  display: flex;
  flex-flow: column;
  flex: 0 0 auto;
  place-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: min-content;
  padding: 24px 64px 0;
  position: relative;
  overflow: hidden;
  overflow: clip;
}
/* Framer's rich text box: a flex column holding the heading. */
.legal-hero__title {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 100%;
  max-width: 800px;
  height: auto;
  position: relative;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}
.legal-hero__title h1 {
  margin: 0;
  padding: 0;
  font-family: var(--font-dm-sans);
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -2px;
  color: var(--color-text);
  text-align: center;
  text-transform: none;
  text-decoration: none;
}

/* ---------- Body text ---------- */

.legal-body {
  display: flex;
  flex-flow: row;
  flex: 0 0 auto;
  place-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: min-content;
  padding: 80px 72px 88px;
  position: relative;
  overflow: hidden;
  overflow: clip;
}
/* Framer's rich text box: a flex column, so the blocks inside stack without margin collapsing. */
.legal-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 0 0px;
  width: 1px;
  height: auto;
  position: relative;
  outline: none;
  word-break: break-word;
  overflow-wrap: break-word;
}
.legal-text p,
.legal-text h2,
.legal-text h3,
.legal-text ul {
  margin: 0;
  padding: 0;
}
/* Text blocks keep their spaces exactly as typed, as on the live page. */
.legal-text p,
.legal-text h2,
.legal-text h3 {
  white-space: pre-wrap;
}
.legal-text p,
.legal-text ul,
.legal-text li {
  font-family: var(--font-dm-sans);
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: 0;
  color: var(--color-text);
  text-align: left;
  text-transform: none;
  text-decoration: none;
}
.legal-text h2 {
  font-family: var(--font-dm-sans);
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -1px;
  color: var(--color-text);
  text-align: left;
  text-transform: none;
  text-decoration: none;
}
.legal-text h3 {
  font-family: var(--font-dm-sans);
  font-size: 28px;
  font-style: normal;
  font-weight: 800;
  line-height: 110%;
  letter-spacing: -0.5px;
  color: var(--color-text);
  text-align: left;
  text-transform: none;
  text-decoration: none;
}

/* Space above every block except the first in its box (Framer's paragraph spacing):
   20px above paragraphs and lists, 40px above headings. */
.legal-text > p:not(:first-child),
.legal-text > ul:not(:first-child),
.legal-text li > p:not(:first-child) {
  margin-top: 20px;
}
.legal-text > h2:not(:first-child),
.legal-text > h3:not(:first-child) {
  margin-top: 40px;
}

/* Bulleted lists: the bullet sits at the list's left edge, the text 2ch in. */
.legal-text ul {
  position: relative;
  padding-inline-start: 0;
}
.legal-text li {
  padding-inline-start: 2ch;
  /* Framer's own value is the empty string marker. "none" first only matters to a browser
     that cannot read a string marker: it then shows no second bullet. */
  list-style-type: none;
  list-style: "";
}
.legal-text ul > li::before {
  content: "\2022";
  position: absolute;
  inset-inline-start: 0;
}

/* Links in the text (Framer's "Link" style: underlined, blue on hover). */
.legal-text a {
  color: var(--color-text);
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.legal-text a:hover {
  color: var(--color-link-hover);
}

/* ---------- Phone layout ---------- */

@media (max-width: 1199.98px) {
  .legal-body {
    flex-direction: column;
    padding: 0 32px 32px;
  }
  .legal-text {
    flex: 0 0 auto;
    width: 100%;
  }
}
@media (max-width: 1199px) {
  .legal-hero__title h1 {
    font-size: 45px;
  }
  .legal-text p,
  .legal-text ul,
  .legal-text li {
    font-size: 16px;
  }
  .legal-text h2 {
    font-size: 32px;
    line-height: 120%;
  }
  .legal-text h3 {
    font-size: 22px;
  }
}
