:root {
  color-scheme: dark;
  --bg: #0c0b13;
  --bg-soft: #13111d;
  --panel: rgba(27, 24, 37, .9);
  --panel-strong: rgba(34, 28, 50, .96);
  --line: rgba(196, 181, 253, .17);
  --line-strong: rgba(196, 181, 253, .36);
  --text: #f8f6ff;
  --muted: rgba(255, 255, 255, .68);
  --muted-2: rgba(255, 255, 255, .46);
  --accent: #d66cff;
  --accent-2: #a78bfa;
  --cyan: #48cfff;
  --shadow: 0 18px 60px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(214, 108, 255, .34); color: #fff; }
:focus-visible { outline: 2px solid #f0d9ff; outline-offset: 3px; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse 70% 36% at 50% -11%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(ellipse 45% 30% at 100% 20%, rgba(217, 70, 239, .08), transparent 75%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .22;
  background-image: linear-gradient(rgba(196, 181, 253, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 181, 253, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 62%);
}

main { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 74px; }

.legal-header {
  position: sticky;
  z-index: 10;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(20, 17, 29, .86);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
}
.legal-header::after { width: 74px; height: 1px; position: absolute; left: 16px; bottom: -1px; content: ""; background: linear-gradient(90deg, var(--accent), transparent); opacity: .7; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: #f4dcff; font-weight: 900; letter-spacing: .5px; font-size: 16px; text-decoration: none; white-space: nowrap; }
.brand::before { width:20px; height:20px; flex:0 0 20px; content:""; background:url('/assets/branding/starqc-loader-star.png?v=1') center/contain no-repeat; filter:drop-shadow(0 0 5px rgba(218,91,255,.65)); }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.legal-nav a { padding: 5px 9px; border: 1px solid transparent; border-radius: 8px; color: var(--muted-2); font-size: 12px; text-decoration: none; transition: color .16s, border-color .16s, background .16s, transform .16s; }
.legal-nav a:hover { border-color: var(--line); background: rgba(167,139,250,.09); color: var(--text); transform: translateY(-1px); }
.legal-language { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; margin-left: auto; color: var(--muted-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.legal-language select { min-width: 98px; height: 30px; padding: 0 25px 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,.055); color: var(--text); font: 700 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; outline: none; }
.legal-language select:hover, .legal-language select:focus-visible { border-color: var(--accent); background: rgba(167,139,250,.12); }
.legal-language option { background: #191526; color: #fff; }

.legal-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 3px 17px; color: var(--muted-2); font-size: 12px; }
.legal-breadcrumbs a { color: #d9bcff; text-decoration: none; }
.legal-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.legal-breadcrumbs span[aria-hidden="true"] { color: rgba(255,255,255,.26); }

h1 { max-width: 780px; margin: 0 0 9px; color: #fff; font-size: clamp(31px, 5vw, 46px); line-height: 1.08; letter-spacing: -.9px; }
h1::after { display: block; width: 96px; height: 3px; margin-top: 15px; border-radius: 99px; content: ""; background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 18px rgba(214,108,255,.4); }
.lead { max-width: 760px; margin: 0 0 12px; color: var(--muted); font-size: 18px; line-height: 1.58; }
.updated { display: inline-flex; align-items: center; min-height: 28px; margin: 0 0 25px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted-2); font-size: 12px; }

section { position: relative; margin: 15px 0; padding: 25px 27px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(29, 25, 41, .94), rgba(22, 19, 32, .86)); box-shadow: 0 8px 32px rgba(0,0,0,.13), inset 0 1px rgba(255,255,255,.035); }
section::after { position: absolute; width: 150px; height: 150px; right: -90px; top: -95px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(214,108,255,.12), transparent 68%); pointer-events: none; }
section:hover { border-color: rgba(196,181,253,.27); }
h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 11px; color: #fff; font-size: 20px; line-height: 1.25; letter-spacing: -.15px; }
h2::before { width: 7px; height: 22px; flex: 0 0 auto; content: ""; border-radius: 99px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(214,108,255,.35); }
h3 { margin: 18px 0 7px; color: var(--text); font-size: 15px; }
p, li { color: var(--muted); }
p { margin: 8px 0; }
ul, ol { margin: 9px 0 0; padding-left: 22px; }
li + li { margin-top: 7px; }
a { color: #d8b4fe; }
strong { color: var(--text); }

.notice { margin: 18px 0; padding: 15px 17px; border: 1px solid rgba(214,108,255,.22); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: linear-gradient(100deg, rgba(167,139,250,.12), rgba(72,207,255,.035)); color: var(--muted); }
.notice strong { color: #f0d9ff; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 14px 0; }
.legal-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(33,28,49,.7); transition: border-color .16s, transform .16s, background .16s; }
.legal-card:hover { border-color: rgba(214,108,255,.38); background: rgba(43,34,62,.78); transform: translateY(-2px); }
.legal-card h3 { margin: 0 0 7px; font-size: 15px; }
.legal-card p { margin: 0; font-size: 14px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: linear-gradient(115deg, rgba(139,92,246,.18), rgba(217,70,239,.08) 55%, rgba(72,207,255,.06)); box-shadow: var(--shadow); }
.contact-card p { margin: 0; }
.contact-card a { white-space: nowrap; font-weight: 800; }
.pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: #e8d5ff; font-size: 12px; }
.table-wrap { overflow-x: auto; margin-top: 13px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 540px; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); font-size: 13px; vertical-align: top; }
th { color: var(--text); font-weight: 800; background: rgba(167,139,250,.1); }
tr:last-child td { border-bottom: 0; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid rgba(236,208,255,.18); border-radius: 10px; background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 8px 20px rgba(139,92,246,.22), inset 0 1px rgba(255,255,255,.2); color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; transition: transform .16s, filter .16s, box-shadow .16s; }
.legal-button:hover { filter: brightness(1.1); box-shadow: 0 11px 25px rgba(139,92,246,.3), inset 0 1px rgba(255,255,255,.25); transform: translateY(-1px); }
.legal-button.secondary { background: rgba(255,255,255,.055); border-color: var(--line-strong); box-shadow: none; }
.legal-small { color: var(--muted-2); font-size: 12px; }
footer { margin-top: 38px; padding-top: 21px; border-top: 1px solid var(--line); color: rgba(255,255,255,.4); font-size: 12px; text-align: center; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  main { width: min(100% - 24px, 980px); padding: 14px 0 54px; }
  .legal-header { position: relative; top: 0; align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; padding: 13px; }
  .legal-nav { justify-content: flex-start; gap: 5px; }
  .legal-nav a { padding: 5px 7px; }
  .legal-language { width: 100%; margin-left: 0; justify-content: space-between; }
  .legal-language select { flex: 1 1 auto; max-width: 180px; }
  .legal-breadcrumbs { margin-top: 4px; }
  h1 { font-size: 31px; }
  .lead { font-size: 16px; }
  section { padding: 20px 18px; border-radius: 14px; }
  .legal-grid { grid-template-columns: 1fr; }
  .contact-card { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* The public legal/help pages share the same pure black and white theme. */
html,
body {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
}

body * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body :is(main, header, nav, section, article, aside, footer, .legal-header,
  .legal-card, .notice, .contact-card, .updated, .pill, .table-wrap,
  .legal-button, input, select, textarea, button) {
  background: #000 !important;
  background-image: none !important;
}

body :is(input, select, textarea, button)::placeholder {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}
