/* Shared legal-page styling for Feed Enhancer */
:root {
  --navy: #18365A;
  --navy-2: #0F2742;
  --blue: #2A8FE5;
  --orange: #F58220;
  --orange-2: #F9A04A;
  --ink: #0E1B2C;
  --muted: #5A6B80;
  --line: #E4EAF2;
  --paper: #FFFFFF;
  --cream: #F6F8FB;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  font-size: 16px;
}
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* NAV — matches main page */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 104px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 64px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-cta {
  background: var(--navy); color: white;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--navy-2); transform: translateY(-1px); text-decoration: none; color: white; }

/* PAGE HEAD */
.page-head {
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(245,130,32,.06), transparent 60%),
    radial-gradient(800px 500px at 0% 20%, rgba(42,143,229,.08), transparent 55%),
    linear-gradient(180deg, #FAFCFF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.page-head h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-2);
  margin: 14px 0 12px;
  line-height: 1.08;
  max-width: 820px;
  text-wrap: balance;
}
.page-head .updated {
  font-size: 13px; color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}
.page-head .updated b { color: var(--navy); font-weight: 700; }

/* LAYOUT — TOC + content */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding: 56px 0 96px;
  align-items: start;
}
.toc {
  position: sticky; top: 128px;
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.toc .toc-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.toc ol {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  counter-reset: toc;
}
.toc ol li { counter-increment: toc; }
.toc ol a {
  display: grid; grid-template-columns: 26px 1fr; gap: 6px;
  font-size: 13.5px; color: var(--muted);
  line-height: 1.4;
}
.toc ol a:hover { color: var(--navy); text-decoration: none; }
.toc ol a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--orange); font-weight: 700;
  padding-top: 1px;
}

/* CONTENT */
.content { max-width: 760px; }
.content h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--navy-2);
  margin: 48px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 128px;
}
.content h2:first-child { margin-top: 0; }
.content h2 .nr {
  font-family: "JetBrains Mono", monospace;
  color: var(--orange); font-weight: 700;
  font-size: 14px; margin-right: 10px;
  vertical-align: middle;
}
.content h3 {
  font-size: 17px; font-weight: 700; color: var(--navy-2);
  margin: 28px 0 8px;
}
.content p, .content li {
  color: #233247;
  font-size: 15.5px;
}
.content p { margin: 0 0 14px; }
.content ul, .content ol { padding-left: 20px; margin: 0 0 18px; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--navy-2); font-weight: 700; }

.callout {
  border: 1px solid var(--line);
  background: var(--cream);
  border-left: 3px solid var(--orange);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 24px 0;
  font-size: 14.5px;
  color: #364859;
}
.callout b { color: var(--navy-2); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table th {
  font-weight: 600; color: var(--muted);
  width: 30%;
  background: var(--cream);
}
.info-table td { color: var(--ink); }

/* FOOTER */
footer {
  background: #0B1E36;
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  font-size: 14px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.foot-grid .col h4 {
  color: white; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 16px; font-weight: 700;
}
.foot-grid .col a { display: block; padding: 5px 0; color: rgba(255,255,255,.7); }
.foot-grid .col a:hover { color: white; text-decoration: none; }
.foot-logo img { height: 48px; filter: brightness(0) invert(1); opacity: .92; }
.foot-about { margin-top: 18px; max-width: 320px; line-height: 1.6; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; border-left: 0; padding-left: 0;
    border: 1px solid var(--line); border-radius: 12px; padding: 18px;
    background: var(--cream); }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-inner { height: 80px; }
  .nav-logo img { height: 48px; }
  .foot-grid { grid-template-columns: 1fr; }
}
