/*===============================================*\
|| TerraLoc legal pages                           ||
|| ---------------------------------------------- ||
|| Privacy and terms. Long prose, so the job here  ||
|| is a comfortable measure and a clear hierarchy, ||
|| not decoration: the footer below already        ||
|| carries the brand.                              ||
\*===============================================*/

.tl-legal {
  /*
   * Pinned like every other TerraLoc surface: these pages read on paper
   * whatever face the site is wearing, because a wall of body copy that
   * inverts with the theme is a different document to read.
   */
  --tl-paper:      #F3F2EC;
  --tl-panel:      #FAF9F4;
  --tl-ink:        #23281F;
  --tl-muted:      #5C6253;
  --tl-dim:        #8B8F80;
  --tl-hairline:   #DFDCCB;
  --tl-accent:     #46603C;
  --tl-accent-hover: #2E4228;
  --tl-cta:        #C86B3F;
  --tl-sage:       #9FB08A;

  --bs-body-color:      var(--tl-ink);
  --bs-heading-color:   var(--tl-ink);
  --bs-emphasis-color:  var(--tl-ink);
  --bs-link-color:      var(--tl-accent);
  --bs-link-hover-color: var(--tl-accent-hover);

  background: var(--tl-paper);
  color: var(--tl-ink);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem);
}

.tl-legal-wrap {
  width: min(92%, 46rem);
  margin: 0 auto;
}

.tl-legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tl-accent);
}
.tl-legal-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--tl-accent);
}

.tl-legal h1 {
  margin: 1.25rem 0 0;
  font-family: var(--tl-font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tl-ink);
}

.tl-legal-lede {
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tl-muted);
}

/* The date is the first thing a reader checks on a policy, so it is not
   buried at the bottom the way the stock pages put it. */
.tl-legal-updated {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--tl-hairline);
  border-radius: 999px;
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tl-muted);
}

.tl-legal-body { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.tl-legal-body h2 {
  margin: 3rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--tl-hairline);
  font-family: var(--tl-font-display, "Bricolage Grotesque", sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tl-ink);
}
.tl-legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.tl-legal-body h3 {
  margin: 1.75rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tl-ink);
}

.tl-legal-body p {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tl-muted);
}

.tl-legal-body ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.tl-legal-body li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tl-muted);
}
/* A contour dash rather than a bullet, which is the mark this design uses
   everywhere else a list needs one. */
.tl-legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 12px;
  height: 2px;
  background: var(--tl-sage);
}

.tl-legal-body a { color: var(--tl-accent); font-weight: 600; text-decoration: none; }
.tl-legal-body a:hover { color: var(--tl-accent-hover); text-decoration: underline; }

.tl-legal-body strong { color: var(--tl-ink); font-weight: 600; }

/* The closing contact line, set apart from the prose above it. */
.tl-legal-contact {
  margin-top: 3rem;
  padding: 1.75rem;
  border: 1px solid var(--tl-hairline);
  border-radius: 12px;
  background: var(--tl-panel);
}
.tl-legal-contact p:first-child { margin-top: 0; }

@media (max-width: 767.98px) {
  .tl-legal-body h2 { margin-top: 2.25rem; padding-top: 1.25rem; font-size: 1.3125rem; }
  .tl-legal-contact { padding: 1.25rem; }
}
