/* Professor Prokar Dasgupta: legal pages (Privacy, Cookies). Single reading column; tokens from styles.css. */

/* ---- Hero (compact, headline-led — mirrors support/about hero) ---- */
.legal-hero__inner { padding-block: 72px 64px; }
.legal-hero__lead { max-width: 820px; }
.legal-hero__h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 20px;
}
.legal-hero__meta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-muted);
  margin: 0;
}

/* ---- Body ---- */
.legal { background: var(--bg); }
.legal__inner {
  max-width: 760px;
  padding-block: 72px 96px;
}
.legal__intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--heading);
  margin: 0 0 44px;
  text-wrap: pretty;
}
.legal__intro strong { font-weight: 700; }

.legal-section { margin: 0 0 40px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 16px;
}
.legal-section__num {
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--link);
  flex: none;
  transform: translateY(-1px);
}
.legal-section__title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.2;
  color: var(--heading);
  margin: 0;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--heading); font-weight: 700; }
.legal-section a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  transition: border-color 160ms ease, color 160ms ease;
}
.legal-section a:hover { color: var(--link-hover); border-bottom-color: var(--link); }

.legal-section ul {
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.legal-section li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.legal-section li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-section li strong { color: var(--heading); }

/* callout for the cookie-manager button link */
.legal-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff !important;
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(13, 5, 24, 0.5);
  transition: background 180ms ease, transform 180ms ease;
  font-family: inherit;
}
.legal-cta-btn:hover { background: var(--link); transform: translateY(-1px); }

@media (max-width: 640px) {
  .legal-hero__inner { padding-block: 44px 40px; }
  .legal__inner { padding-block: 48px 64px; }
  .legal__intro { font-size: 16px; }
}

/* ---- Dark theme ---- */
[data-theme="dark"] .legal { background: var(--bg); }
[data-theme="dark"] .legal__intro { color: #fff; }
[data-theme="dark"] .legal-section__num { color: var(--peach); }
[data-theme="dark"] .legal-section__title { color: #fff; }
[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section li { color: var(--text-on-dark-muted); }
[data-theme="dark"] .legal-section strong,
[data-theme="dark"] .legal-section li strong { color: #fff; }
[data-theme="dark"] .legal-section a { color: var(--peach); border-bottom-color: currentColor; }
[data-theme="dark"] .legal-section a:hover { color: #fff; border-bottom-color: var(--peach); }
[data-theme="dark"] .legal-section li::before { background: var(--peach); }
[data-theme="dark"] .legal-cta-btn { background: var(--peach); color: var(--navy-900) !important; }
[data-theme="dark"] .legal-cta-btn:hover { background: #fff; }

.legal-section a { border-bottom-color: currentColor; text-decoration: none; }
.legal-hero{position:relative;background:var(--navy);color:var(--text-on-dark);overflow:hidden}
[data-theme="dark"] .legal-hero{background:var(--bg-deep)}
.legal-hero .eyebrow{color:var(--peach);margin:0 0 14px}
.legal-hero__meta{font-family:var(--mono)}
.legal-table{width:100%;border-collapse:collapse;margin:8px 0 14px;font-size:15px}
.legal-table th,.legal-table td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--border)}
.legal-table th{color:var(--heading);font-weight:700}
.legal-table td{color:var(--text);line-height:1.55}
.legal-table code{font-family:var(--mono);font-size:.92em}
.legal-tablewrap{overflow-x:auto}
