/* ─── Service / legal page layout ───────────────────────────────────────── */

.tm-page-main {
  padding: 56px 24px 96px;
  max-width: 720px;
  margin: 0 auto;
}

/* === Breadcrumbs (Rank Math output) === */
.tm-breadcrumbs {
  margin-bottom: 32px;
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
  letter-spacing: 0.04em;
}
.tm-breadcrumbs a,
.tm-breadcrumbs .rank-math-breadcrumb a {
  color: var(--wp--preset--color--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.tm-breadcrumbs a:hover {
  color: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
}
.tm-breadcrumbs .separator,
.tm-breadcrumbs > * + *::before {
  margin: 0 8px;
  color: var(--wp--preset--color--border);
}
.tm-breadcrumbs .last,
.tm-breadcrumbs .rank-math-breadcrumb .last {
  color: var(--wp--preset--color--text);
  font-weight: 500;
}

/* === Header === */
.tm-legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.tm-legal-h1 {
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: var(--wp--preset--color--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.tm-legal-meta {
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
  letter-spacing: 0.04em;
}
.tm-legal-meta time {
  color: var(--wp--preset--color--text);
  font-weight: 500;
}

/* === Prose typography === */
.tm-legal-prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-body);
}

.tm-legal-prose > * + * {
  margin-top: 1.25em;
}

.tm-legal-prose h2 {
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: 32px;
  font-weight: 500;
  color: var(--wp--preset--color--text);
  margin: 56px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.tm-legal-prose h2:first-child {
  margin-top: 0;
}

.tm-legal-prose h3 {
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: 24px;
  font-weight: 500;
  color: var(--wp--preset--color--text);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.tm-legal-prose h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  margin: 32px 0 10px;
}

.tm-legal-prose p {
  margin: 0 0 1em;
}

.tm-legal-prose a {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
.tm-legal-prose a:hover {
  color: var(--wp--preset--color--accent-dark);
}

.tm-legal-prose strong {
  color: var(--wp--preset--color--text);
  font-weight: 600;
}

.tm-legal-prose ul,
.tm-legal-prose ol {
  margin: 0 0 1em;
  padding-left: 24px;
}
.tm-legal-prose li {
  margin-bottom: 0.5em;
}
.tm-legal-prose li::marker {
  color: var(--wp--preset--color--accent);
}

.tm-legal-prose blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  background: var(--wp--preset--color--bg-alt);
  border-left: 3px solid var(--wp--preset--color--accent);
  font-style: italic;
  color: var(--wp--preset--color--text);
}

.tm-legal-prose hr {
  border: none;
  border-top: 1px solid var(--wp--preset--color--border);
  margin: 48px 0;
}

.tm-legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.tm-legal-prose th,
.tm-legal-prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.tm-legal-prose th {
  background: var(--wp--preset--color--bg-alt);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--wp--preset--color--text-muted);
}

/* === Mobile === */
@media (max-width: 768px) {
  .tm-page-main {
    padding: 32px 14px 64px;
  }
  .tm-legal-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
  .tm-legal-h1 {
    font-size: 32px;
  }
  .tm-legal-prose {
    font-size: 15px;
  }
  .tm-legal-prose h2 {
    font-size: 26px;
    margin: 40px 0 14px;
  }
  .tm-legal-prose h3 {
    font-size: 20px;
    margin: 32px 0 10px;
  }
}
