:root {
  color-scheme: dark;
  --bg: #111827;
  --panel: #17223a;
  --panel-2: #1d2c49;
  --text: #f8fafc;
  --muted: #b8c4d4;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d8a344;
  --gold-light: #ffe1a1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.home-page {
  overflow-x: hidden;
}

.splash {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #0f1728;
}

.splash-banner {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.splash-actions {
  display: flex;
  justify-content: center;
  padding: 24px 16px 34px;
  border-top: 1px solid var(--line);
  background: #111827;
}

.join-button {
  min-width: min(280px, 100%);
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 2px solid #0a0f1b;
  background: var(--gold);
  color: #11100a;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.55);
}

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

.doc-top {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.94);
}

.doc-top > a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

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

.doc-top nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
}

.doc-top nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.legal-hero {
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 163, 68, 0.18), transparent 36%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.22);
}

.legal-hero p {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
  font-style: italic;
  text-shadow: 4px 5px 0 rgba(0, 0, 0, 0.45);
}

.legal-hero span {
  display: block;
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.legal-card {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(17, 26, 43, 0.86);
}

.legal-card h2 {
  margin: 30px 0 8px;
  color: var(--text);
  font-size: 22px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .splash {
    min-height: 100vh;
  }

  .splash-banner {
    height: auto;
    min-height: unset;
    object-fit: contain;
  }

  .doc-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .doc-top nav {
    flex-wrap: wrap;
  }

  .legal-shell {
    padding-top: 28px;
  }

  .legal-hero,
  .legal-card {
    padding: 24px;
  }
}
