/* =============================================================
   MSIIA — Refund Policy Page
   Same legal-page architecture as privacy.css / terms.css
   Prefix: rp-  (refund-policy)
   ============================================================= */

/* ── Motion reveal (matches privacy/terms — loads on this page only) */

.motion-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   650ms cubic-bezier(.16, 1, .3, 1),
    transform 650ms cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */

.rp-hero {
  position: relative;
  padding: clamp(90px, 14vw, 150px) 0 clamp(64px, 9vw, 110px);
  border-bottom: 1px solid var(--gold-border);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 100% -5%,  rgba(200, 169, 110, 0.10) 0%, transparent 52%),
    radial-gradient(ellipse 45% 55% at -2% 100%,  rgba(200, 169, 110, 0.05) 0%, transparent 48%),
    var(--obsidian);
}

.rp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(200, 169, 110, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 169, 110, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 72% 80% at 88% 44%, rgba(0,0,0,.65), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

.rp-hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(200, 169, 110, 0.28) 38%,
    rgba(200, 169, 110, 0.18) 62%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.rp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: start;
}

.rp-hero-copy { min-width: 0; }

/* Decorative concentric rings */
.rp-hero-ornament {
  position: relative;
  width: clamp(180px, 22vw, 310px);
  aspect-ratio: 1;
  flex-shrink: 0;
  align-self: center;
}

.rp-hero-ornament span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 110, 0.10);
}

.rp-hero-ornament span:nth-child(2) {
  inset: 14%;
  border-color: rgba(200, 169, 110, 0.08);
  animation: rp-ring-pulse 7s ease-in-out infinite;
}

.rp-hero-ornament span:nth-child(3) {
  inset: 30%;
  border-color: rgba(200, 169, 110, 0.14);
  animation: rp-ring-pulse 7s ease-in-out 2.3s infinite;
}

.rp-hero-ornament span:nth-child(4) {
  inset: 46%;
  border-color: rgba(200, 169, 110, 0.22);
  background: radial-gradient(circle, rgba(200, 169, 110, 0.06), transparent 65%);
  animation: rp-ring-pulse 7s ease-in-out 4.6s infinite;
}

.rp-hero-ornament svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 28%;
  color: var(--gold);
  opacity: 0.55;
}

@keyframes rp-ring-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.38; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-hero-ornament span { animation: none; }
}

/* Eyebrow */
.rp-eyebrow {
  margin: 0 0 var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Title */
.rp-title {
  margin: 0 0 clamp(18px, 2.5vw, 28px);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 9.8rem);
  line-height: 0.88;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--text);
}

.rp-title .rp-title-accent { color: var(--gold); }

/* Subtitle */
.rp-subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  color: var(--text-subtle);
  font-style: italic;
  max-width: 58ch;
  line-height: 1.85;
}

/* Meta */
.rp-meta {
  margin: clamp(18px, 2.5vw, 26px) 0 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.65);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-meta::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Status pills */
.rp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(20px, 3vw, 32px);
}

.rp-pill {
  padding: 5px 14px;
  border: 1px solid var(--gold-border);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-ghost);
  white-space: nowrap;
}

/* ── 30-day badge ─────────────────────────────────────────── */

.rp-window-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(16px, 2.5vw, 24px);
  padding: 9px 18px;
  border: 1px solid rgba(200, 169, 110, 0.35);
  background: rgba(200, 169, 110, 0.06);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.rp-window-badge svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Summary panel ────────────────────────────────────────── */

.rp-summary-section {
  padding: clamp(48px, 7vw, 80px) 0;
  background: rgba(9, 9, 12, 0.70);
  border-bottom: 1px solid var(--gold-border);
}

.rp-summary-label {
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.55);
}

.rp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold-border);
  border: 1px solid var(--gold-border);
}

.rp-summary-card {
  background: rgba(7, 7, 9, 0.92);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 2.5vw, 28px);
  backdrop-filter: blur(12px);
  position: relative;
  transition: background var(--transition);
}

.rp-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.rp-summary-card:hover { background: rgba(12, 11, 14, 0.98); }
.rp-summary-card:hover::before { opacity: 1; }

.rp-summary-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: var(--space-md);
}

.rp-summary-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-summary-heading {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.rp-summary-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-subtle);
  font-style: italic;
  line-height: 1.72;
}

/* ── Content layout ───────────────────────────────────────── */

.rp-content-section {
  padding: clamp(60px, 8vw, 100px) 0 clamp(60px, 8vw, 100px);
}

.rp-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

/* ── Sidebar nav ──────────────────────────────────────────── */

.rp-sidebar {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 169, 110, 0.2) transparent;
}

.rp-sidebar::-webkit-scrollbar { width: 3px; }
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }
.rp-sidebar::-webkit-scrollbar-thumb { background: rgba(200, 169, 110, 0.2); }

.rp-nav-inner {
  padding: clamp(18px, 2vw, 24px);
  background: rgba(7, 7, 9, 0.82);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
}

.rp-nav-header {
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gold-border);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.5);
}

.rp-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-nav-item { margin: 0; }

.rp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
  line-height: 1.45;
}

.rp-nav-link:hover {
  color: var(--text-subtle);
  border-left-color: rgba(200, 169, 110, 0.4);
  background: rgba(200, 169, 110, 0.04);
}

.rp-nav-link.is-active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--gold-ghost);
}

.rp-nav-num {
  flex-shrink: 0;
  width: 18px;
  text-align: right;
  opacity: 0.4;
  font-size: 0.54rem;
}

