@font-face {
  font-family: 'Dogica Pixel';
  src: url('/assets/fonts/dogicapixel.ttf') format('truetype');
  font-display: swap;
}

:root {
  --accent: #14f195;
  --bg-base: #010207;
  --bg-card: #0d1524;
  --bg-card-alt: #111a29;
  --stroke: #324258;
  --text-primary: #f4f7fb;
  --text-secondary: #9fb2c8;
  --text-tertiary: #6f829a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Dogica Pixel', 'dogicapixel', monospace;
  color: var(--text-primary);
  background: var(--bg-base);
  letter-spacing: 0;
  text-transform: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.screen-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: 0;
}

.base-layer {
  background: linear-gradient(160deg, #010207 0%, #040811 46%, #060a13 100%);
}

.accent-layer {
  opacity: 0.95;
}

.accent-layer-a {
  background: linear-gradient(
    145deg,
    rgba(20, 241, 149, 0.06) 0%,
    rgba(0, 194, 255, 0.04) 52%,
    rgba(153, 69, 255, 0.08) 100%
  );
}

.accent-layer-b {
  background: linear-gradient(
    145deg,
    rgba(153, 69, 255, 0.08) 0%,
    rgba(20, 241, 149, 0) 50%,
    rgba(0, 194, 255, 0.07) 100%
  );
}

.smoke-layer {
  opacity: 0.95;
  background: linear-gradient(
    145deg,
    rgba(2, 4, 9, 0.66) 0%,
    rgba(10, 13, 19, 0.2) 50%,
    rgba(1, 2, 6, 0.76) 100%
  );
}

.texture-layer {
  opacity: 0.34;
  background-image: radial-gradient(circle, rgba(220, 231, 243, 0.34) 0.55px, transparent 0.7px);
  background-repeat: repeat;
  background-size: 3px 3px;
}

.legal-shell {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 100svh;
  padding: 20px 0 24px;
}

.legal-top {
  margin-bottom: 12px;
  text-align: center;
}

.legal-logo {
  width: min(280px, 64vw);
  height: auto;
}

.legal-card {
  border: 1px solid var(--stroke);
  background: rgba(10, 16, 26, 0.9);
  padding: 16px;
}

.legal-title {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 24px;
  text-transform: uppercase;
}

.legal-updated {
  margin: 8px 0 14px;
  color: var(--text-tertiary);
  font-size: 8px;
  line-height: 12px;
}

.legal-section {
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  padding: 12px;
  margin-top: 10px;
}

.legal-section h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
}

.legal-section h3 {
  margin: 12px 0 6px;
  font-size: 9px;
  line-height: 12px;
  color: var(--text-primary);
}

.legal-section h4 {
  margin: 10px 0 6px;
  font-size: 8px;
  line-height: 11px;
  color: var(--text-primary);
}

.legal-section p,
.legal-section li,
.legal-section dd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 13px;
}

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

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section dl {
  margin: 0;
}

.legal-section dt {
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 8px;
  line-height: 11px;
}

.legal-section dd {
  margin-top: 4px;
  margin-left: 0;
}

.legal-note {
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: 8px;
  line-height: 12px;
}

.legal-footer {
  margin-top: 12px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 8px;
  line-height: 12px;
}

@media (max-width: 640px) {
  .legal-shell {
    width: calc(100% - 14px);
    padding-top: 14px;
  }

  .legal-card {
    padding: 12px;
  }
}
