/* Star Realm — shared styling for the compliance / info pages
   (FAQ, Terms & Conditions, Refund Policy, Contact). Celestial dark theme,
   readable long-form prose. Loaded on top of the site's base styles. */

.sr-legal {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #E5DAFF;
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 40px 80px;
}

.sr-legal__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,214,107,.12); border: 1px solid rgba(255,214,107,.4);
  border-radius: 999px; padding: 7px 16px;
  font-weight: 800; font-size: 11.5px; letter-spacing: .14em; color: #FFE9B3;
}
.sr-legal__title {
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1.06; color: #fff; margin: 16px 0 10px;
}
.sr-legal__title em { font-style: normal; color: #FFD66B; }
.sr-legal__meta { font-size: 13px; font-weight: 600; color: #8478ae; margin: 0 0 8px; }
.sr-legal__lead { font-size: 16px; line-height: 1.7; color: #B8A7E8; margin: 10px 0 0; }

/* Body panel */
.sr-legal__panel {
  margin-top: 30px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(201,168,240,.14);
  border-radius: 22px;
  padding: 12px 40px 36px;
}
.sr-legal__panel h2 {
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600;
  font-size: 21px; color: #fff; margin: 34px 0 10px;
  padding-top: 22px; border-top: 1px solid rgba(201,168,240,.10);
}
.sr-legal__panel h2:first-of-type { border-top: none; padding-top: 8px; }
.sr-legal__panel h3 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: 16px; color: #FFD66B; margin: 20px 0 6px; }
.sr-legal__panel p,
.sr-legal__panel li { font-size: 14.5px; line-height: 1.75; color: #CFC4F0; }
.sr-legal__panel p { margin: 0 0 12px; }
.sr-legal__panel ul, .sr-legal__panel ol { margin: 0 0 14px; padding-left: 22px; }
.sr-legal__panel li { margin: 0 0 7px; }
.sr-legal__panel strong { color: #EDE4FF; }
.sr-legal__panel a { color: #FFD66B; text-decoration: none; }
.sr-legal__panel a:hover { text-decoration: underline; }
.sr-legal__panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255,214,107,.10); border: 1px solid rgba(255,214,107,.22);
  color: #FFE9B3; border-radius: 6px; padding: 1px 6px; font-size: 12.5px;
}

/* Table of contents (Terms) */
.sr-legal__toc {
  background: rgba(125,110,190,.08); border: 1px solid rgba(201,168,240,.16);
  border-radius: 14px; padding: 16px 20px; margin: 22px 0 6px;
}
.sr-legal__toc h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; color: #8478ae; font-weight: 800; }
.sr-legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.sr-legal__toc li { margin: 0 0 5px; font-size: 13.5px; }

/* Callout */
.sr-legal__note {
  border-radius: 14px; padding: 14px 18px; margin: 6px 0 16px;
  font-size: 13.5px; line-height: 1.6;
  background: rgba(255,214,107,.08); border: 1px solid rgba(255,214,107,.3); color: #FFE9B3;
}
.sr-legal__note--warn { background: rgba(240,88,142,.08); border-color: rgba(255,143,180,.4); color: #FFC9DC; }
.sr-legal__note--ok   { background: rgba(80,222,150,.08); border-color: rgba(125,230,172,.4); color: #BFF3D6; }

/* FAQ accordion */
.sr-faq__item { border-bottom: 1px solid rgba(201,168,240,.12); }
.sr-faq__q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: none;
  color: #fff; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: 16px;
  padding: 18px 34px 18px 4px; position: relative;
}
.sr-faq__q::after { content: '+'; position: absolute; right: 6px; top: 15px; font-size: 22px; color: #FFD66B; transition: transform .2s; }
.sr-faq__item.is-open .sr-faq__q::after { content: '−'; }
/* Answers are visible by default so the page still reads with JS disabled
   (and for crawlers/reviewers). The script adds .js-faq to the container,
   which switches on collapse behaviour. */
.sr-faq__a { padding: 0 4px 18px; }
.js-faq .sr-faq__a { display: none; }
.js-faq .sr-faq__item.is-open .sr-faq__a { display: block; }
.sr-faq__q { pointer-events: none; }        /* not clickable until enhanced */
.js-faq .sr-faq__q { pointer-events: auto; }
.sr-faq__q::after { content: ''; }           /* no +/- affordance without JS */
.js-faq .sr-faq__q::after { content: '+'; }
.js-faq .sr-faq__item.is-open .sr-faq__q::after { content: '−'; }

/* Contact cards */
.sr-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.sr-contact__card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(201,168,240,.16);
  border-radius: 16px; padding: 20px 22px;
}
.sr-contact__card h3 { margin: 0 0 6px; color: #FFD66B; font-family: 'Fredoka', system-ui, sans-serif; font-size: 15px; }
.sr-contact__card p { margin: 0; font-size: 14px; color: #CFC4F0; word-break: break-word; }

/* Cross-links between the policy pages */
.sr-legal__xlinks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.sr-legal__xlink {
  text-decoration: none; font-weight: 800; font-size: 12.5px; letter-spacing: .04em;
  color: #CFC4F0; background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,240,.18); border-radius: 999px; padding: 9px 18px;
}
.sr-legal__xlink:hover { color: #fff; border-color: rgba(255,214,107,.5); }

@media (max-width: 640px) {
  .sr-legal { padding: 30px 20px 60px; }
  .sr-legal__panel { padding: 8px 22px 26px; }
  .sr-legal__title { font-size: 30px; }
  .sr-legal__toc ol { columns: 1; }
}
