/* Shared chrome for /privacy-policy/ and /terms/.
   These are static HTML outside the React build, so this file is the one
   place their styling lives — edit here, not in either page. */

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

body {
  background-color: #0b0c15;
  color: #cbd5e1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: #06b6d4; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
a:focus-visible,
summary:focus-visible { outline: 2px solid #06b6d4; outline-offset: 3px; border-radius: 4px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 12, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 12px 24px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: #fff;
}
.logo:hover { text-decoration: none; color: #fff; }
.logo img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.back-link { font-size: 0.875rem; color: #94a3b8; white-space: nowrap; }
.back-link:hover { color: #06b6d4; text-decoration: none; }

/* Content */
.content { max-width: 46rem; margin: 0 auto; padding: 64px 24px 80px; }

h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 700; color: #fff; line-height: 1.2; }
.subtitle { color: #94a3b8; font-size: 0.9375rem; margin-top: 12px; }

h2 {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin-top: 56px; margin-bottom: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 90px;
}
h3 { font-size: 1rem; font-weight: 600; color: #e2e8f0; margin-top: 28px; margin-bottom: 8px; }

p { font-size: 0.9375rem; margin-bottom: 16px; }
strong { color: #e2e8f0; font-weight: 600; }

ul, ol { margin: 0 0 16px 1.25rem; font-size: 0.9375rem; }
li { margin-bottom: 10px; padding-left: 4px; }
li::marker { color: #475569; }

/* Table of contents */
.toc {
  margin: 32px 0 8px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.toc h2 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #64748b; margin: 0 0 12px; padding: 0; border: 0;
}
.toc ol { margin: 0; padding-left: 1.1rem; font-size: 0.875rem; }
.toc li { margin-bottom: 6px; }

/* Callout */
.note {
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.note p:last-child { margin-bottom: 0; }
.note-warn {
  border-color: rgba(255, 191, 0, 0.3);
  background: rgba(255, 191, 0, 0.06);
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 34rem; }
caption { text-align: left; color: #64748b; font-size: 0.8125rem; padding-bottom: 8px; }
th, td {
  text-align: left; vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
th { color: #e2e8f0; font-weight: 600; background: rgba(255, 255, 255, 0.03); }
thead th:first-child { border-top-left-radius: 10px; }
thead th:last-child { border-top-right-radius: 10px; }
tbody tr:last-child td { border-bottom: 0; }

.last-updated {
  color: #475569; font-size: 0.8125rem;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #05060a;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: #475569;
}
.footer nav { margin-top: 10px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 520px) {
  .content { padding: 44px 20px 64px; }
  .logo span { display: none; }
}
