/* PlayVlay — shared theme for marketing + legal/support pages */

:root {
  --ink: #0b1220;
  --ink-muted: #3d4f6f;
  --line: rgba(15, 23, 42, 0.1);
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --violet: #6d28d9;
  --violet-soft: #ede9fe;
  --emerald: #059669;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9;
    --ink-muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --surface: #0f172a;
    --surface-2: #1e293b;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --violet-soft: rgba(109, 40, 217, 0.25);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  overflow: visible;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-header.is-nav-open {
  height: auto;
  align-items: flex-start;
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

.site-header.is-nav-open .site-header__inner {
  align-items: flex-start;
}

.site-header__cta {
  flex-shrink: 0;
}

.site-header__menu-btn {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-sm);
}

.site-header__menu-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent);
}

.site-header__menu-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.site-header__menu-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-header__menu-bar:nth-child(1) {
  top: 0;
}

.site-header__menu-bar:nth-child(2) {
  top: 6px;
}

.site-header__menu-bar:nth-child(3) {
  top: 12px;
}

.site-header.is-nav-open .site-header__menu-bar:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.site-header.is-nav-open .site-header__menu-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .site-header__menu-bar:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-header__menu-bar {
    transition: none;
  }
}

@media (max-width: 899px) {
  .site-header {
    z-index: 200;
  }

  .site-header__inner {
    position: relative;
    z-index: 0;
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 10px;
    align-items: center;
  }

  .site-header__inner > .brand {
    order: 1;
  }

  .site-header__cta {
    order: 2;
    margin-left: auto;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 40px;
    font-size: 0.8125rem;
  }

  .site-header__menu-btn {
    display: inline-flex;
    order: 3;
    position: relative;
    z-index: 2;
  }

  .nav-main {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    border-top: 0 solid transparent;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease, border-width 0.2s ease,
      visibility 0s linear 0.28s;
  }

  .site-header.is-nav-open .nav-main {
    max-height: min(28rem, calc(100vh - var(--header-h) - 24px));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 10px 0 6px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    overflow-y: auto;
    transition-delay: 0s, 0s, 0s, 0s, 0s;
  }

  .site-header.is-nav-open .nav-main a:not(.btn-nav) {
    border-bottom: 1px solid var(--line);
  }

  .nav-main a:not(.btn-nav) {
    padding: 14px 2px;
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .nav-main {
    margin-left: auto;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.brand:hover {
  color: var(--accent);
}

.brand:focus-visible {
  border-radius: 6px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.nav-main a:not(.btn-nav) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-main a:not(.btn-nav):hover {
  color: var(--accent);
}

.nav-main a.is-active {
  color: var(--ink);
  font-weight: 700;
}

.nav-main a.is-active:hover {
  color: var(--accent);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #5b21b6 100%);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn-nav:hover {
  filter: brightness(1.06);
  color: #fff;
}

.site-footer {
  margin-top: 0;
  padding: 40px 22px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.footer-brand:hover {
  color: var(--accent);
}

.footer-brand:hover .footer-brand__mark {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.footer-tag {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
