/* The reading pages -- privacy, terms and thank-you -- in the home
   page's colours: its header and buttons (style.css), a soft lime wash, and
   each policy in one card with numbered sections. */
.doc-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -10%, #d2ed8855 0, transparent 420px),
    linear-gradient(180deg, #f3f8ec 0, #fff 460px);
}
.doc-header .button {
  gap: 12px;
}
.doc-main {
  flex: 1;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}
.doc-hero {
  padding-bottom: 32px;
}
.doc-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-hero h1,
.thanks-card h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.doc-lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.doc-card {
  padding: 8px clamp(20px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 60px -32px #12554d59;
  counter-reset: doc;
}
.doc-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.doc-section:first-child {
  border-top: 0;
}
.doc-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.3;
  counter-increment: doc;
}
.doc-section h2::before {
  content: counter(doc, decimal-leading-zero);
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.doc-section p {
  margin: 0 0 12px;
  color: #34463f;
}
.doc-section p:last-child {
  margin-bottom: 0;
}
.doc-card a,
.thanks-card p a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.doc-more a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s;
}
.doc-more a:hover {
  border-color: var(--teal);
}
.doc-more a[aria-current="page"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.doc-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 4.5%;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.doc-footer p {
  margin: 0;
}
.doc-footer a {
  color: var(--teal);
  font-weight: 600;
}
.doc-footer .doc-credit {
  flex-basis: 100%;
  font-size: 12px;
}

/* Thank-you: one card, centred, with a tick. */
.thanks {
  display: grid;
  place-items: center;
}
.thanks-card {
  max-width: 640px;
  padding: clamp(32px, 6vw, 56px) clamp(22px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 60px -32px #12554d59;
  text-align: center;
}
.thanks-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--teal);
  animation: thanks-pop 0.5s ease-out both;
}
.thanks-mark svg {
  width: 36px;
  height: 36px;
}
.thanks-card p {
  margin: 0 auto 12px;
  max-width: 520px;
  color: var(--muted);
}
.thanks-card .doc-lead {
  font-size: 17px;
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.thanks-actions .button {
  gap: 14px;
}
.button.ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--teal);
}
.button.ghost:hover {
  background: var(--teal-light);
}
@keyframes thanks-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .thanks-mark {
    animation: none;
  }
}
@media (max-width: 520px) {
  .doc-header .button {
    display: none;
  }
  .doc-main {
    padding-top: 36px;
  }
  .doc-section h2 {
    font-size: 19px;
  }
  .thanks-actions .button {
    width: 100%;
  }
}
