/* Shared legal link; existing footer layout stays in style.css. */
.footer-legal {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 216, 234, 0.18);
  font-size: var(--font-xs);
  text-align: left;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--footer-link);
  text-decoration: none;
  text-underline-offset: 0.25em;
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

.footer-legal a:focus-visible {
  outline-color: var(--footer-link);
}

/* Scoped to the policy page, using the site's existing palette and type. */
.privacy-page .site-header {
  opacity: 1;
  transform: none;
}

.privacy-main {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.privacy-document {
  width: min(48rem, calc(100% - 4rem));
  margin: 0 auto;
  text-align: left;
}

.privacy-heading {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-bottom: 1.25rem;
  color: var(--ink-muted);
  font-size: var(--font-xs);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.privacy-back:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.privacy-heading h1 {
  margin: 0;
  font-size: var(--font-page-hero);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.privacy-heading .privacy-date {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: var(--font-sm);
  text-align: left;
}

.privacy-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-muted);
  overflow-wrap: break-word;
}

.privacy-content h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  line-height: 1.4;
  font-weight: 600;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin: 0 0 1rem;
  text-align: left;
  hyphens: none;
}

.privacy-content p:last-child {
  margin-bottom: 0;
}

.privacy-content a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.privacy-content a:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .footer-legal {
    justify-content: flex-start;
  }

  .privacy-document {
    width: min(48rem, calc(100% - 2.5rem));
  }
}

@media (max-width: 480px) {
  .privacy-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .privacy-heading {
    margin-bottom: 2rem;
  }
}
