/* Privacy Policy and Terms pages: a parchment document on the royal leather background. */
.legal { max-width: 820px; margin: 0 auto; padding: 32px 16px 56px; }
.legal-back { display: inline-block; margin-bottom: 18px; color: var(--gold-hi); font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal-doc {
  background: var(--noise), var(--stain), radial-gradient(ellipse at center, var(--parch) 55%, var(--parch-2) 100%);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 0 0 4px var(--wood-lo), 0 0 0 5px var(--gold-lo), inset 0 0 50px rgba(120, 72, 24, 0.4), 0 18px 40px rgba(0, 0, 0, 0.6);
  padding: 40px clamp(20px, 5vw, 56px) 44px;
  position: relative;
  font-size: 17px;
  line-height: 1.6;
}
.legal-doc::before {
  content: '';
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid rgba(138, 106, 34, 0.45);
  border-radius: 3px;
  background:
    var(--corner-tl) top left / 38px no-repeat,
    var(--corner-tr) top right / 38px no-repeat,
    var(--corner-bl) bottom left / 38px no-repeat,
    var(--corner-br) bottom right / 38px no-repeat;
}
.legal-doc h1 {
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  font-weight: 700;
  color: var(--crimson);
  font-size: clamp(28px, 5vw, 40px);
  text-align: center;
  margin: 0 0 4px;
}
.legal-doc .dated { text-align: center; font-style: italic; color: var(--ink-soft); margin: 0 0 24px; }
.legal-doc h2 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--crimson);
  font-size: 19px;
  letter-spacing: 0.04em;
  margin: 28px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(138, 106, 34, 0.45);
}
.legal-doc p, .legal-doc li { color: var(--ink); }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: var(--crimson); }
.legal-doc .summary { background: rgba(255, 250, 235, 0.45); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 2px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px dashed rgba(120, 85, 40, 0.4); }
.legal-doc th { font-family: 'Cinzel', Georgia, serif; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }
.legal-foot { text-align: center; margin-top: 22px; color: var(--muted); font-style: italic; }
.legal-foot a { color: var(--gold-hi); }

/* Footer links on the game's own screens */
.site-foot { text-align: center; padding: 24px 16px 30px; color: var(--muted); font-style: italic; font-size: 15px; }
.site-foot a { color: var(--gold-hi); font-family: 'Cinzel', Georgia, serif; font-style: normal; font-weight: 700; letter-spacing: 0.05em; text-decoration: none; margin: 0 8px; }
.site-foot a:hover { text-decoration: underline; }
