/* Shared styling for the ungated legal pages (privacy.html, terms.html).
   These are plain static files served outside the game bundle, so this
   stylesheet stands alone — it intentionally repeats a few tokens from the
   app's style.css rather than importing it. */

:root {
  --ink: #0c0a06;
  --gold: #c9a45c;
  --gold-bright: #ecd29a;
  --parchment: #e8d9ad;
  --parchment-dim: #a99a74;
  --rule: rgba(201, 164, 92, 0.28);
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Spectral', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(40, 30, 16, 0.6), transparent 60%),
    var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.legal-back:hover {
  color: var(--gold-bright);
}

.legal-crest {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin: 0 0 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.legal-date {
  color: var(--parchment-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.legal-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  margin: 28px 0 36px;
}

.legal-intro {
  font-size: 17px;
  color: var(--parchment);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 40px 0 10px;
}

h2::before {
  content: '⚔';
  color: var(--gold-dim, rgba(201, 164, 92, 0.55));
  margin-right: 10px;
  font-size: 16px;
  vertical-align: middle;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin: 0 0 8px;
}

a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #fff;
}

strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.legal-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--parchment-dim);
}

.legal-foot a {
  color: var(--parchment-dim);
  text-decoration: none;
}

.legal-foot a:hover {
  color: var(--gold-bright);
}
