/* ─── Mochi · legal pages · shared styles ───────────────────────────
   Brand tokens lifted from screens-bubble.jsx (BUBBLE) + MochiTokens.
   cream #FFF4E3 · peach #FFE7C2 · ink #3A2A1F · coral #FF8B7A
   Fredoka (headings) · DM Sans (body)
------------------------------------------------------------------- */

:root {
  --bg:        #FFF4E3;
  --bg-alt:    #FFE7C2;
  --ink:       #3A2A1F;
  --ink-soft:  rgba(58,42,31,0.62);
  --ink-faint: rgba(58,42,31,0.32);
  --white:     #FFFEFB;
  --line:      rgba(58,42,31,0.18);
  --coral:     #FF8B7A;
  --mint:      #9FDDB8;
  --sunny:     #FFD66B;
  --sky:       #8FC8E8;
  --taro:      #F7A8D0;

  --head: "Fredoka", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", "Fredoka", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection { background: var(--coral); color: var(--white); }

a { color: inherit; transition: opacity 120ms ease; }
a:hover { opacity: 0.65; }

/* ─── top nav ─────────────────────────────────────────────────── */
.lg-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,244,227,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.lg-nav__inner {
  max-width: 1080px; margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lg-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.lg-brand__mark {
  font-family: var(--head); font-weight: 800; font-size: 22px;
  letter-spacing: -0.8px; color: var(--ink);
  text-shadow: 1.5px 2px 0 var(--coral);
}
.lg-nav__links {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: flex-end;
}
.lg-pill {
  font-family: var(--head); font-weight: 600; font-size: 13px;
  text-decoration: none; color: var(--ink);
  padding: 7px 14px; border-radius: 999px;
  border: 2px solid transparent; white-space: nowrap;
}
.lg-pill--active {
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  font-weight: 700;
}
.lg-pill--home {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 0 var(--coral);
  font-weight: 700;
}

/* ─── header band ─────────────────────────────────────────────── */
.lg-header {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--ink);
  position: relative; overflow: hidden;
}
.lg-header__inner {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 40px);
  display: flex; align-items: center; gap: 40px; justify-content: space-between;
}
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 800; font-size: 12px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--coral);
  margin-bottom: 16px;
}
.lg-title {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(38px, 6vw, 60px); letter-spacing: -2px; line-height: 1;
  margin: 0 0 18px;
}
.lg-sub {
  font-size: clamp(15px, 2vw, 17px); color: var(--ink-soft);
  font-weight: 500; max-width: 520px; margin: 0;
}
.lg-updated {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: var(--white); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  border-radius: 999px; padding: 8px 16px;
  font-family: var(--head); font-weight: 700; font-size: 13px;
}
.lg-header__art { flex-shrink: 0; display: block; }
@media (max-width: 720px) { .lg-header__art { display: none; } }

/* ─── body layout ─────────────────────────────────────────────── */
.lg-main {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .lg-main { grid-template-columns: 1fr; gap: 20px; }
}

/* table of contents */
.lg-toc {
  position: sticky; top: 96px;
  border-left: 2px dashed var(--line);
  padding-left: 18px;
}
@media (max-width: 860px) {
  .lg-toc {
    position: static; border-left: none; padding-left: 0;
    background: var(--white); border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 0 var(--ink); border-radius: 18px; padding: 16px 18px;
  }
}
.lg-toc__label {
  font-family: var(--head); font-weight: 800; font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--coral);
  margin-bottom: 12px;
}
.lg-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lg-toc__list a {
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  display: flex; gap: 8px; line-height: 1.35;
}
.lg-toc__list a:hover { color: var(--ink); opacity: 1; }
.lg-toc__list a.is-active { color: var(--coral); }
.lg-toc__num { font-family: var(--head); font-weight: 700; color: var(--ink-faint); flex-shrink: 0; }

/* content */
.lg-content { min-width: 0; max-width: 720px; }
.lg-intro {
  font-size: clamp(16px, 2.2vw, 18px); line-height: 1.65;
  color: var(--ink); font-weight: 500;
  background: var(--white); border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--ink); border-radius: 22px;
  padding: 24px 26px; margin: 0 0 12px;
}
.lg-intro strong { color: var(--coral); font-weight: 700; }

.lg-section { padding-top: 38px; scroll-margin-top: 96px; }
.lg-section__head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
}
.lg-section__num {
  font-family: var(--head); font-weight: 800; font-size: 15px;
  color: var(--coral); letter-spacing: 0.5px; flex-shrink: 0;
}
.lg-section h2 {
  font-family: var(--head); font-weight: 700; font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.6px; line-height: 1.15; margin: 0;
}
.lg-section h3 {
  font-family: var(--head); font-weight: 700; font-size: 17px;
  letter-spacing: -0.2px; margin: 24px 0 6px;
}
.lg-section p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink); }
.lg-section p.muted { color: var(--ink-soft); }
.lg-section ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lg-section ul li {
  position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55;
}
.lg-section ul li::before {
  content: "✿"; position: absolute; left: 0; top: 0;
  color: var(--coral); font-size: 13px;
}
.lg-section ul li strong { font-weight: 700; }

/* callout / note box */
.lg-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-alt); border: 2px solid var(--ink);
  border-radius: 18px; padding: 16px 18px; margin: 18px 0;
}
.lg-note__icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px;
  background: var(--sunny); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.lg-note p { margin: 0; font-size: 14px; font-weight: 500; }
.lg-note--mint .lg-note__icon { background: var(--mint); }
.lg-note--sky  .lg-note__icon { background: var(--sky); }

/* definition / data table */
.lg-table {
  border: 2px solid var(--ink); border-radius: 18px; overflow: hidden;
  margin: 18px 0; box-shadow: 4px 4px 0 0 var(--ink);
}
.lg-table__row {
  display: grid; grid-template-columns: 200px 1fr;
  border-bottom: 1.5px solid var(--line);
}
.lg-table__row:last-child { border-bottom: none; }
@media (max-width: 560px) { .lg-table__row { grid-template-columns: 1fr; } }
.lg-table__k {
  padding: 14px 16px; font-family: var(--head); font-weight: 700; font-size: 14px;
  background: var(--white); border-right: 1.5px solid var(--line);
}
@media (max-width: 560px) { .lg-table__k { border-right: none; border-bottom: 1.5px solid var(--line); } }
.lg-table__v {
  padding: 14px 16px; font-size: 14.5px; background: var(--white); color: var(--ink-soft);
}

/* divider squiggle */
.lg-squiggle { display: block; margin: 4px 0; color: var(--coral); }

/* cross-links */
.lg-crosslinks {
  max-width: 1080px; margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 40px) 64px;
}
.lg-crosslinks__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
}
.lg-xcard {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--white); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink); border-radius: 18px; padding: 18px 20px;
}
.lg-xcard:hover { opacity: 1; transform: translate(-1px,-1px); box-shadow: 5px 5px 0 0 var(--ink); }
.lg-xcard__t { font-family: var(--head); font-weight: 700; font-size: 16px; }
.lg-xcard__d { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* footer */
.lg-footer {
  border-top: 2px solid var(--ink); background: var(--bg-alt);
}
.lg-footer__inner {
  max-width: 1080px; margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.lg-footer__inner a { text-decoration: none; }
.lg-draftnote {
  max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) 26px;
  font-size: 12px; color: var(--ink-faint); font-style: italic; line-height: 1.5;
}
