/* Shared styles for legal pages (privacy, terms) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0284c7;
  --blue-2: #0ea5e9;
  --blue-3: #38bdf8;
  --mint-2: #99f6e4;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-dim: #64748b;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 10px 40px rgba(56, 189, 248, 0.15);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  background: #eef7ff;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(125, 211, 252, 0.5), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(153, 246, 228, 0.45), transparent 65%),
    linear-gradient(180deg, #f0f9ff 0%, #ecfeff 50%, #f0fdfa 100%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}
.orb-1 { width: 360px; height: 360px; background: #7dd3fc; top: 8%; left: -110px; }
.orb-2 { width: 300px; height: 300px; background: #99f6e4; bottom: 5%; right: -90px; }

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 18px;
}

/* Nav */
nav {
  padding: 12px 16px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-3), var(--mint-2));
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}
.logo-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
nav .cta-mini {
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.25s;
  white-space: nowrap;
}
nav .cta-mini:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  border-color: transparent;
}

/* Legal content */
.legal-content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 42px 38px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
}

.legal-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-content .updated {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -0.015em;
}

.legal-content p {
  color: var(--ink-2);
  margin-bottom: 14px;
  font-size: 15px;
}

.legal-content ul {
  list-style: none;
  margin: 12px 0 16px;
  padding-left: 4px;
}
.legal-content ul li {
  color: var(--ink-2);
  font-size: 15px;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--mint-2));
}

.legal-content a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(2, 132, 199, 0.3);
  transition: border-color 0.2s;
}
.legal-content a:hover { border-bottom-color: var(--blue); }

.legal-content b { color: var(--ink); font-weight: 600; }

/* Footer */
.legal-footer {
  text-align: center;
  padding: 24px 16px 20px;
  color: var(--ink-dim);
  font-size: 13px;
}
.legal-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.legal-footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 14px 12px; }
  nav { padding: 10px 12px; margin-bottom: 20px; border-radius: 16px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo-icon { width: 32px; height: 32px; font-size: 14px; }
  nav .cta-mini { font-size: 12px; padding: 8px 12px; }
  .legal-content {
    padding: 28px 22px;
    border-radius: 20px;
  }
  .legal-content h2 { font-size: 18px; margin-top: 24px; }
  .legal-content p, .legal-content ul li { font-size: 14px; }
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
