/* Shared stylesheet for the legal, support and attribution pages.
   Tokens sampled from index.html so the pages read as part of playgm.app. */
:root {
  --blue: #0066FF;
  --blue-dark: #0052CC;
  --orange: #FF6600;
  --error: #EF4444;
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-alt: #EFF2F7;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --grad-bg: linear-gradient(180deg, #EFF6FF 0%, #F0F4FF 50%, #FAFAFA 100%);
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --font: 'Lexend', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--grad-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.container { width: min(880px, 92%); margin-inline: auto; }

/* Header */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -0.03em; font-size: 26px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); background: #fff; }
.wordmark-play { color: var(--blue); }
.wordmark-gm { color: var(--orange); }
.back-link { color: var(--text-secondary); font-weight: 500; font-size: 15px; white-space: nowrap; }
.back-link:hover { color: var(--text); }

/* Draft banner: red, first thing on the page, cannot be missed. */
.draft-banner {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 2px solid var(--error);
  border-radius: var(--radius-md);
  background: #FEF2F2;
  color: #7F1D1D;
  font-size: 15px;
  line-height: 1.5;
}
.draft-banner strong { display: block; font-size: 17px; font-weight: 800; color: #B91C1C; margin-bottom: 4px; }
mark.placeholder {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid var(--error);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
  white-space: pre-wrap;
}

/* Document body */
.doc {
  margin: 24px 0 32px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.doc h1 { font-size: clamp(30px, 4.5vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 16px; }
.doc h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; font-weight: 800; margin: 28px 0 10px; }
.doc h4 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.doc p { margin: 0 0 1em; color: var(--text-secondary); }
.doc p.meta { color: var(--text-muted); font-size: 14px; padding: 12px 16px; background: var(--surface-alt); border-radius: var(--radius-md); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--text-secondary); }
.doc li { margin: 0 0 .45em; }
.doc li > ul, .doc li > ol { margin-top: .45em; }
.doc li.task { list-style: none; margin-left: -1.4em; }
.doc .checkbox { display: inline-block; width: 1.4em; color: var(--text); }
.doc blockquote {
  margin: 0 0 1.2em;
  padding: 12px 18px;
  border-left: 4px solid var(--orange);
  background: #FFF7ED;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.doc blockquote p { color: #7C2D12; margin-bottom: .5em; }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-alt); padding: 1px 5px; border-radius: 4px; }
.doc code.slot { background: #EFF6FF; color: var(--blue-dark); }
.doc pre { background: #0F172A; color: #E2E8F0; padding: 16px 18px; border-radius: var(--radius-md); overflow-x: auto; font-size: 13px; line-height: 1.5; }
.doc pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius-md); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { background: var(--surface-alt); font-weight: 700; color: var(--text); }
.doc tr:last-child td { border-bottom: 0; }

/* Kids page: bigger, roomier type. */
.doc.kids { font-size: 20px; line-height: 1.7; }
.doc.kids h1 { font-size: clamp(34px, 5vw, 44px); }
.doc.kids h2 { font-size: 28px; margin-top: 44px; }
.doc.kids p, .doc.kids li { color: var(--text); }
.doc.kids li { margin-bottom: .6em; }
.doc.kids p.meta { font-size: 15px; }

.provenance { font-size: 13px; color: var(--text-muted); margin: 0 0 40px; line-height: 1.6; }
.provenance code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }

/* Footer, matching the home page's dark footer. */
.site-footer { background: #0F172A; color: #CBD5E1; padding: 40px 0 28px; margin-top: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.footer-links a { color: #94A3B8; font-size: 14px; font-weight: 500; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #fff; }
.footer-links a[aria-current="page"] { font-weight: 700; }
.footer-contact { margin: 0 0 12px; font-size: 14px; color: #94A3B8; }
.footer-contact a { color: #E2E8F0; }
.footer-legal { margin: 0; font-size: 12px; color: #64748B; line-height: 1.6; border-top: 1px solid #1E293B; padding-top: 18px; }

@media (max-width: 600px) {
  .brand { font-size: 22px; }
  .back-link { font-size: 14px; }
  .doc h2 { font-size: 21px; }
  .doc.kids { font-size: 18px; }
}
