/* ==========================================================================
   ZYAD DayZ Server — Global Styles
   Dark survival/military theme · Mobile-first responsive
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0d0f0e;
  --bg-secondary: #141816;
  --bg-card: #1a1f1c;
  --bg-card-hover: #222824;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(74, 124, 89, 0.4);
  --text-primary: #e8ebe9;
  --text-secondary: #9aa39d;
  --text-muted: #6b756f;
  --accent-green: #4a7c59;
  --accent-green-light: #5d9a6f;
  --accent-orange: #e8a838;
  --accent-orange-hover: #f0bc5c;
  --danger: #c45c4a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px rgba(74, 124, 89, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --header-height: 72px;
  --transition: 0.25s ease;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img:not(.handbook-tooltip-img) {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-green-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-orange);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.text-accent {
  color: var(--accent-orange);
}

.text-green {
  color: var(--accent-green-light);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
}

section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(13, 15, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  height: var(--header-height);
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo:hover {
  color: var(--accent-orange);
}

/* Logo image (server_logo.png) */
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-img--footer {
  width: 32px;
  height: 32px;
}

/* Global language switcher (header) */
.site-lang {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
}

.site-lang button {
  padding: 0.4rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.site-lang button:hover {
  color: var(--text-primary);
  border-color: var(--accent-green);
}

.site-lang button.active {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  background: rgba(232, 168, 56, 0.1);
}

@media (max-width: 900px) {
  .site-lang {
    margin-right: 0.25rem;
  }
}

.logo-text {
  letter-spacing: 0.12em;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(74, 124, 89, 0.35));
}

/* Desktop nav */
.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 0.35rem;
}

.nav-desktop a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
  background: rgba(74, 124, 89, 0.15);
}

.nav-desktop a.active {
  color: var(--accent-orange);
  border-bottom: 2px solid var(--accent-orange);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  transition: border-color var(--transition);
}

.nav-toggle:hover {
  border-color: var(--accent-green);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 15, 14, 0.98);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
  overflow-y: auto;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-accent);
}

.nav-mobile a.active {
  color: var(--accent-orange);
  border-left: 3px solid var(--accent-orange);
}

@media (min-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 2.75rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .logo {
    justify-self: start;
    padding-right: 0.25rem;
  }

  .nav-desktop {
    display: block;
    justify-self: center;
    grid-column: 2;
  }

  .site-lang {
    justify-self: end;
    grid-column: 3;
    margin-left: 0;
  }

  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #c48920);
  color: #1a1408;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover), var(--accent-orange));
  color: #1a1408;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-green);
}

.btn-secondary:hover {
  background: rgba(74, 124, 89, 0.2);
  border-color: var(--accent-green-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-btn-group {
  margin-bottom: 0.25rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
}

.server-status-hint {
  max-width: 22rem;
  margin: 0.85rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.server-copy-ip {
  margin-top: 0.85rem;
}

.site-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 9999;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 0.5rem);
  background: rgba(18, 22, 28, 0.96);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(1rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 15, 14, 0.7) 0%, rgba(13, 15, 14, 0.95) 70%, var(--bg-primary) 100%),
    linear-gradient(135deg, #1a2e1f 0%, #0d1510 40%, #1a1810 100%);
  z-index: 0;
}

/* Subtle grid overlay for military feel */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 124, 89, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 124, 89, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-green-light);
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent-orange);
}

.hero-desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 124, 89, 0.15);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
}

/* Info cards on home */
.info-card .card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green-light);
  margin-bottom: 0.25rem;
}

/* News cards */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card .news-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.news-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-tag-update { background: rgba(74, 124, 89, 0.25); color: var(--accent-green-light); }
.news-tag-event { background: rgba(232, 168, 56, 0.2); color: var(--accent-orange); }
.news-tag-maintenance { background: rgba(196, 92, 74, 0.2); color: var(--danger); }

.news-date {
  color: var(--text-muted);
}

.news-card h3 {
  margin-bottom: 0.5rem;
}

.news-card p {
  flex: 1;
  margin-bottom: 1rem;
}

.news-card .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-orange);
}

/* Guide cards */
.guide-card {
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
  opacity: 0;
  transition: opacity var(--transition);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-difficulty {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Roadmap Timeline --- */
.roadmap-section {
  margin-bottom: 3rem;
}

.roadmap-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-planned { background: var(--text-muted); }
.status-progress { background: var(--accent-orange); box-shadow: 0 0 8px var(--accent-orange); }
.status-completed { background: var(--accent-green-light); box-shadow: 0 0 8px var(--accent-green); }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-green);
  margin-left: -1px;
}

