/* Shared styling for the Terms / Privacy / Disclaimer pages.
   Dark "JK Casino" Vegas theme to match the app. Fonts (Cinzel + Outfit) are
   loaded by each page via the same Google Fonts link used in index.html. */

:root {
  --bg: #0a0e16;
  --bg-2: #0f1622;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --gold: #f5c451;
  --gold-2: #d9a441;
  --text: #e7ebf3;
  --muted: #9aa6bd;
  --muted-2: #6b7689;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(245, 196, 81, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

/* ---- Header ---- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid rgba(245, 196, 81, 0.18);
}
.legal-header .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7d774, var(--gold) 45%, var(--gold-2));
  color: #1a1206;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(245, 196, 81, 0.25);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fbe7a8, var(--gold), #fbe7a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand .sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 196, 81, 0.55);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 196, 81, 0.4);
}

/* ---- Content ---- */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
h1 {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  margin: 0 0 8px;
  color: #fff;
}
.updated {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 28px 28px;
}
h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--gold);
  margin: 32px 0 10px;
  padding-top: 8px;
}
p, li { color: var(--text); font-size: 15.5px; }
.muted { color: var(--muted); }
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(245, 196, 81, 0.3); }
a:hover { border-bottom-color: var(--gold); }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: #fff; }
.lead { font-size: 17px; color: var(--muted); margin-top: 0; }

/* ---- Footer ---- */
.legal-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  border-top: 1px solid var(--border);
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.legal-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-footer a { color: var(--muted); border-bottom: none; font-size: 14px; }
.legal-footer a:hover { color: var(--gold); }
.legal-footer .built { font-size: 12px; color: var(--muted-2); }

@media (max-width: 560px) {
  .legal-header .inner { padding: 12px 16px; }
  main { padding: 32px 16px 16px; }
  .card { padding: 4px 18px 20px; }
  .brand .sub { display: none; }
}
