/* Shared styles for the legal/policy pages (terms, privacy, responsible gaming, refund).
   Mirrors the brand palette and type from index.html but stays lightweight —
   these are text-heavy pages, not the animated landing page. */

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

html {
  scroll-behavior: smooth;
}

:root {
  --purple-dark: #1a0a3c;
  --purple-mid: #2d1060;
  --purple-light: #4a1a9e;
  --gold: #f5c518;
  --gold-light: #ffe066;
  --white: #ffffff;
  --text-muted: #c4b5e8;
  --card-bg: #1e0d45;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-sm: 8px;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0e0626;
  color: #fff;
  line-height: 1.7;
}

a {
  color: var(--gold-light);
}

a:hover {
  text-decoration: underline;
}

/* ===== TOP BAR ===== */
.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 10, 60, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-topbar .brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.legal-topbar .brand span {
  color: var(--gold);
}

.legal-topbar .back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legal-topbar .back-link:hover {
  color: var(--gold-light);
}

/* ===== CONTENT ===== */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-notice {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-notice strong {
  color: var(--gold-light);
}

.legal-main h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--gold-light);
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 12px;
}

.legal-main ul,
.legal-main ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-main strong {
  color: var(--white);
}

/* ===== FOOTER ===== */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.legal-footer nav a {
  color: var(--text-muted);
  font-weight: 600;
}

.legal-footer nav a:hover {
  color: var(--gold-light);
}