.timeline-item h4 {
  margin-bottom: 0.25rem;
}

.timeline-item .timeline-date {
  font-size: 0.8rem;
  color: var(--accent-orange);
  margin-bottom: 0.35rem;
}

.timeline-item p {
  font-size: 0.9rem;
}

/* Roadmap preview on home — horizontal chips */
.roadmap-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.roadmap-chip {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.roadmap-chip strong {
  color: var(--text-primary);
}

/* --- Leaderboard --- */
.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--accent-green);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(74, 124, 89, 0.2);
  border-color: var(--accent-green);
  color: var(--accent-orange);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.95rem;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.leaderboard-table th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.leaderboard-table tbody tr {
  transition: background var(--transition);
}

.leaderboard-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.leaderboard-table .rank {
  font-weight: 700;
  color: var(--accent-orange);
  width: 60px;
}

.leaderboard-table .rank-1 { color: #ffd700; }
.leaderboard-table .rank-2 { color: #c0c0c0; }
.leaderboard-table .rank-3 { color: #cd7f32; }

.leaderboard-table .player-name {
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-panel {
  display: none;
}

.leaderboard-panel.active {
  display: block;
}

.leaderboard-section {
  padding-bottom: 3rem;
}

.leaderboard-updated {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -0.75rem 0 1.25rem;
  min-height: 1.25rem;
}

.leaderboard-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  min-height: 1.5rem;
}

.leaderboard-status.is-error {
  color: var(--text-secondary);
}

.table-wrapper.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* --- Team cards --- */
.team-grid {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .team-grid {
    gap: 1.75rem;
  }
}

.team-card {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(34, 40, 36, 0.98) 0%,
    rgba(22, 26, 24, 0.99) 45%,
    rgba(18, 21, 19, 1) 100%
  );
  border: 1px solid rgba(74, 124, 89, 0.2);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -42deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.012) 10px,
    rgba(255, 255, 255, 0.012) 11px
  );
  pointer-events: none;
  opacity: 0.7;
}

.team-card::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(74, 124, 89, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.team-card > * {
  position: relative;
  z-index: 1;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 124, 89, 0.42);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(74, 124, 89, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), #2d4a36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(74, 124, 89, 0.45);
  overflow: hidden;
  box-shadow:
    0 0 22px rgba(74, 124, 89, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.team-card:hover .team-avatar {
  border-color: rgba(93, 154, 111, 0.65);
  box-shadow:
    0 0 32px rgba(74, 124, 89, 0.42),
    0 6px 18px rgba(0, 0, 0, 0.4);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
}

.role-owner { background: rgba(232, 168, 56, 0.2); color: var(--accent-orange); }
.role-admin { background: rgba(196, 92, 74, 0.2); color: var(--danger); }
.role-mod { background: rgba(74, 124, 89, 0.25); color: var(--accent-green-light); }
.role-support { background: rgba(100, 140, 200, 0.2); color: #8ab4e8; }

.team-card p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* --- Discord CTA --- */
.discord-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.15), rgba(88, 101, 242, 0.1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  margin: 0;
}

.discord-cta h2 {
  margin-bottom: 0.75rem;
}

.discord-cta p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* --- Page header (inner pages) --- */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Legal pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Server status card (homepage) */
.server-status-card {
  max-width: 420px;
  margin: 2rem auto 0;
  text-align: center;
}

.server-status-card .status-online {
  color: var(--accent-green-light);
}

.server-status-card .status-offline {
  color: var(--danger);
}

.server-status-card .status-unavailable {
  color: var(--text-muted);
}

.status-dot-live {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent-green-light);
  box-shadow: 0 0 8px var(--accent-green-light);
  margin-right: 0.35rem;
  vertical-align: middle;
}

.status-dot-live.offline {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* Roadmap item tags */
.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.roadmap-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: rgba(74, 124, 89, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* News: longer posts */
.news-card .news-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.news-card .news-body li {
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.legal-meta {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-placeholder-banner {
  background: rgba(232, 168, 56, 0.12);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: var(--accent-orange);
  font-weight: 600;
}

.legal-placeholder-banner strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent-orange);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Prevent body scroll when mobile menu open */
body.menu-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  body.menu-open {
    overflow: auto;
  }
}
