:root {
  --bg: #eef2f4;
  --panel: #ffffff;
  --text: #172536;
  --muted: #657586;
  --dark: #111d2b;
  --teal: #0b8f96;
  --teal-soft: rgba(11, 143, 150, 0.12);
  --line: rgba(23, 37, 54, 0.16);
  --shadow: 0 14px 34px rgba(17, 29, 43, 0.13);
  --shadow-strong: 0 24px 55px rgba(17, 29, 43, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(11, 143, 150, 0.12), transparent 28%),
    linear-gradient(180deg, #f6f8f9 0%, var(--bg) 42%, #e8eef1 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(17, 29, 43, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 29, 43, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  width: min(1100px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  transition: transform 160ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
}

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

.nav-menu a,
.nav-dropdown-button,
.footer-links a {
  font-weight: 750;
}

.nav-menu a,
.nav-dropdown-button {
  color: #eef6f7;
}

.nav-menu a:hover,
.nav-dropdown-button:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--teal);
}

.dropdown {
  position: relative;
}

.nav-dropdown-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: none;
  min-width: 260px;
  padding: 8px 0;
  color: #f4f8fa;
  background: #101720;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: var(--shadow);
  animation: menuIn 140ms ease both;
}

.dropdown.is-open .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: block;
  padding: 10px 16px;
  color: #f4f8fa;
}

.dropdown-panel a:hover {
  color: #fff;
  background: rgba(11, 143, 150, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.page-hero,
.legal-hero {
  color: #fff;
  background: linear-gradient(180deg, #14253a 0%, #0b767c 100%);
}

.intro {
  padding: 128px 24px 72px;
  position: relative;
}

.intro::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 1px;
  background: var(--line);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 42px;
  align-items: center;
}

.intro h1 {
  max-width: 680px;
}

.intro p {
  max-width: 560px;
  font-weight: 650;
  color: var(--muted);
}

.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.logo-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #05070b;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.logo-panel:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.page-hero,
.legal-hero {
  padding: 116px 24px 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-hero .eyebrow,
.legal-hero .eyebrow,
.section-muted .eyebrow {
  color: #70d8dc;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.7rem, 9vw, 6.2rem);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

h3 {
  font-size: 1.6rem;
}

.page-hero p {
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-primary {
  background: var(--dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--dark);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: rgba(11, 143, 150, 0.45);
  background: var(--teal-soft);
}

.section {
  padding: 76px 24px;
  animation: fadeUp 420ms ease both;
}

.section-muted {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--dark);
  background-size: 42px 42px;
  color: #fff;
}

.section-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.text p,
.notice p,
.legal-content p,
.legal-content li {
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-muted .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.card {
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover,
.link-list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.section-muted .card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(112, 216, 220, 0.36);
  box-shadow: none;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: block;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.link-list a:hover {
  border-color: var(--teal);
}

.notice {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.text-link {
  color: var(--teal);
  font-weight: 900;
}

.site-footer {
  background: #0b111a;
  color: #dce8ec;
  padding: 28px 24px;
}

.cookie-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
}

.cookie-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cookie-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.cookie-panel {
  position: absolute;
  left: 0;
  bottom: 52px;
  display: none;
  width: min(320px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: fadeUp 160ms ease both;
}

.cookie-panel.is-open {
  display: block;
}

.cookie-panel h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.cookie-panel p {
  margin: 0 0 14px;
  font-weight: 600;
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.sub-page,
.legal-page {
  padding-top: 68px;
}

.wiki-blank {
  min-height: calc(100vh - 144px);
}

.legal-content {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 82px;
}

.legal-content section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 16px;
    background: var(--dark);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
    gap: 12px;
  }

  .nav-menu.is-open-static {
    position: static;
    display: flex;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropdown-panel {
    position: static;
    min-width: 0;
    margin-top: 10px;
    box-shadow: none;
  }

  .split,
  .notice,
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand span {
    max-width: 120px;
    line-height: 1.1;
  }

  .intro {
    padding-top: 108px;
  }

  .section {
    padding: 60px 18px;
  }
}
