/* =========================================================
   GoSim Return & Exchange Policy Page
   - Scoped under .rp-page to avoid affecting other pages
   - Brand colors: #F58A3F / #FFA86B
   ========================================================= */

.rp-page{
  --brand:#F58A3F;
  --brand2:#FFA86B;
  --ink:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.12);
  --card:#ffffff;
  --bg:#f6f7fb;
  --shadow: 0 14px 40px rgba(15,23,42,.10);
  --shadow2: 0 10px 24px rgba(15,23,42,.10);
  color: var(--ink);
}

.rp-page *{ box-sizing: border-box; }

.rp-container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.rp-surface{
  background: var(--bg);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.rp-h1{ font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; margin: 10px 0 10px; letter-spacing: .2px; }
.rp-h2{ font-size: clamp(20px, 2.3vw, 28px); margin: 0; line-height: 1.25; }
.rp-h3{ font-size: 18px; margin: 14px 0 8px; line-height: 1.35; }
.rp-lead{ font-size: 16px; color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.rp-muted{ color: var(--muted); }

.rp-ul{ margin: 8px 0 0 18px; padding: 0; line-height: 1.85; color: var(--ink); }
.rp-ul--tight{ line-height: 1.7; }
.rp-ol{ margin: 10px 0 0 18px; padding: 0; line-height: 1.85; }

/* HERO */
.rp-hero{
  background:
    radial-gradient(1100px 520px at 12% 0%, rgba(245,138,63,.28), transparent 60%),
    radial-gradient(900px 480px at 92% 10%, rgba(255,168,107,.25), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f7fb 100%);
  border-bottom: 1px solid var(--line);
}

.rp-hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  padding: 26px 0 18px;
  align-items: center;
}

.rp-badges{ display:flex; flex-wrap: wrap; gap: 8px; }
.rp-badge{
  display:inline-flex; align-items:center; gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.75);
  font-size: 12.5px;
  color: #334155;
}
.rp-badge--brand{
  border-color: rgba(245,138,63,.35);
  background: rgba(245,138,63,.10);
  color: #7c2d12;
  font-weight: 800;
}
.rp-badge--soft{
  border-color: rgba(255,168,107,.45);
  background: rgba(255,168,107,.12);
  color: #7c2d12;
}

.rp-hero-actions{ display:flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.rp-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid rgba(148,163,184,.35);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  font-weight: 800;
}
.rp-btn:hover{ transform: translateY(-1px); }
.rp-btn--primary{
  border-color: rgba(245,138,63,.45);
  background: linear-gradient(135deg, rgba(245,138,63,.95), rgba(255,168,107,.95));
  color: #fff;
}
.rp-btn--ghost{ background: rgba(255,255,255,.65); }

.rp-hero-media{ display:flex; justify-content:flex-end; }
.rp-hero-img{
  width: min(430px, 100%);
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148,163,184,.35);
  background: #fff;
  padding: 10px;
}

.rp-mini-note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.7);
}
.rp-mini-note-title{ font-weight: 900; margin-bottom: 6px; color: #7c2d12; }

/* TOC (anti-run, card style) */
.rp-toc{ background: #fff; border-bottom: 1px solid var(--line); }
.rp-toc-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  padding: 16px 0 12px;
  flex-wrap: wrap;
}
.rp-toc-title{ font-weight: 900; font-size: 18px; color: #0f172a; letter-spacing: .2px; }
.rp-toc-sub{ font-size: 13px; color: #64748b; }

.rp-toc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 0 18px;
}

.rp-toc-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  text-decoration:none;
  border: 1px solid rgba(15,23,42,.12);
  background: linear-gradient(180deg, rgba(245,138,63,.10), rgba(255,255,255,.92));
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 78px;
}
.rp-toc-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.10);
  border-color: rgba(245,138,63,.40);
}

