/* ==========================================================================
   Aurapure Game — Official website styles
   Sections: tokens · base · utilities · header · hero · games · studio
             contact · footer · legal pages · responsive · print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #070a16;
  --bg-soft: #0a0f22;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: #0d142b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink: #f3f6ff;
  --ink-body: #c8cfe6;
  --muted: #8e97b4;

  --violet: #8b5cf6;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;

  --gradient: linear-gradient(115deg, #a78bfa 0%, #818cf8 38%, #38bdf8 72%, #22d3ee 100%);
  --gradient-button: linear-gradient(120deg, #8b5cf6 0%, #6366f1 52%, #3b82f6 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 24px 60px -28px rgba(4, 8, 24, 0.9);
  --shadow-glow: 0 18px 60px -18px rgba(99, 102, 241, 0.55);

  --container: 1160px;
  --header-h: 72px;

  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 8% -6%, rgba(139, 92, 246, 0.28), transparent 62%),
    radial-gradient(50% 42% at 96% 4%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(60% 50% at 50% 108%, rgba(244, 114, 182, 0.12), transparent 65%),
    linear-gradient(180deg, #080b18 0%, #060914 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--gradient-button);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c3cae4;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -18px rgba(99, 102, 241, 0.8);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(165, 180, 252, 0.6);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(7, 10, 22, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 22, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #b3bbd6;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
}

.header-cta {
  flex: none;
  padding: 10px 20px;
  font-size: 0.87rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
  transform: none;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(60px, 8vw, 104px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.hero-title {
  margin: 22px 0 0;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-title .line {
  display: block;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 20px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  color: #aab3cd;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stat strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-stat span {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero carousel ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-carousel {
  position: relative;
  width: min(100%, 360px);
}

.device-shell {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.35), rgba(13, 20, 43, 0.95) 45%, rgba(34, 211, 238, 0.22));
  box-shadow: 0 40px 90px -40px rgba(4, 8, 24, 0.95), 0 0 0 6px rgba(255, 255, 255, 0.02);
}

.device-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 31px;
  background: #05070f;
}

.device-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.device-slide.is-active {
  opacity: 1;
}

.device-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-chip {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dfe4f5;
  white-space: nowrap;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.car-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.car-btn svg {
  width: 18px;
  height: 18px;
}

.car-btn:hover:not(:disabled) {
  border-color: rgba(165, 180, 252, 0.65);
  background: rgba(139, 92, 246, 0.2);
}

.car-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.car-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.car-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.car-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.car-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.car-dot.is-active {
  width: 26px;
  background: var(--gradient);
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-title {
  margin-top: 18px;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: 16px;
  color: #a2abc6;
  font-size: 1rem;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

/* ---------- Games ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.3s ease;
}

.game-card:hover {
  border-color: rgba(165, 180, 252, 0.32);
  transform: translateY(-4px);
}

.game-cover {
  position: relative;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: #0a0f22;
  border-bottom: 1px solid var(--line);
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 10, 22, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6eaf8;
}

.game-info {
  padding: 24px 24px 4px;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-icon {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
  object-fit: contain;
  background: #0a0f22;
}

.game-name {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.tag {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #bcc4dd;
  background: rgba(255, 255, 255, 0.03);
}

.tag--violet {
  border-color: rgba(165, 180, 252, 0.32);
  background: rgba(139, 92, 246, 0.14);
  color: #d8ccff;
}

.game-desc {
  margin-top: 16px;
  font-size: 0.93rem;
  color: #a7b0ca;
}

.game-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.game-features span {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  color: #c2cae3;
}

/* ---------- Screenshot track carousel ---------- */
.shots {
  margin: 20px 14px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 7, 16, 0.55);
}

.shots-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.shots-track {
  display: flex;
  gap: 12px;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.shots-track figure {
  flex: 0 0 calc((100% - 24px) / 3);
  margin: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #070b18;
}

.shots-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shots-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.shots-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.shots-nav {
  display: flex;
  gap: 8px;
}

.shots-nav .car-btn {
  width: 34px;
  height: 34px;
}

.shots-nav .car-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Studio ---------- */
.studio-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.studio-copy .section-desc {
  max-width: 30rem;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.panel {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(139, 92, 246, 0.18), transparent 58%),
    radial-gradient(100% 80% at 100% 100%, rgba(34, 211, 238, 0.1), transparent 55%),
    rgba(10, 15, 34, 0.85);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.panel .sub {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.trader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 22px;
}

.trader-item .label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d96b3;
}

.trader-item .value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.trader-item a {
  color: #c4b5fd;
  border-bottom: 1px solid rgba(196, 181, 253, 0.3);
  word-break: break-all;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.trader-item a:hover {
  color: #fff;
  border-color: #fff;
}

.trader-item--wide {
  grid-column: 1 / -1;
}

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(139, 92, 246, 0.24), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    rgba(9, 14, 30, 0.8);
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.contact-card p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #a7b0ca;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: #c4b5fd;
  word-break: break-all;
}

.contact-mail svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.contact-mail:hover {
  color: #fff;
}

.contact-note {
  font-size: 0.76rem !important;
  line-height: 1.7;
  color: var(--muted) !important;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 28px;
  background: rgba(4, 7, 16, 0.5);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.55fr));
  gap: 40px;
}

