/*
  Forest Legends — the company and legal pages.
  Loaded AFTER the site's own styles.css, which supplies the shared footer so
  that it is literally the same footer as the home page. Everything below only
  governs the document body of these pages, and overrides the handful of bare
  element rules styles.css sets for the game pages (html, body, a, img, main).
*/
.legal-page {
  --ivory: #fbf5e6;
  --emerald-deep: #0b3d2e;
  --emerald: #12805a;
  --emerald-bright: #2fbf8a;
  --gold: #f3cf7a;
  --ink: #0f2a20;
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 16px/1.65 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
.legal-page main {
  background: none;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 56px;
  overflow: visible;
}
.legal-page img { max-width: 100%; height: auto; }
.legal-page a { color: var(--emerald); font-weight: 600; }
.legal-page a:focus-visible,
.legal-page button:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  padding: 10px 16px; background: var(--emerald-deep); color: var(--ivory); border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.page-header { background: var(--emerald-deep); color: var(--ivory); padding: 20px 16px 30px; }
.page-header__inner { max-width: 820px; margin: 0 auto; }
.page-header__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-header__logo img { height: 46px; width: auto; display: block; }

.back-home {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--gold); font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 7px 14px; border: 1px solid #f3cf7a55; border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.back-home:hover, .back-home:focus-visible { background: #f3cf7a1f; border-color: var(--gold); transform: translateX(-2px); }
.back-home span { font-size: 16px; line-height: 1; }
.back-home-bottom { margin: 42px 0 0; padding-top: 22px; border-top: 1px solid rgb(18 128 90 / 22%); }

.page-header .eyebrow {
  margin: 24px 0 0; letter-spacing: .14em; font-size: 12px; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
}
.page-header h1 { margin: 6px 0 0; font-size: clamp(26px, 5vw, 34px); line-height: 1.18; }
.page-header .meta { margin: 12px 0 0; font-size: 13px; color: rgb(251 245 230 / 72%); }

.legal-page main h2 { margin: 34px 0 8px; font-size: 20px; color: var(--emerald-deep); line-height: 1.3; }
.legal-page main h3 { margin: 22px 0 6px; font-size: 17px; color: var(--emerald-deep); }
.legal-page main p, .legal-page main li { margin: 0 0 12px; }
.legal-page main ul, .legal-page main ol { padding-left: 22px; }
.lead { font-size: 17px; }

.card {
  margin: 18px 0; padding: 18px 20px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(18 128 90 / 28%);
}
.card h2, .card h3 { margin-top: 0; }

dl.facts { margin: 0; display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 8px 18px; }
dl.facts dt { font-weight: 700; color: var(--emerald-deep); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.legal-page table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgb(18 128 90 / 25%); }
.legal-page th { background: rgb(18 128 90 / 10%); color: var(--emerald-deep); }

/* The shared footer keeps its own styling from styles.css; it only needs the
   top margin reset, because here it follows a document rather than a scene. */
.legal-page .site-footer { margin-top: 0; }

@media (max-width: 560px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px 0; }
  dl.facts dd { margin-bottom: 10px; }
  .page-header__logo img { height: 38px; }
  .back-home { font-size: 13px; padding: 6px 12px; }
  .legal-page main { padding: 22px 16px 44px; }
  /* A wide table cannot be made narrow, so it scrolls inside its own box
     instead of pushing the whole page sideways on a phone. */
  .legal-page table { display: block; overflow-x: auto; white-space: normal; }
}


/* ── Game Guide: the rendered pages ───────────────────────────────────────
   The guide is published as one image per page, the way the sibling site
   publishes its own. This page is wider than a policy page so a whole sheet
   can be read without zooming, and each page carries an anchor so the
   contents can jump straight to it. */
.legal-page.guide-page-body main { max-width: 900px; }

.guide-toc {
  margin: 24px 0 36px; padding: 24px 26px; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgb(18 128 90 / 28%);
}
.guide-toc h2 { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: guide; columns: 2; column-gap: 32px; }
.guide-toc li { counter-increment: guide; margin: 0 0 8px; break-inside: avoid; font-size: 15px; }
.guide-toc li::before { content: counter(guide, upper-roman) ". "; color: var(--emerald); font-weight: 700; }
.guide-toc a { text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

.guide-pages { display: flex; flex-direction: column; gap: 30px; }
.guide-page { margin: 0; scroll-margin-top: 18px; }
.guide-page img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgb(11 61 46 / 22%), 0 0 0 1px rgb(18 128 90 / 14%);
}

@media (max-width: 680px) {
  .guide-toc ol { columns: 1; }
  .guide-toc { padding: 18px 18px; }
  .guide-pages { gap: 18px; }
}

/* ── Download the guide ───────────────────────────────────────────────── */
.guide-get {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 22px;
  margin: 22px 0 30px; padding: 20px 24px; border-radius: 14px;
  background: var(--emerald-deep); color: var(--ivory);
}
.guide-get p { margin: 0; font-size: 14px; line-height: 1.5; color: #e9f0d8c2; }
.guide-get strong { display: block; color: var(--ivory); font-size: 16px; margin-bottom: 3px; }
.guide-get a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px;
  background: var(--gold); color: #3a2c06; font-weight: 700; font-size: 14px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-get a:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #f3cf7a4d; }
@media (max-width: 560px) {
  .guide-get { flex-direction: column; align-items: stretch; text-align: left; }
  .guide-get a { justify-content: center; }
}

/* Play sits in the header of every company and legal page too, so the game is
   one press away wherever the visitor has wandered. */
.page-header__actions { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.legal-page .header-play {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 20px; border-radius: 999px;
  background: linear-gradient(180deg, #2a9a63, #157245);
  box-shadow: inset 0 1px 0 #ffffff3d, 0 0 0 1px #ffe6924d, 0 6px 18px #04221a4d;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.legal-page .header-play:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #ffffff4d, 0 0 0 1px #ffe692a6, 0 10px 22px #04221a66; }
@media (max-width: 560px) {
  .page-header__actions { gap: 8px; }
  .legal-page .header-play { height: 34px; padding: 0 14px; font-size: 11px; }
}
