/* Shared styles for legal pages (privacy, terms) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #000;
  --white: #fff;
  --ink: #0c0c0d;
  --muted: #4b4d52;
  --border: #eaeaea;
  --soft-bg: #f4f4f5;
  --shadow-card: 0 3px 13.3px rgba(0,0,0,0.05);
  --display: "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
html, body {
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ── Header ── */
.legal-header {
  display: flex;
  justify-content: center;
  padding: 28px 24px 0;
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--black);
}
.brand img { display: block; height: 26px; width: auto; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; pointer-events: none; }

/* ── Article ── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal .back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  color: var(--black);
  opacity: .55;
  text-decoration: none;
  margin-bottom: 32px;
  transition: opacity .15s ease;
}
.legal .back:hover { opacity: 1; }
.legal .back svg { width: 14px; height: 14px; }

.legal h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  text-align: center;
}
.legal .updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
  text-align: center;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.legal p, .legal li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.legal p + p { margin-top: 12px; }
.legal strong { font-weight: 600; }
.legal a:not(.credit-link):not(.brand):not(.btn-primary) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.legal a:hover { opacity: .65; }

.legal ul, .legal ol {
  margin: 12px 0 0 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal li { padding-left: 4px; }

/* Table */
.legal-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal th, .legal td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.legal tr:last-child th, .legal tr:last-child td { border-bottom: 0; }
.legal th {
  font-weight: 500;
  background: var(--soft-bg);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.legal td:first-child {
  font-weight: 500;
  white-space: nowrap;
}

/* ── Footer (matches landing outro) ── */
.legal-footer {
  background: var(--soft-bg);
  border-radius: 64px 64px 0 0;
  padding: 100px 24px 60px;
  text-align: center;
  margin-top: 40px;
}
.legal-footer .brand { margin-bottom: 32px; }
.legal-footer h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 5.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 auto 16px;
  white-space: nowrap;
}
.legal-footer p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.5;
}
.legal-footer .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 53px; padding: 0 32px;
  border-radius: 100px;
  background: var(--black); color: var(--white);
  font-weight: 500; font-size: 17px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.legal-footer .btn-primary:hover { background: #1a1a1a; transform: translateY(-1px); }
.legal-footer .btn-primary:active { transform: translateY(0); }
.legal-footer .btn-primary.is-unsupported {
  background: #4b4d52;
  cursor: help;
}
.legal-footer .btn-primary.is-unsupported:hover { background: #5a5d63; }
.legal-footer .install-hint {
  margin-top: 14px;
  font-size: 12px;
  color: #9aa0a8;
  text-align: center;
}
.legal-footer .install-hint[hidden] { display: none; }
.legal-footer .credit {
  margin-top: 32px;
  opacity: .5;
  font-size: 14px;
  margin-bottom: 0;
}
.legal-footer .credit-link {
  transition: opacity .15s ease;
}
.legal-footer .credit-link:hover { opacity: .6; }
.legal-footer .footer-links {
  display: flex; justify-content: center; gap: 20px;
  margin-top: 24px;
  font-size: 14px;
}
/* ─────────────────────────────────────────────────────────
   Footer use-cases nav row (lives ABOVE Privacy/Terms)
   ───────────────────────────────────────────────────────── */
.legal-footer .use-cases-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 28px;
  margin: 36px auto 0;
  max-width: 720px;
  font-size: 14px;
}
.legal-footer .use-cases-nav a {
  color: var(--ink);
  opacity: .7;
  transition: opacity .15s ease;
  text-decoration: none;
}
.legal-footer .use-cases-nav a:hover { opacity: 1; }
@media (max-width: 640px) {
  .legal-footer .use-cases-nav { gap: 12px 18px; font-size: 13px; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .legal-header { padding: 20px 20px 0; }
  .brand img { height: 22px; }
  .legal { padding: 40px 20px 56px; }
  .legal h1 { font-size: 32px; letter-spacing: -0.02em; }
  .legal h2 { font-size: 20px; margin: 32px 0 10px; }
  .legal p, .legal li { font-size: 15px; }
  .legal th, .legal td { padding: 12px 14px; font-size: 14px; }
  .legal th { font-size: 11px; }
  .legal-footer {
    border-radius: 32px 32px 0 0;
    padding: 72px 20px 48px;
  }
  .legal-footer h2 {
    font-size: 32px;
    letter-spacing: -0.02em;
    white-space: normal;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
  }
  .legal-footer p { font-size: 15px; }
}
