/* Shared styles for dedicated legal policy pages */
:root {
  --bg: #050505;
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.72);
  --faint: rgba(244, 244, 245, 0.45);
  --hairline: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --accent: #a78bfa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img { height: 28px; width: auto; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-toggle button.on {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-ghost {
  border-color: var(--glass-border);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); }
.btn-primary {
  background: #fff;
  color: #050505;
}
main { padding: 48px 0 80px; }
.breadcrumb {
  color: var(--faint);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--muted); }
h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.updated {
  color: var(--faint);
  font-size: 0.92rem;
  margin: 0 0 28px;
}
.policy h2 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
.policy p, .policy li {
  color: var(--muted);
  font-size: 0.98rem;
}
.policy ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}
.policy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy[hidden] { display: none !important; }
.policy h3 {
  font-size: 0.95rem;
  margin: 20px 0 6px;
  color: var(--text);
}
.policy strong { color: var(--text); }

.lede {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.06);
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.07);
}

.table-scroll {
  margin: 12px 0 0;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--muted);
}
th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}
tbody tr:last-child td { border-bottom: 0; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--glass-border);
  color: var(--muted);
}
.tag.yes { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.35); background: rgba(110, 231, 183, 0.1); }
.tag.no { color: #fca5a5; border-color: rgba(252, 165, 165, 0.35); background: rgba(252, 165, 165, 0.1); }
.tag.partial { color: #fcd34d; border-color: rgba(252, 211, 77, 0.35); background: rgba(252, 211, 77, 0.1); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}
.card {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.card h3 { margin: 0 0 6px; font-size: 0.95rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Site footer, identical on every page */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  padding: 44px 0 calc(28px + env(safe-area-inset-bottom, 0));
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px 32px;
}
.footer-col h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-base {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  color: var(--faint);
  font-size: 0.85rem;
}
.footer-base a { color: var(--faint); }
.footer-base a:hover { color: var(--muted); }
footer .foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}
footer .foot-nav a:hover { color: var(--text); }

/* Cookie consent banner (non-essential trackers are blocked until accepted) */
.cookie-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 100;
  width: min(720px, calc(100% - 24px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.88rem;
  color: var(--muted);
}
.cookie-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar .cookie-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.cookie-bar button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
}
.cookie-bar button.accept {
  background: #fff;
  border-color: #fff;
  color: #050505;
}

/* Pilot / case study */
.case-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  margin: 8px 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.case-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}
.case-hero .eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}
.case-hero .role {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 8px;
}
.stat {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}
.stat .value {
  display: block;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}
.stat .label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--faint);
  line-height: 1.35;
}
.quote {
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.06);
}
.quote p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--faint);
}
.disclaimer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 920px); }
  .brand span { display: none; }
  table { min-width: 560px; }
  .case-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }
  .case-photo {
    width: 120px;
    height: 120px;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
 * Shared motion system (motion.js + Motion CDN). Elements matching the
 * AUTO_SELECTOR list in motion.js start in this hidden/offset state and
 * spring into place once observed — Motion owns opacity/transform via
 * inline style, so no CSS transition is declared on them (nothing fights
 * Motion for control of the same property, matching data-protection's
 * established pattern on this site).
 * --------------------------------------------------------------------- */
.policy > h2,
.policy > h3,
.policy > p,
.policy > ul,
.policy > ol,
.policy .callout,
.table-scroll,
.cards .card,
.case-hero,
.stat-row,
.quote {
  opacity: 0;
  transform: translateY(16px);
}
.policy > h2.in,
.policy > h3.in,
.policy > p.in,
.policy > ul.in,
.policy > ol.in,
.policy .callout.in,
.table-scroll.in,
.cards .card.in,
.case-hero.in,
.stat-row.in,
.quote.in {
  opacity: 1;
  transform: none;
}
/* transform is owned by Motion's hover-lift on cards — no CSS transition here */
.cards .card { transition: border-color 0.25s ease; }

@media (prefers-reduced-motion: reduce) {
  .policy > h2, .policy > h3, .policy > p, .policy > ul, .policy > ol,
  .policy .callout, .table-scroll, .cards .card, .case-hero, .stat-row, .quote {
    opacity: 1;
    transform: none;
  }
}