.footer-brand p {
  max-width: 27rem;
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa3c0;
}

.footer-col ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: #aeb7d1;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-bottom a {
  color: #b8c0d8;
}

.footer-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   8. Legal pages
   -------------------------------------------------------------------------- */
.legal-hero {
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.legal-hero h1 {
  margin-top: 20px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-hero .legal-subtitle {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: #c4b5fd;
}

.legal-hero .legal-brand {
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  padding: 6px 14px;
  border: 1px solid rgba(165, 180, 252, 0.28);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  font-size: 0.76rem;
  font-weight: 500;
  color: #d6dcf0;
}

.legal-main {
  padding: 30px 0 clamp(56px, 7vw, 92px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.legal-card {
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 15, 34, 0.78);
  box-shadow: var(--shadow-card);
}

.legal-intro > p,
.legal-section p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #b9c2da;
  text-align: justify;
}

.legal-intro {
  margin-bottom: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-intro > p + p {
  margin-top: 16px;
}

.legal-section {
  margin-bottom: 34px;
}

.legal-section:last-of-type {
  margin-bottom: 0;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--violet);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.legal-section h3 {
  margin: 26px 0 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #e8ecf9;
}

.legal-section h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--gradient);
  vertical-align: 2px;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 4px;
  list-style: none;
}

.legal-section ol {
  counter-reset: legal-item;
}

.legal-section li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 26px;
  font-size: 0.93rem;
  line-height: 1.8;
  color: #b9c2da;
}

.legal-section ul > li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.legal-section ol > li {
  counter-increment: legal-item;
  position: relative;
}

.legal-section ol > li::before {
  content: counter(legal-item);
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
}

.legal-section li strong,
.legal-section p strong {
  color: #eef1fa;
  font-weight: 600;
}

.legal-section a {
  color: #a5b4fc;
  border-bottom: 1px solid rgba(165, 180, 252, 0.32);
  word-break: break-word;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-section a:hover {
  color: #fff;
  border-color: #fff;
}

.legal-note {
  display: block;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.87rem;
  line-height: 1.75;
  color: #f2d489;
  text-align: left;
}

.legal-note strong {
  color: #fde9b0;
}

.legal-contact {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.88rem;
  line-height: 2;
  color: #b9c2da;
  word-break: break-word;
}

.legal-contact strong {
  color: #eef1fa;
  font-weight: 600;
}

.legal-contact a {
  color: #a5b4fc;
}

.legal-contact a:hover {
  color: #fff;
}

.trader-disclosure {
  margin-bottom: 30px;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid rgba(165, 180, 252, 0.26);
  border-radius: var(--radius-md);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    rgba(139, 92, 246, 0.05);
}

.trader-disclosure h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #dcd2ff;
}

.trader-disclosure .sub {
  margin-top: 5px;
  font-size: 0.8rem;
  color: #9ba5c6;
}

.trader-disclosure .trader-grid {
  margin-top: 18px;
}

/* Legal tables */
.table-wrap {
  margin: 16px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table-wrap thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  color: #e4e9f8;
  white-space: nowrap;
}

.table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
  color: #b4bdd6;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.table-wrap td strong {
  color: #eef1fa;
  font-weight: 600;
}

.table-wrap td a {
  color: #a5b4fc;
  word-break: break-all;
}

.table-wrap td a:hover {
  color: #fff;
}

.perm {
  display: inline-block;
  margin: 1px 0;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.7;
  color: #c3cbe2;
  word-break: break-all;
}

/* Legal side navigation */
.legal-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 15, 34, 0.7);
}

.legal-aside h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa3c0;
}

.legal-aside ul {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 2px;
}

.legal-aside a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #aeb7d1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-aside a:hover {
  background: rgba(139, 92, 246, 0.14);
  color: #fff;
}

.legal-aside .aside-docs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal-footer-note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}

.legal-footer-note a {
  color: #b8c0d8;
}

.legal-footer-note a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
}

@media (max-width: 960px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 22, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-link.is-active {
    background: rgba(139, 92, 246, 0.14);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    max-width: 40rem;
  }

  .hero-visual {
    order: 2;
  }

  .hero-carousel {
    width: min(100%, 340px);
  }

  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-aside {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-title {
    font-size: clamp(2rem, 8.6vw, 2.6rem);
  }

  .hero-meta {
    gap: 14px 26px;
  }

  .game-info {
    padding: 20px 18px 2px;
  }

  .shots-track figure {
    flex-basis: calc((100% - 12px) / 2);
  }

  .trader-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-hero {
    padding-top: 34px;
  }

  .legal-intro > p,
  .legal-section p,
  .legal-section li {
    font-size: 0.9rem;
    text-align: left;
  }

  .legal-section h2 {
    font-size: 1.04rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   10. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .site-header,
  .site-footer,
  .legal-aside,
  .skip-link {
    display: none !important;
  }

  .legal-card {
    border: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
  }

  .legal-hero h1,
  .legal-section h2,
  .legal-section h3,
  .legal-section p,
  .legal-section li,
  .legal-contact {
    color: #111;
  }

  .legal-section a,
  .legal-contact a {
    color: #111;
  }
}
