/* Shared PlayJ1A policy surface: readable long-form content with the same
 * warm-paper, bottle-green visual language as the arcade hub. */

:root {
  color-scheme: light;
  --legal-bg: #e8edda;
  --legal-card: rgba(255, 253, 244, .88);
  --legal-ink: #173222;
  --legal-muted: #637066;
  --legal-line: rgba(35, 67, 45, .16);
  --legal-lime: #9bc83b;
  --legal-green: #1f7a4d;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--legal-bg); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding:
    calc(env(safe-area-inset-top) + 20px)
    calc(env(safe-area-inset-right) + 18px)
    calc(env(safe-area-inset-bottom) + 42px)
    calc(env(safe-area-inset-left) + 18px);
  color: var(--legal-ink);
  background:
    radial-gradient(circle at 86% 4%, rgba(187, 230, 96, .36), transparent 28rem),
    linear-gradient(160deg, #f3efdf, var(--legal-bg));
  font: 16px/1.65 "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
}

.legal-nav,
.legal-card,
.legal-footer {
  width: min(820px, 100%);
  margin-inline: auto;
}

.legal-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand,
.legal-back {
  color: var(--legal-ink);
  font-weight: 900;
  text-decoration: none;
}
.legal-brand { font-family: Georgia, serif; font-size: 27px; letter-spacing: -.05em; }
.legal-brand span { color: var(--legal-green); font: 800 10px/1 system-ui, sans-serif; letter-spacing: .16em; }
.legal-back { color: var(--legal-green); font-size: 12px; }

.legal-card {
  margin-top: 18px;
  padding: clamp(25px, 6vw, 58px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), transparent 30%),
    var(--legal-card);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: clamp(24px, 4vw, 36px);
  box-shadow: 0 32px 80px rgba(42, 70, 44, .14);
  backdrop-filter: blur(20px) saturate(1.08);
}

h1 {
  margin: 0 0 5px;
  font-size: clamp(39px, 7vw, 62px);
  line-height: .95;
  letter-spacing: -.055em;
}
h2 { margin: 34px 0 8px; font-size: 20px; line-height: 1.25; }
p { margin: 11px 0; }
a { color: var(--legal-green); }
.meta { margin-bottom: 18px; color: var(--legal-muted); font-size: 13px; }
.note {
  margin: 20px 0 26px;
  padding: 13px 15px;
  background: rgba(250, 202, 94, .13);
  border: 1px solid rgba(191, 140, 43, .24);
  border-radius: 12px;
  font-size: 13px;
}
.todo {
  padding: 2px 6px;
  background: rgba(221, 86, 74, .1);
  border: 1px solid rgba(221, 86, 74, .24);
  border-radius: 6px;
}

.table-scroll {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
}
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--legal-line); }
tr:last-child td { border-bottom: 0; }
th { background: rgba(122, 164, 64, .09); }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 10px 0;
  color: var(--legal-muted);
  font-size: 11px;
}
.legal-footer nav { display: flex; gap: 16px; }

:focus-visible { outline: 3px solid var(--legal-lime); outline-offset: 3px; }

@media (max-width: 560px) {
  body { font-size: 15px; }
  .legal-nav { min-height: 54px; }
  .legal-card { margin-top: 10px; }
  .legal-footer { flex-direction: column; }
}
