/* Static pages (/privacy, /terms, /p/*) — legal doc body inside Mithavo shell */

.legal-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.legal-hero .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.legal-hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(1200px 280px at 12% 0%, hsla(16, 57%, 51%, 0.06), transparent 60%),
    linear-gradient(180deg, var(--background-alt), var(--background));
  border-bottom: 1px solid var(--hairline);
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  margin: 0.75rem 0 0.875rem;
  line-height: 1.1;
}

.legal-hero__lead {
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}

.legal-hero__meta {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.legal-hero__meta strong {
  color: var(--foreground);
  font-weight: 500;
}

.doc {
  padding: 2.5rem 0 5rem;
}

.doc__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .doc__container {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .doc__container {
    grid-template-columns: 17rem minmax(0, 44rem);
    gap: 4rem;
    justify-content: center;
  }
}

.doc__sidebar {
  position: relative;
}

@media (min-width: 900px) {
  .doc__sidebar {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow: auto;
  }
}

.toc__label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
}

.toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.toc__link {
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.toc__link:hover {
  color: var(--foreground);
  background: hsla(16, 57%, 51%, 0.06);
}

.toc__link.is-active {
  color: var(--foreground);
  border-left-color: var(--primary);
  background: hsla(16, 57%, 51%, 0.08);
  font-weight: 500;
}

.toc__progress {
  height: 2px;
  background: var(--hairline);
  border-radius: 999px;
  margin: 1rem 0;
  overflow: hidden;
}

.toc__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.1s linear;
}

.toc__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--foreground);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.toc__cta:hover {
  border-color: hsla(16, 57%, 51%, 0.35);
  background: hsla(16, 57%, 51%, 0.06);
}

.doc__article {
  min-width: 0;
}

.static-page-body > :first-child {
  margin-top: 0;
}

.static-page-body .lead,
.static-page-body p.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0 0 1.5rem;
}

.static-page-body h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  scroll-margin-top: 6rem;
}

.static-page-body h2:first-of-type {
  margin-top: 0;
}

.static-page-body h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
  scroll-margin-top: 6rem;
}

.static-page-body p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--foreground);
}

.static-page-body em {
  color: var(--muted-foreground);
  font-style: normal;
  font-size: 0.875rem;
}

.static-page-body a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid hsla(16, 57%, 51%, 0.25);
}

.static-page-body a:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
}

.static-page-body ul,
.static-page-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.static-page-body li {
  margin-bottom: 0.375rem;
}

.static-page-body li strong {
  color: var(--foreground);
  font-weight: 500;
}

.static-page-body blockquote {
  margin: 1.25rem 0 1.5rem;
  padding: 0.875rem 1rem 0.875rem 1.125rem;
  border-left: 3px solid var(--primary);
  background: hsla(16, 57%, 51%, 0.06);
  border-radius: 0 8px 8px 0;
}

.static-page-body blockquote p {
  margin: 0;
  color: var(--foreground);
}
