/* Just Ate — shared styles for legal pages.
   Same design tokens as the landing page (index.html). */

:root {
  --gold:   #FFB000;
  --amber:  #FFC83D;
  --on-acc: #1A1404;
  --cream:  #F4F1E9;
  --surf:   #FFFFFF;
  --surf2:  #FBF7EE;
  --ink:    #16130C;
  --sub:    #6F6A5E;
  --faint:  #A39D8F;
  --line:   rgba(20,18,10,0.09);
  --night:  #0B0B0E;
  --dink:   #F5F2EB;
  --dsub:   rgba(245,242,235,0.60);
  --dfaint: rgba(245,242,235,0.36);
  --dline:  rgba(255,255,255,0.09);
  --accent-ink: #9A6E1F;
  --ease:   cubic-bezier(0.2,0.85,0.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Satoshi', -apple-system, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--on-acc); }

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,241,233,0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 980px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(140deg, var(--amber), var(--gold));
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: var(--on-acc);
  box-shadow: 0 6px 16px -6px rgba(255,176,0,0.7);
}
.brand .word { font-weight: 900; font-size: 17px; letter-spacing: -0.4px; }
.nav-back {
  font-weight: 700; font-size: 14px; color: var(--sub); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 12px;
  transition: color .2s, background .2s;
}
.nav-back:hover { color: var(--ink); background: rgba(20,18,10,0.04); }

/* ---------- document ---------- */
main.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }

.doc-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
h1 {
  font-weight: 900; letter-spacing: -1.6px; line-height: 1.05;
  font-size: clamp(32px, 5vw, 46px); margin: 0 0 16px; text-wrap: balance;
}
.updated {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surf); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 13.5px; color: var(--sub);
  margin: 4px 0 12px;
}
.updated .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.doc-intro { font-size: 17px; line-height: 1.65; color: var(--sub); font-weight: 500; }

h2 {
  font-weight: 900; letter-spacing: -0.7px; line-height: 1.15;
  font-size: 24px; margin: 44px 0 14px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
h2 .no { color: var(--gold); margin-right: 10px; font-variant-numeric: tabular-nums; }
h3 { font-weight: 800; letter-spacing: -0.3px; font-size: 18px; margin: 26px 0 10px; }

p, li { font-size: 16px; line-height: 1.65; color: #3E3A2F; font-weight: 500; }
li { margin: 6px 0; }
ul, ol { padding-left: 24px; }
strong, b { color: var(--ink); font-weight: 800; }

.callout {
  background: var(--surf2); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 14px; padding: 16px 20px; margin: 22px 0;
  font-size: 15.5px; line-height: 1.6; color: #3E3A2F; font-weight: 500;
}

/* fill-in placeholders — visually flagged until replaced */
mark.todo {
  background: rgba(255,176,0,0.18);
  border: 1px dashed rgba(255,176,0,0.55);
  border-radius: 6px; padding: 1px 6px;
  font-weight: 700; color: var(--accent-ink);
}

/* ---------- tables ---------- */
.tbl-scroll { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surf); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; vertical-align: top; }
th {
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint); background: var(--surf2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { border-bottom: 1px solid var(--line); color: #3E3A2F; font-weight: 500; }
tr:last-child td { border-bottom: none; }

/* ---------- hub cards (legal index) ---------- */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.hub-card {
  display: block; background: var(--surf); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px; text-decoration: none; color: var(--ink);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.hub-card:hover {
  transform: translateY(-3px); border-color: rgba(255,176,0,0.45);
  box-shadow: 0 18px 40px -26px rgba(20,18,10,0.5);
  color: var(--ink);
}
.hub-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; letter-spacing: -0.4px; }
.hub-card p { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.55; }
.hub-card .go { display: inline-flex; margin-top: 14px; font-weight: 800; font-size: 13.5px; color: var(--accent-ink); }

/* ---------- footer ---------- */
footer.foot {
  border-top: 1px solid var(--line); background: var(--surf2);
  padding: 34px 24px 44px; margin-top: 40px;
}
.foot-inner {
  max-width: 780px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { font-weight: 700; font-size: 13.5px; color: var(--sub); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--faint); font-weight: 600; }

@media (max-width: 620px) {
  main.doc { padding-top: 40px; }
  .hub-grid { grid-template-columns: 1fr; }
  .nav-back span.txt { display: none; }
}
