/**
 * Pool Ready Home - Privacy Policy page template
 * Last-updated/intro, table of contents + policy body, closing requests
 * panel.
 * (The shared page banner lives in assets/css/page-banner.css.)
 */

/* ==========================================================================
   1. Policy intro
   ========================================================================== */

.prh-policy__updated {
  margin-bottom: var(--prh-space-2);
  color: var(--prh-teal);
  font-size: var(--prh-fs-sm);
  font-weight: var(--prh-fw-semibold);
}

.prh-policy__intro {
  max-width: 46rem;
  margin-bottom: var(--prh-space-10);
  color: var(--prh-grey-500);
  font-size: var(--prh-fs-lead);
}

/* ==========================================================================
   2. Table of contents + body layout
   ========================================================================== */

.prh-policy__layout {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
}

.prh-policy__toc-inner {
  position: sticky;
  top: calc(var(--prh-header-height) + var(--prh-space-6));
  border-radius: var(--prh-radius-lg);
  background: var(--prh-grey-50);
  padding: var(--prh-space-6);
}

.prh-policy__toc-label {
  margin-bottom: var(--prh-space-3);
  color: var(--prh-ink);
  font-size: var(--prh-fs-xs);
  font-weight: var(--prh-fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prh-policy__toc-inner ol {
  display: flex;
  flex-direction: column;
  gap: var(--prh-space-2);
  margin: 0;
  padding-left: 1.1em;
}

.prh-policy__toc-inner li {
  font-size: var(--prh-fs-sm);
}

.prh-policy__toc-inner a {
  color: var(--prh-grey-500);
  text-decoration: none;
}

.prh-policy__toc-inner a:hover {
  color: var(--prh-teal);
  text-decoration: underline;
}

.prh-policy__section {
  padding-bottom: var(--prh-space-8);
  margin-bottom: var(--prh-space-8);
  border-bottom: var(--prh-border);
  scroll-margin-top: calc(var(--prh-header-height) + var(--prh-space-4));
}

.prh-policy__section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.prh-policy__section h2 {
  margin-bottom: var(--prh-space-4);
  font-size: var(--prh-fs-h4);
}

.prh-policy__section p {
  margin-bottom: var(--prh-space-4);
  color: var(--prh-grey-500);
}

.prh-policy__section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .prh-policy__layout {
    grid-template-columns: 1fr;
  }

  .prh-policy__toc-inner {
    position: static;
  }
}

/* ==========================================================================
   3. Closing requests panel
   ========================================================================== */

.prh-requests__panel {
  max-width: 40rem;
  margin-inline: auto;
  border-radius: var(--prh-radius-xl);
  background: var(--prh-grey-50);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
}

.prh-requests__text {
  margin-bottom: var(--prh-space-6);
  color: var(--prh-grey-500);
}

.prh-requests__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--prh-space-5);
}

.prh-requests__item {
  display: inline-flex;
  align-items: center;
  gap: var(--prh-space-2);
  margin: 0;
  color: var(--prh-ink);
  font-weight: var(--prh-fw-semibold);
}

.prh-requests__item a {
  color: inherit;
  text-decoration: none;
}

.prh-requests__item a:hover {
  color: var(--prh-teal);
}

.prh-requests__item svg {
  color: var(--prh-teal);
}
