/* ============================================================
   WOG Games — Legal pages stylesheet
   Same design system as the landing (tokens mirrored)
   ============================================================ */
@font-face {
  font-family: 'MuseoSansCyrl';
  src: url('/fonts/MuseoSansCyrl-300.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MuseoSansCyrl';
  src: url('/fonts/MuseoSansCyrl-500.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MuseoSansCyrl';
  src: url('/fonts/MuseoSansCyrl-700.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg-root: #11141a;
  --bg-primary: #14181F;
  --bg-item: #1F242E;
  --text-primary: #e6eef7;
  --text-secondary: #CED4DE;
  --text-tertiary: #A7AFBE;
  --text-quaternary: #949BA8;
  --blue: #3377FF;
  --purple: #8A51FB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'MuseoSansCyrl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  background: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}
body::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  top: -180px; left: -120px;
}
body::after {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  bottom: -200px; right: -160px;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; word-break: break-word; }
a:hover { color: #5a90ff; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 20, 26, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.legal-header__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}
.legal-logo__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 16px rgba(51,119,255,0.4);
}
.legal-logo__text { color: var(--text-primary); }
.legal-logo__text span { color: var(--text-tertiary); font-weight: 300; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: all .2s;
}
.legal-back:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.legal-back svg { width: 16px; height: 16px; }

.legal-main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  margin-bottom: 24px;
}
.legal-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.legal-title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content {
  background: var(--bg-item);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 40px;
  font-size: 15px;
  color: var(--text-secondary);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.legal-content :where(p) { margin-bottom: 18px; }
.legal-content b, .legal-content strong { color: var(--text-primary); font-weight: 500; }

/* Verbatim text block — preserve original whitespace/line structure */
.legal-text {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-text a { font-weight: 500; }

/* Contacts layout */
.legal-contacts { display: flex; flex-direction: column; gap: 4px; }
.legal-contact-item {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.legal-contact-item:first-child { border-top: none; padding-top: 0; }
.legal-contact-item .name {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-quaternary);
  margin-bottom: 8px;
}
.legal-contact-item a, .legal-contact-item .text {
  font-size: 17px;
  color: var(--text-primary);
}
.legal-contact-item a { color: var(--blue); }
.legal-contact-item .text { font-weight: 300; line-height: 1.7; }

@media (max-width: 600px) {
  .legal-content { padding: 24px; border-radius: 16px; }
  .legal-main { padding: 40px 16px 72px; }
  .legal-header__inner { padding: 14px 16px; }
  .legal-back span { display: none; }
}

.legal-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 48px;
  font-size: 12px;
  color: var(--text-quaternary);
  border-top: 1px solid rgba(255,255,255,0.04);
}
