/* Beyond Play Studios — shared styles for legal and content pages.
   Themed to match the coming soon page: same palette, same logo, quieter
   background so long-form legal text stays comfortable to read. */

:root {
  /* Brand palette — identical to index.html */
  --violet: #6c4bf6;
  --violet-lift: #a48cff;
  --pink:   #ff5d8f;
  --amber:  #ffc24b;
  --teal:   #2dd4bf;
  --ink:    #150c33;
  --ink-2:  #0d0722;

  /* Surfaces */
  --bg:        var(--ink);
  --bg-soft:   rgba(255, 255, 255, .045);
  --bg-softer: rgba(255, 255, 255, .028);
  --border:    rgba(255, 255, 255, .11);
  --border-lift: rgba(255, 255, 255, .18);

  /* Text */
  --text:      rgba(255, 255, 255, .88);
  --text-loud: #ffffff;
  --text-soft: rgba(255, 255, 255, .62);
  --accent:    var(--violet-lift);

  /* Callouts */
  --note-bg:     rgba(108, 75, 246, .16);
  --note-border: rgba(164, 140, 255, .30);

  --radius: 12px;
  --maxw: 780px;

  --font-round: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system,
                BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Background wash ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%,  rgba(108, 75, 246, .40), transparent 62%),
    radial-gradient(760px 480px at 92% 4%,   rgba(255, 93, 143, .22), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(45, 212, 191, .14), transparent 64%),
    linear-gradient(168deg, var(--ink) 0%, var(--ink-2) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 46%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 46%);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 96px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 7, 34, .38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 44px;
}

.site-header .wrap { padding-top: 20px; padding-bottom: 18px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-loud);
  text-decoration: none;
}

.brand .light { font-weight: 400; opacity: .82; }

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(108, 75, 246, .40);
}

.site-nav {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  font-size: 14.5px;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color .15s ease;
}

.site-nav a:hover { color: var(--text-loud); }

.site-nav a[aria-current="page"] {
  color: var(--amber);
  font-weight: 650;
}

/* ---------- Typography ---------- */

h1 {
  font-family: var(--font-round);
  font-size: clamp(30px, 6.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.032em;
  font-weight: 800;
  color: var(--text-loud);
  margin: 0 0 12px;
}

h2 {
  font-family: var(--font-round);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: var(--text-loud);
  margin: 52px 0 14px;
  padding-top: 14px;
  position: relative;
}

/* small gradient pip above each section heading */
h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-lift), var(--pink));
}

h3 {
  font-family: var(--font-round);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-loud);
  margin: 30px 0 8px;
}

p { margin: 0 0 16px; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(164, 140, 255, .42);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}

a:hover { text-decoration-color: var(--accent); }

ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }

ul::marker, li::marker { color: var(--violet-lift); }

strong { font-weight: 650; color: var(--text-loud); }

small { font-size: 13px; color: var(--text-soft); }

.lede {
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.meta {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.meta span + span::before {
  content: "•";
  color: var(--violet-lift);
  margin: 0 10px;
}

/* ---------- Table of contents ---------- */

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 44px;
}

.toc h2 {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin: 0 0 12px;
  padding: 0;
}

.toc h2::before { display: none; }

.toc ol { margin: 0; padding-left: 22px; font-size: 15.5px; }
.toc li { margin-bottom: 5px; }
.toc li::marker { color: var(--text-soft); }

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover { color: var(--amber); }

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-softer);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 480px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(255, 255, 255, .04);
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, .022); }

table a { word-break: break-word; }

/* ---------- Callouts ---------- */

.note {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.62;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
}

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

/* ---------- Contact card ---------- */

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 24px;
  line-height: 1.75;
}

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

/* ---------- Steps ---------- */

.steps { list-style: none; padding: 0; counter-reset: step; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 26px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--violet-lift), var(--violet));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-round);
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(108, 75, 246, .38);
}

.steps h3 { margin-top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet-lift) 0%, var(--violet) 55%, var(--pink) 130%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(108, 75, 246, .34);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(108, 75, 246, .46);
}

.btn-secondary {
  background: rgba(255, 255, 255, .05);
  color: var(--text-loud);
  border-color: var(--border-lift);
  box-shadow: none;
}

.btn-secondary:hover { box-shadow: none; background: rgba(255, 255, 255, .09); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding-top: 26px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.site-footer .wrap { padding-bottom: 40px; }

.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text-loud); }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-bottom: 12px;
}

.site-footer p { margin: 0; }

/* ---------- Focus ---------- */

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  h2 { font-size: 20px; margin-top: 44px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .toc { padding: 18px 20px; }
  th, td { padding: 11px 13px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- Print: force legible black on white ---------- */

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  body::before, body::after { display: none !important; }
  .site-header { background: none !important; border-bottom: 1px solid #999; }
  .site-nav, .toc, .site-footer nav, .btn-row { display: none !important; }
  h1, h2, h3, strong { color: #000 !important; }
  h2::before { display: none; }
  a { color: #000 !important; text-decoration: underline; }
  th {
    color: #000 !important;
    background: #eee !important;
    border-bottom: 1px solid #999;
  }
  th, td { border-bottom: 1px solid #ccc; }
  .table-scroll, .toc, .contact-card, .note {
    border: 1px solid #999 !important;
    background: none !important;
  }
  .steps > li::before {
    background: #000 !important;
    box-shadow: none !important;
  }
}
