/* Shared styles for legal & support pages (privacy.html, terms.html, support.html) */

:root {
  --bg: #05070B;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #BA93FF;
  --accent-soft: rgba(167, 139, 250, 0.25);
  --border: rgba(255, 255, 255, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
}

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 40%, rgba(124, 58, 237, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 70%, rgba(167, 139, 250, 0.10) 0%, transparent 55%),
    var(--bg);
}

.page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 24px;
}

.page-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.brand span {
  font-size: 14px;
  font-weight: 600;
}

.back-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-family: 'JetBrains Mono', monospace;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 40px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 8px;
}

p, li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

p {
  margin: 0 0 14px;
}

ul, ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.6;
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.callout {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--accent-soft);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 14px;
}

.callout p {
  margin: 0;
}

.contact-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 14px;
}

.contact-card p {
  margin: 0 0 8px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.page-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 24px;
}

.page-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-footer nav {
  display: flex;
  gap: 20px;
}

.page-footer a {
  color: var(--text-muted);
}

.page-footer a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }

  main {
    padding: 36px 20px 64px;
  }
}
