/* Long-form content pages (terms, privacy, GDPR, cookie policy, etc.).
 * Loaded by inc/enqueue.php for any page that uses the default page.php
 * template. Targets .pi-page-content — the wrapper around the WP editor
 * output — so it can't accidentally bleed into bespoke page templates. */

/* ===== Page chrome ===== */
.pi-page-section { padding: 96px 0 80px; }
.pi-page-section .container { max-width: 880px; }
.pi-page-section .section-head { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.pi-page-section .section-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 44px; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--anthracite-100); margin: 0;
}
.pi-page-section .section-head .pi-page-meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-text-subtle);
  margin-bottom: 14px;
}

/* ===== Body content ===== */
.pi-page-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--anthracite-90);
}

.pi-page-content > * { margin: 0; }
.pi-page-content > * + * { margin-top: 18px; }

/* Headings — establish a clear hierarchy below the page H1. */
.pi-page-content h2,
.pi-page-content h3,
.pi-page-content h4,
.pi-page-content h5,
.pi-page-content h6 {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.01em; color: var(--anthracite-100);
  line-height: 1.25;
}
.pi-page-content h2 { font-size: 28px; margin: 48px 0 12px; }
.pi-page-content h3 { font-size: 22px; margin: 36px 0 10px; }
.pi-page-content h4 { font-size: 18px; margin: 28px 0 8px; }
.pi-page-content h5 { font-size: 16px; margin: 24px 0 6px; }
.pi-page-content h6 { font-size: 14px; margin: 20px 0 6px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-subtle); }
.pi-page-content > h2:first-child,
.pi-page-content > h3:first-child { margin-top: 0; }

/* Paragraphs */
.pi-page-content p { line-height: 1.7; }

/* Inline emphasis — keep <strong> readable, give .heading (used by the
 * editor as inline section labels inside <li>) a sub-heading look. */
.pi-page-content strong { font-weight: 600; color: var(--anthracite-100); }
.pi-page-content em { font-style: italic; }
.pi-page-content strong.heading {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--anthracite-100);
  letter-spacing: -0.005em;
  margin: 4px 0 6px;
}

/* Links */
.pi-page-content a {
  color: var(--anthracite-100);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.22);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--motion-base) var(--ease-standard),
              text-decoration-color var(--motion-base) var(--ease-standard);
}
.pi-page-content a:hover {
  color: var(--green-100);
  text-decoration-color: var(--green-100);
}

/* ===== Lists =====
 * Comfortable, intentional indentation. Nested lists deepen a single step
 * (browser default 40px is too generous and looks messy at 3+ levels). */
.pi-page-content ul,
.pi-page-content ol {
  padding-left: 28px;
  margin: 16px 0;
}
.pi-page-content li {
  margin: 0 0 10px;
  line-height: 1.65;
  padding-left: 4px;
}
.pi-page-content li:last-child { margin-bottom: 0; }
.pi-page-content li > p { margin: 0 0 8px; }
.pi-page-content li > p:last-child { margin-bottom: 0; }

/* Nested lists — calmer top spacing + smaller indent step. */
.pi-page-content li > ol,
.pi-page-content li > ul {
  margin-top: 10px;
  margin-bottom: 4px;
  padding-left: 22px;
}

/* List markers — soften from harsh black, keep number/bullet visible. */
.pi-page-content ul                 { list-style: disc; }
.pi-page-content ul ul              { list-style: circle; }
.pi-page-content ul ul ul           { list-style: square; }
.pi-page-content ol                 { list-style: decimal; }
.pi-page-content ol ol              { list-style: lower-alpha; }
.pi-page-content ol ol ol           { list-style: lower-roman; }
.pi-page-content ul li::marker,
.pi-page-content ol li::marker {
  color: var(--color-text-subtle);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ===== Editor-flagged blocks =====
 * .block is used by the WP editor as a callout (e.g. contact details on
 * /terms/). Light off-white card with a green accent rule. */
.pi-page-content .block {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--off-white-60);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--green-100);
  border-radius: 10px;
}
.pi-page-content .block p { margin: 0 0 8px; }
.pi-page-content .block p:last-child { margin-bottom: 0; }

/* ===== Tables ===== */
.pi-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.55;
}
.pi-page-content th,
.pi-page-content td {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.pi-page-content th {
  background: var(--off-white-60);
  font-weight: 600;
  color: var(--anthracite-100);
  font-family: var(--font-display);
  letter-spacing: -0.005em;
}
.pi-page-content tr:nth-child(even) td { background: var(--off-white-40); }

/* ===== Blockquote ===== */
.pi-page-content blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--anthracite-100);
  color: var(--color-text-muted);
  font-style: italic;
}
.pi-page-content blockquote p { margin: 0 0 10px; }
.pi-page-content blockquote p:last-child { margin-bottom: 0; }

/* ===== Misc ===== */
.pi-page-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

.pi-page-content code,
.pi-page-content pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--off-white-100);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.pi-page-content code { padding: 2px 6px; }
.pi-page-content pre {
  padding: 14px 16px;
  margin: 20px 0;
  overflow-x: auto;
  line-height: 1.55;
}
.pi-page-content pre code { padding: 0; border: none; background: transparent; }

.pi-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .pi-page-section { padding: 64px 0 48px; }
  .pi-page-section .container { padding: 0 20px; }
  .pi-page-section .section-head { margin-bottom: 28px; padding-bottom: 18px; }
  .pi-page-section .section-head h1 { font-size: 30px; }

  .pi-page-content { font-size: 15px; }
  .pi-page-content h2 { font-size: 22px; margin-top: 36px; }
  .pi-page-content h3 { font-size: 18px; margin-top: 28px; }
  .pi-page-content h4 { font-size: 16px; }
  .pi-page-content strong.heading { font-size: 16px; }

  .pi-page-content ul,
  .pi-page-content ol { padding-left: 22px; }
  .pi-page-content li > ol,
  .pi-page-content li > ul { padding-left: 18px; }

  .pi-page-content .block { padding: 16px 18px; }
  .pi-page-content blockquote { padding-left: 16px; }

  /* Tables — wrap in a horizontal scroll rather than squashing. */
  .pi-page-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
