/* ─────────────────────────────────────────────────────────────
   Workflow Repair — shared stylesheet for the static legal pages
   (/tos /privacy /dpa /subprocessors /support /security /legal).
   Mirrors the landing design system (tailwind.config.js + src/style.css):
   Inter, indigo brand #6366f1 on #0b0f1a, glass cards, gradient headings.
   Self-hosted Inter (variable, latin+greek) — no third-party requests.
   No JavaScript on these pages.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #0b0f1a;
  color: #f1f5f9;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Breathing mesh glows — same vocabulary as the landing body::before */
body::before {
  content: '';
  position: fixed;
  inset: -10vh -10vw;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(900px 600px at 8% 0%, rgba(99,102,241,0.28) 0%, transparent 55%),
    radial-gradient(820px 540px at 95% 8%, rgba(236,72,153,0.20) 0%, transparent 55%),
    radial-gradient(720px 480px at 50% 110%, rgba(34,211,238,0.14) 0%, transparent 55%);
  animation: meshBreathe 80s ease-in-out infinite;
}
@keyframes meshBreathe {
  0%, 100% { opacity: 1;    transform: scale(1)    translate3d(0, 0, 0); }
  33%      { opacity: 0.85; transform: scale(1.04) translate3d(-2%, 1%, 0); }
  66%      { opacity: 1;    transform: scale(0.98) translate3d(1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

::selection { background: rgba(99,102,241,0.4); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #070a14; }
::-webkit-scrollbar-thumb { background: #312e81; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4338ca; }

/* ── Top bar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,26,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f1f5f9;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 26%;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f43f5e 100%);
  box-shadow: 0 8px 20px -6px rgba(236,72,153,0.55);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; }
.brand-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-back:hover { background: rgba(255,255,255,0.08); }

/* ── Page scaffolding ────────────────────────────────────────── */
.wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: #94a3b8;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6366f1;
  box-shadow: 0 0 12px currentColor;
  color: #6366f1;
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 60%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-meta {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 34px;
}
.page-meta strong { color: #cbd5e1; font-weight: 600; }

/* ── Content card ────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: clamp(24px, 4.5vw, 44px);
}
.card + .card { margin-top: 20px; }

/* Identity / notice block */
.id-block {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 4px 0 26px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #cbd5e1;
}
.id-block strong { color: #f1f5f9; }

/* ── Prose ───────────────────────────────────────────────────── */
.card h2 {
  margin: 34px 0 12px;
  padding-top: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}
.card h2:first-child { margin-top: 0; }
.card h2 .num { color: #818cf8; margin-right: 6px; }
.card h3 {
  margin: 22px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: #e2e8f0;
}
.card p {
  font-size: 15px;
  line-height: 1.78;
  color: #cbd5e1;
  margin: 0 0 13px;
}
.card ul, .card ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.card li {
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 7px;
}
.card li::marker { color: #6366f1; }
.card strong { color: #f1f5f9; font-weight: 700; }
.card a { color: #818cf8; text-decoration: none; border-bottom: 1px solid rgba(129,140,248,0.35); }
.card a:hover { color: #a5b4fc; border-bottom-color: rgba(165,180,252,0.6); }
.card hr { border: 0; border-top: 1px solid rgba(255,255,255,0.08); margin: 30px 0; }

/* ── Tables (subprocessors, support targets) ─────────────────── */
.table-scroll { overflow-x: auto; margin: 6px 0 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th {
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5b4fc;
  background: rgba(99,102,241,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  color: #cbd5e1;
  line-height: 1.6;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
tr:last-child td { border-bottom: 0; }
td strong { color: #f1f5f9; }

/* ── Hub cards (/legal) ──────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.hub-card {
  display: block;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hub-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(129,140,248,0.4);
  transform: translateY(-2px);
}
.hub-card .hub-title {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.hub-card .hub-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
}
.hub-card .hub-arrow { color: #818cf8; font-weight: 800; }

/* ── Footer ──────────────────────────────────────────────────── */
.legal-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 48px;
  padding: 30px 24px 40px;
}
.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
}
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.legal-footer a {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
}
.legal-footer a:hover { color: #e2e8f0; }
.legal-footer a[aria-current="page"] { color: #a5b4fc; }
.legal-footer .copy {
  font-size: 12.5px;
  color: #64748b;
}

@media (max-width: 640px) {
  .brand-tag { display: none; }
  .wrap { padding-top: 40px; }
}
