/* ========================================
   Refund Policy – Legal page
   ======================================== */

.refund-hero {
  position: relative;
  padding: 72px 0 56px;
  background: var(--color-bg);
  overflow: hidden;
  border-bottom: 1px solid rgba(7, 17, 31, 0.05);
}

.refund-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 77, 82, 0.07), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.05), transparent 40%);
  pointer-events: none;
}

.refund-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.refund-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(255, 77, 82, 0.14);
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.refund-hero h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--color-navy-deep);
  margin-bottom: 14px;
}

.refund-hero-desc {
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 16px;
}

.refund-updated {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-soft);
}

.refund-layout {
  padding: 40px 0 72px;
  background: var(--color-bg);
}

.refund-layout-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 1120px;
}

.refund-toc {
  position: sticky;
  top: 96px;
}

.refund-toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 12px;
}

.refund-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.refund-toc-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.refund-toc-nav a:hover,
.refund-toc-nav a:focus-visible {
  color: var(--color-navy-deep);
  background: rgba(255, 77, 82, 0.05);
  outline: none;
}

.refund-toc-nav a.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: rgba(255, 77, 82, 0.06);
}

.refund-toc-mobile {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

.refund-toc-mobile summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-navy-deep);
}

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

.refund-toc-mobile summary::after {
  content: "▾";
  float: right;
  color: var(--color-text-soft);
}

.refund-toc-mobile[open] summary::after {
  content: "▴";
}

.refund-toc-mobile .refund-toc-nav {
  padding: 0 10px 12px;
}

.refund-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
}

.refund-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.refund-card h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy-deep);
  margin-bottom: 14px;
  line-height: 1.25;
}

.refund-card p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.refund-card p:last-child {
  margin-bottom: 0;
}

.refund-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
}

.refund-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.refund-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.refund-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0 22px;
  padding: 0;
}

.refund-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
}

.refund-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFF0F1;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.refund-steps h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy-deep);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.refund-steps p {
  margin-bottom: 0;
  font-size: 14.5px;
}

.refund-cta {
  display: inline-flex;
}

.footer-legal a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: #FF8A8E;
}

@media (max-width: 960px) {
  .refund-layout-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .refund-toc {
    position: static;
  }

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

  .refund-toc-mobile {
    display: block;
  }

  .refund-hero {
    padding: 56px 0 40px;
  }

  .refund-layout {
    padding: 28px 0 56px;
  }

  .refund-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 720px) {
  .refund-hero-desc,
  .refund-card p {
    font-size: 16px;
  }

  .refund-cta {
    width: 100%;
    justify-content: center;
  }

  .refund-steps li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refund-toc-nav a {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.refund-layout) {
    scroll-behavior: smooth;
  }
}
