/* RedAlpha Games static site.
   Self contained: no external fonts, content delivery networks, or trackers,
   so the pages load quickly and keep visitor data private. */

:root {
  --navy: #13294b;
  --navy-2: #1c3a63;
  --accent: #1f5fbf;
  --accent-dark: #17458c;

  --ink: #1a1f2b;
  --body: #33384a;
  --muted: #5b6472;
  --line: #e3e6ee;

  --bg: #f5f6fa;
  --bg-alt: #eef1f7;
  --surface: #ffffff;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 28px rgba(19, 41, 75, 0.08);
  --shadow-sm: 0 3px 12px rgba(19, 41, 75, 0.06);
  --maxw: 880px;

  --serif: Georgia, "Times New Roman", "Times", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  border-top: 3px solid var(--accent);
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

/* Header and navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 48px 0 72px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 84px 0 76px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 1.08rem;
  color: #d6ddea;
}

.btn-row {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

.btn-primary:hover {
  background: #eef1f7;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Landing sections */
.section {
  padding: 60px 0 8px;
}

.section h2 {
  font-family: var(--serif);
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}

.section .lead {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 600px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.08s ease;
}

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

.ico {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 1.18rem;
  color: var(--navy);
}

.tile p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile a.more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Legal document pages */
.doc-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.doc-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.doc-body h2 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
  scroll-margin-top: 24px;
}

.doc-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 6px;
}

.doc-body p,
.doc-body li {
  color: var(--body);
}

.doc-body ul,
.doc-body ol {
  padding-left: 24px;
}

.doc-body li {
  margin: 7px 0;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.94rem;
}

.doc-body th,
.doc-body td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

.doc-body th {
  background: var(--bg-alt);
  color: var(--navy);
  font-weight: 700;
}

.doc-body a {
  font-weight: 600;
}

.note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 6px 0 10px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin: 5px 0;
  break-inside: avoid;
}

.contact-box {
  margin-top: 30px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.contact-box p {
  margin: 4px 0;
}

.back-top {
  display: inline-block;
  margin-top: 34px;
  font-weight: 600;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c3ccdb;
  padding: 44px 0 34px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner .brand {
  color: #ffffff;
}

.footer-inner .brand-mark {
  background: #ffffff;
  color: var(--navy);
}

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

.footer-links a {
  color: #c3ccdb;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  width: 100%;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  color: #9aa4b8;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .card {
    padding: 30px 24px;
  }
  .toc ol {
    columns: 1;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
