:root {
  --tm-ink: #201d18;
  --tm-muted: #70695f;
  --tm-paper: #f8f4ec;
  --tm-card: #fffdf8;
  --tm-gold: #b88a43;
  --tm-line: rgba(90, 72, 48, .18);
}

body.tm-legal-page {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(204, 174, 128, .17), transparent 34rem),
    var(--tm-paper);
  color: var(--tm-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tm-legal-header,
.tm-legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 64px);
}

.tm-legal-header {
  border-bottom: 1px solid var(--tm-line);
}

.tm-legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--tm-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
}

.tm-legal-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(184, 138, 67, .4);
  border-radius: 50%;
  color: var(--tm-gold);
}

.tm-legal-header nav,
.tm-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tm-legal-header nav a,
.tm-legal-footer a {
  color: inherit;
  text-decoration-color: rgba(184, 138, 67, .5);
  text-underline-offset: 4px;
}

.tm-legal-main {
  width: min(900px, calc(100% - 32px));
  margin: clamp(38px, 7vw, 84px) auto;
}

.tm-legal-article {
  overflow-wrap: anywhere;
  padding: clamp(26px, 6vw, 72px);
  border: 1px solid var(--tm-line);
  border-radius: 30px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 28px 80px rgba(62, 47, 28, .09);
  font-size: 16px;
  line-height: 1.75;
}

.tm-legal-article h1,
.tm-legal-article h2,
.tm-legal-article h3 {
  color: var(--tm-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
}

.tm-legal-article h1 {
  max-width: 780px;
  margin: 0 0 38px;
  font-size: clamp(38px, 7vw, 62px);
  font-weight: 600;
}

.tm-legal-article h2 {
  margin: 44px 0 18px;
  padding-top: 8px;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 600;
}

.tm-legal-article h3 {
  margin: 32px 0 14px;
  font-size: 25px;
}

.tm-legal-article p,
.tm-legal-article li {
  color: #3f3a33;
}

.tm-legal-article a {
  color: #805c27;
  text-decoration-color: rgba(128, 92, 39, .35);
  text-underline-offset: 3px;
}

.tm-legal-article ul,
.tm-legal-article ol {
  padding-left: 24px;
}

.tm-legal-article blockquote,
.tm-legal-callout {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid rgba(184, 138, 67, .24);
  border-left: 3px solid var(--tm-gold);
  border-radius: 14px;
  background: #fbf5e9;
}

.tm-legal-eyebrow {
  margin-bottom: 14px !important;
  color: var(--tm-gold) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}

.tm-legal-lead {
  max-width: 720px;
  font-size: 19px;
}

.tm-partner-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.tm-partner-facts div {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 118px;
  padding: 21px;
  border: 1px solid var(--tm-line);
  border-radius: 18px;
  background: #fbf7ef;
}

.tm-partner-facts strong {
  color: var(--tm-gold);
  font-size: 28px;
}

.tm-partner-facts span {
  color: var(--tm-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tm-legal-primary-button {
  display: inline-flex;
  margin-top: 12px;
  padding: 15px 23px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8b978, #a6752e);
  color: #21180d !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.tm-legal-note,
.tm-legal-version {
  color: var(--tm-muted) !important;
  font-size: 13px;
}

.tm-legal-version {
  margin-top: 54px !important;
  padding-top: 18px;
  border-top: 1px solid var(--tm-line);
}

.tm-legal-footer {
  align-items: flex-start;
  border-top: 1px solid var(--tm-line);
  color: var(--tm-muted);
  font-size: 13px;
  line-height: 1.65;
}

.tm-legal-footer > div {
  display: grid;
}

@media (max-width: 720px) {
  .tm-legal-header,
  .tm-legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tm-legal-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .tm-legal-article {
    padding: 25px 20px;
    border-radius: 22px;
  }

  .tm-legal-article h1 {
    font-size: 37px;
  }

  .tm-partner-facts {
    grid-template-columns: 1fr;
  }
}