.rp-nav-link.is-active .rp-nav-num {
  opacity: 0.8;
  color: var(--gold);
}

/* ── Legal section cards ──────────────────────────────────── */

.rp-sections { min-width: 0; }

.rp-section { margin-bottom: clamp(20px, 3vw, 32px); }

.rp-card {
  position: relative;
  background: rgba(9, 9, 12, 0.72);
  border: 1px solid var(--gold-border);
  border-top: 2px solid rgba(200, 169, 110, 0.22);
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(18px);
  transition: border-color var(--transition);
}

.rp-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.rp-card:hover { border-color: rgba(200, 169, 110, 0.28); }

.rp-section-num {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-section-num::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--gold-border);
}

.rp-card h2 {
  margin: 0 0 clamp(18px, 2.5vw, 28px);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 0.93;
  color: var(--text);
}

.rp-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: var(--text-subtle);
  font-style: italic;
  line-height: 1.85;
  max-width: 70ch;
}

.rp-body + .rp-body { margin-top: 1.05rem; }

/* 30-day highlight inside section 02 */
.rp-policy-statement {
  margin: 0 0 1.2rem;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(200, 169, 110, 0.06);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-subtle);
  line-height: 1.8;
}

.rp-policy-statement strong {
  color: var(--text);
  font-weight: 600;
}

/* Lists */
.rp-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.rp-list li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-style: italic;
  color: var(--text-subtle);
  line-height: 1.75;
}

.rp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.rp-list.rp-list-check li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: none;
  border: 1px solid rgba(200, 169, 110, 0.5);
  transform: translateY(-50%);
  top: 50%;
}

/* Request details table */
.rp-request-fields {
  margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gold-border);
  border: 1px solid var(--gold-border);
}

.rp-field {
  background: rgba(7, 7, 9, 0.88);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-field::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.rp-note {
  margin-top: 1.4rem;
  padding: 14px 18px;
  border-left: 2px solid rgba(200, 169, 110, 0.3);
  background: rgba(200, 169, 110, 0.04);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(200, 169, 110, 0.65);
  line-height: 1.7;
}

/* ── Important notice panel ───────────────────────────────── */

.rp-notice { margin-bottom: clamp(20px, 3vw, 32px); }

.rp-notice-card {
  position: relative;
  background: rgba(9, 9, 12, 0.82);
  border: 1px solid rgba(200, 169, 110, 0.28);
  border-top: 2px solid rgba(200, 169, 110, 0.45);
  border-left: 3px solid rgba(200, 169, 110, 0.45);
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(18px);
}

.rp-notice-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.rp-notice-eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-notice-eyebrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-notice-card h2 {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--text);
}

.rp-notice-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: var(--text-subtle);
  font-style: italic;
  line-height: 1.85;
  max-width: 72ch;
}

.rp-notice-body + .rp-notice-body { margin-top: 1rem; }

/* ── Contact panel ────────────────────────────────────────── */

.rp-contact-section {
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--gold-border);
  background: rgba(7, 7, 9, 0.62);
}

.rp-contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(32px, 5vw, 52px) clamp(28px, 5vw, 52px);
  border: 1px solid var(--gold-border);
  border-top: 2px solid rgba(200, 169, 110, 0.28);
  background: rgba(9, 9, 12, 0.80);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.rp-contact-panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--gold);
}

.rp-contact-panel::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(200, 169, 110, 0.15), transparent);
  pointer-events: none;
}

.rp-contact-eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.rp-contact-heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: var(--text);
}

.rp-contact-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-style: italic;
  color: var(--text-subtle);
  line-height: 1.8;
  max-width: 54ch;
}

.rp-contact-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

/* Related docs */
.rp-related {
  margin-top: clamp(28px, 3.5vw, 40px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--gold-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.rp-related-label {
  flex: 0 0 100%;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.5);
  margin-bottom: 4px;
}

.rp-related a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.25);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.rp-related a:hover {
  color: var(--gold-bright);
  border-bottom-color: rgba(200, 169, 110, 0.55);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .rp-hero-inner { grid-template-columns: 1fr; }
  .rp-hero-ornament { display: none; }
  .rp-layout { grid-template-columns: 1fr; }

  .rp-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .rp-nav-inner { overflow-x: auto; padding: var(--space-md); }
  .rp-nav-header { display: none; }

  .rp-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .rp-nav-item { flex-shrink: 0; }

  .rp-nav-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 5px 11px;
    margin-left: 0;
    white-space: nowrap;
  }

  .rp-nav-link:hover {
    border-left-color: transparent;
    border-bottom-color: rgba(200, 169, 110, 0.4);
  }

  .rp-nav-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
  }

  .rp-nav-num { display: none; }
  .rp-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-request-fields { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rp-summary-grid { grid-template-columns: 1fr; }
  .rp-contact-panel { grid-template-columns: 1fr; }
  .rp-contact-action { align-items: stretch; }
  .rp-contact-action .btn { justify-content: center; }
  .rp-card h2 { font-size: clamp(1.6rem, 6.5vw, 2.4rem); }
}

@media (max-width: 480px) {
  .rp-pills { gap: 6px; }
  .rp-pill { font-size: 0.53rem; padding: 4px 10px; }
  .rp-title { font-size: clamp(3.6rem, 17vw, 5.5rem); }
  .rp-nav-link { font-size: 0.56rem; padding: 4px 8px; }
}

@media (max-width: 360px) {
  .rp-title { font-size: clamp(3rem, 18vw, 4.8rem); }
}
