/* Self-contained brand skin for the legal pages (privacy + terms).
   Independent of the calculators' tools.css so these pages keep working
   if the calculators ever move to their own domain. */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.035);
  --teal: #00b8d8;
  --teal-deep: #0096b3;
  --ink: #eef2f1;
  --text-body: #d4dad8;
  --muted: #97a3a0;
  --text-faint: #5e6a68;
  --line: rgba(255, 255, 255, 0.09);
  --grid-line: rgba(255, 255, 255, 0.02);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(0, 184, 216, 0.07), transparent 60%),
    radial-gradient(700px 450px at -10% 25%, rgba(0, 184, 216, 0.06), transparent 55%),
    var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid texture — same graph-paper layer as the homepage */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
}

.wrap {
  position: relative; z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: 'opsz' 34;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--teal); }
.back-link {
  font-size: 13.5px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: all 0.18s ease;
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.07);
}
.back-link:hover {
  color: var(--teal); border-color: rgba(0, 184, 216, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(0, 184, 216, 0.3);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}
.legal .updated {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 32px;
}
.legal .intro {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 32px 0 10px;
}
.legal p { font-size: 15px; color: var(--text-body); margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 20px; }
.legal li { font-size: 15px; color: var(--text-body); margin-bottom: 8px; }
.legal a { color: var(--teal); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--teal); }