.rp-toc-num{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: #7c2d12;
  background: rgba(245,138,63,.16);
  border: 1px solid rgba(245,138,63,.35);
  flex: 0 0 40px;
}
.rp-toc-text{ min-width: 0; flex: 1 1 auto; }
.rp-toc-label{ font-weight: 900; color: #0f172a; line-height: 1.2; font-size: 15px; }
.rp-toc-desc{ margin-top: 4px; font-size: 12.5px; color: #64748b; line-height: 1.35; }
.rp-toc-arrow{ color: rgba(15,23,42,.45); flex: 0 0 auto; }

/* SECTION */
.rp-section{ padding: 20px 0; }
.rp-section-head{ margin-bottom: 12px; }

.rp-card{
  background: var(--card);
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.30);
  box-shadow: var(--shadow2);
}
.rp-card--pad{ padding: 18px; }

.rp-grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.rp-card-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
}

.rp-ill img{
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.30);
  background: #fff;
  padding: 10px;
}
.rp-caption{ margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.rp-pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.85);
  color: #334155;
  font-size: 12.5px;
  font-weight: 800;
}
.rp-pill--brand{ border-color: rgba(245,138,63,.35); background: rgba(245,138,63,.12); color: #7c2d12; }
.rp-card-title-row{ display:flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

.rp-note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(248,250,252,.85);
}
.rp-note-title{ font-weight: 900; margin-bottom: 6px; }
.rp-note--warn{ border-color: rgba(244,63,94,.25); background: rgba(244,63,94,.06); }
.rp-note--warn .rp-note-title{ color: #9f1239; }
.rp-note--soft{ border-color: rgba(245,138,63,.25); background: rgba(245,138,63,.08); }
.rp-note--soft .rp-note-title{ color: #7c2d12; }

.rp-steps{ display:grid; gap: 10px; margin-top: 10px; }
.rp-step{ display:flex; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid rgba(148,163,184,.30); background: rgba(255,255,255,.75); }
.rp-step-no{ width: 34px; height: 34px; border-radius: 12px; display:flex; align-items:center; justify-content:center; background: rgba(245,138,63,.14); border: 1px solid rgba(245,138,63,.28); font-weight: 900; color: #7c2d12; flex: 0 0 34px; }
.rp-step-title{ font-weight: 900; margin-bottom: 3px; }
.rp-step-text{ color: var(--muted); line-height: 1.65; }

/* Refund table */
.rp-refund-grid{ display:grid; grid-template-columns: .95fr 1.05fr; gap: 14px; align-items: start; }
.rp-table-wrap{ overflow:auto; border-radius: 18px; border: 1px solid rgba(148,163,184,.30); background: #fff; }
.rp-table{ width: 100%; border-collapse: collapse; min-width: 820px; background: #fff; }
.rp-table thead th{ text-align:left; padding: 12px 12px; font-size: 13px; color: #0f172a; background: rgba(245,138,63,.12); border-bottom: 1px solid rgba(148,163,184,.30); }
.rp-table td{ padding: 12px 12px; border-bottom: 1px solid rgba(148,163,184,.22); vertical-align: top; color: #0f172a; line-height: 1.6; font-size: 13.5px; }
.rp-table tbody tr:hover td{ background: rgba(248,250,252,.8); }

/* FAQ */
.rp-faq details{ border: 1px solid rgba(148,163,184,.30); background: rgba(255,255,255,.78); border-radius: 18px; padding: 12px 14px; margin: 10px 0; }
.rp-faq summary{ cursor: pointer; font-weight: 900; color: #0f172a; outline: none; }
.rp-faq-a{ margin-top: 10px; color: var(--muted); line-height: 1.75; }

.rp-footer-meta{ margin-top: 16px; padding: 10px 2px 0; display:flex; align-items:center; flex-wrap: wrap; gap: 10px; }
.rp-link{ color: #7c2d12; font-weight: 900; text-decoration: none; }
.rp-link:hover{ text-decoration: underline; }

/* Responsive */
@media (max-width: 980px){
  .rp-hero-grid{ grid-template-columns: 1fr; }
  .rp-hero-media{ justify-content:flex-start; }
  .rp-card-grid{ grid-template-columns: 1fr; }
  .rp-grid-2{ grid-template-columns: 1fr; }
  .rp-refund-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .rp-container{ width: calc(100% - 24px); }
  .rp-toc-grid{ grid-template-columns: 1fr; }
}
