/* EngageGrove — Refund Policy */

.rp-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.rp-hero {
  position: relative;
  overflow: hidden;
}

.rp-hero-inner {
  padding-top: 7.5rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.rp-hero-title {
  margin-top: 0.875rem;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.rp-hero-desc {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.rp-meta {
  margin-top: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.rp-body {
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
}

.rp-body-glow {
  pointer-events: none;
  position: absolute;
  inset: -8% 20% auto;
  height: 36%;
  background: radial-gradient(ellipse 50% 55% at 50% 0%, var(--glow), transparent 72%);
}

.rp-layout {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.rp-toc {
  position: relative;
}

.rp-toc-mobile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px oklch(0.3 0.05 20 / 0.05);
}

.rp-toc-mobile summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  list-style: none;
}

.rp-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.rp-toc-mobile summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
}

.rp-toc-mobile[open] summary::after {
  content: "–";
}

.rp-toc-desktop {
  display: none;
}

.rp-toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.rp-toc-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.rp-toc-desktop .rp-toc-nav {
  margin-top: 0;
}

.rp-toc-nav a {
  display: block;
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color 0.15s ease, background 0.15s ease;
}

.rp-toc-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.rp-toc-nav a:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

.rp-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 1px 2px oklch(0.3 0.05 20 / 0.05);
  max-width: 48rem;
}

.rp-section + .rp-section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.rp-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.25;
  scroll-margin-top: 5.5rem;
}

.rp-section h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--foreground);
}

.rp-section p {
  margin-top: 0.85rem;
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.rp-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
  padding-left: 1.15rem;
}

.rp-list li {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.rp-cards {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.rp-cards li {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--background);
  padding: 0.8rem 0.95rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--foreground);
  font-weight: 500;
}

.rp-callout {
  margin-top: 1.1rem;
  border: 1px solid color-mix(in oklch, var(--primary) 28%, var(--border));
  border-radius: 0.95rem;
  background: color-mix(in oklch, var(--primary-soft) 55%, white);
  padding: 0.9rem 1rem;
}

.rp-callout p {
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.55;
}

.rp-steps {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.rp-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
  padding: 1rem 1.05rem;
}

.rp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.rp-steps h3 {
  margin-top: 0.15rem;
}

.rp-steps p {
  margin-top: 0.3rem;
}

.rp-cta {
  margin-top: 1.25rem;
  display: inline-flex;
}

@media (min-width: 640px) {
  .rp-hero-title {
    font-size: 2.85rem;
  }

  .rp-content {
    padding: 2rem 1.75rem 2.25rem;
  }

  .rp-section h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .rp-hero-inner {
    padding-top: 8.25rem;
    padding-bottom: 3.5rem;
  }

  .rp-hero-title {
    font-size: 3.25rem;
  }

  .rp-body {
    padding-bottom: 6rem;
  }

  .rp-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .rp-toc-mobile {
    display: none;
  }

  .rp-toc-desktop {
    display: block;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    padding: 1.1rem 0.95rem;
    box-shadow: 0 1px 2px oklch(0.3 0.05 20 / 0.05);
  }

  .rp-content {
    max-width: none;
    border-radius: 1.6rem;
    padding: 2.25rem 2.25rem 2.5rem;
  }
}
