/* NasrLabs: shared styles for legal pages (/privacy, /terms, /data-deletion).
   Tokens, typography and footer treatment mirror index.html. */

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

:root {
  --bg: #0e0a17;
  --bg-deep: #07050d;
  --bg-card: #16101f;
  --bg-card-hover: #1d1628;
  --ink: #f5f0ea;
  --ink-soft: #c2bbc9;
  --ink-muted: #7a728a;
  --ink-faint: #4a4357;
  --accent: #a584ff;
  --accent-deep: #7c5cf2;
  --accent-faint: rgba(165, 132, 255, 0.12);
  --rule: rgba(245, 240, 234, 0.08);
  --rule-strong: rgba(245, 240, 234, 0.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6d3fd6 0%, transparent 70%);
  top: -200px;
  right: -150px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4a2bb8 0%, transparent 70%);
  bottom: 20%;
  left: -200px;
  opacity: 0.3;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

nav {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(14, 10, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- legal document layout ---- */

.legal {
  padding: 80px 0 40px;
  position: relative;
}
.legal-head {
  max-width: 720px;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}
.legal-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 20ch;
}
.legal-title em {
  font-style: italic;
  color: var(--accent);
}
.legal-intro {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
}
.last-updated {
  display: inline-block;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.last-updated time {
  color: var(--ink-soft);
}

.legal-body {
  max-width: 720px;
}
.legal-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-body ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.legal-body li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.legal-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 5px;
  height: 1.5px;
  background: var(--accent);
}
.legal-body li:last-child { margin-bottom: 0; }
.legal-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.legal-body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* address block inside document body */
.legal-body address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

/* callout: used for the deletion request mechanism */
.legal-callout {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
}
.legal-callout .callout-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.legal-callout .callout-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}
.legal-callout .callout-row:last-of-type { border-bottom: none; }
.legal-callout .callout-row .k {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.legal-callout .callout-row .v {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* declared after `.legal-body a` so the pill's dark-on-light treatment wins */
.legal-body a.mail-cta,
a.mail-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 15px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  border-bottom: none;
  margin-top: 24px;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-wrap: anywhere;
}
.legal-body a.mail-cta:hover,
a.mail-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-bottom: none;
}

/* ---- footer (mirrors index.html) ---- */

footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--rule);
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 13px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 28px 40px;
}
.footer-inner .brand-foot {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink);
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
}
.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: balance;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.footer-contact {
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-contact a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}
.footer-contact .sep {
  color: var(--ink-muted);
  margin: 0 4px;
}
.footer-legal {
  font-size: 12px;
  color: var(--ink-muted);
}
.footer-links {
  font-size: 12px;
  color: var(--ink-muted);
}
.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-links a:hover {
  color: var(--ink-soft);
  border-bottom-color: var(--rule-strong);
}
.footer-links .sep {
  margin: 0 6px;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .legal { padding: 50px 0 30px; }
  .legal-head { margin-bottom: 36px; padding-bottom: 32px; }
  .legal-body h2 { margin-top: 44px; font-size: 24px; }
  .legal-callout { padding: 24px 20px; }
  .legal-callout .callout-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-meta { align-items: flex-start; text-align: left; }
}

@media (max-width: 500px) {
  .legal-title { font-size: 32px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .footer-contact { display: flex; flex-wrap: wrap; gap: 2px 6px; }
  .footer-contact a { white-space: nowrap; }
  .footer-legal { line-height: 1.5; }
  .mail-cta { font-size: 14px; padding: 14px 20px; }
}
