/* Legal documents only: shared site styles retain the header and footer. */
.legal-shell .legal-updated {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.legal-shell .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-shell .legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-shell .legal-nav a:hover,
.legal-shell .legal-nav a[aria-current="page"] {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}

.legal-shell a:focus-visible,
.legal-shell button:focus-visible {
  outline: 3px solid var(--color-accent-deep);
  outline-offset: 4px;
}

.legal-shell .legal-list,
.legal-shell .legal-details {
  max-width: 760px;
  margin: 1.25rem 0 0;
  padding: 0;
}

.legal-shell .legal-list {
  list-style: none;
}

.legal-shell .legal-list > li,
.legal-shell .legal-details > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.8rem 0;
}

.legal-shell .legal-list > li + li,
.legal-shell .legal-details > div + div {
  border-top: 1px solid var(--color-border);
}

.legal-shell .legal-list > li > strong,
.legal-shell .legal-details dt {
  font-weight: 700;
}

.legal-shell .legal-list > li > p,
.legal-shell .legal-details dd {
  margin: 0;
  color: inherit;
  font-size: clamp(0.96rem, 1.12vw, 1.06rem);
  line-height: 1.65;
}

.legal-shell .legal-template {
  max-width: 760px;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--color-accent-soft);
}

.legal-shell .legal-template p {
  margin: 0;
}

.legal-shell .legal-cookie-button {
  margin-top: 1.25rem;
}

.legal-shell p,
.legal-shell dd,
.legal-shell li,
.legal-shell code {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .legal-shell .legal-nav {
    gap: 0.5rem;
  }

  .legal-shell .legal-nav a {
    padding: 0.6rem 0.85rem;
  }
}
