/* Nestori — legal pages (privacy, terms). Shares palette + type with index.html. */

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

:root {
  --purple: #7F77DD;
  --purple-light: #EEEDFE;
  --purple-mid: #534AB7;
  --purple-dark: #26215C;
  --purple-border: #AFA9EC;
  --text: #1a1825;
  --text-muted: #5F5E5A;
  --text-faint: #888780;
  --border: #e8e6f0;
  --bg: #ffffff;
  --bg-alt: #fafafa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav (same shape as index.html) ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--purple);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-name {
  font-size: 18px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none; }

/* ── Legal body ── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 5% 80px;
}
.legal-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.legal-crumbs {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.legal-crumbs a { color: var(--text-muted); }
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-faint);
}
.legal section {
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 32px 0 12px;
  color: var(--text);
}
.legal h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}
.legal p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
}
.legal ul, .legal ol {
  margin: 10px 0 18px 24px;
  color: var(--text);
}
.legal li {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.65;
}
.legal strong { font-weight: 600; color: var(--text); }

/* Processors table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legal-table tr:last-child td { border-bottom: 0; }

/* Language switch at bottom of page */
.legal-switch {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: right;
  font-size: 14px;
}

/* ── Footer (same as index.html) ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 5%;
  text-align: center;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* Responsive */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .legal { padding-top: 32px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}
