:root {
  --pine: #0f766e;
  --pine-deep: #0a5750;
  --night: #12312e;
  --paper: #fdf9f0;
  --paper-warm: #f6efdf;
  --sun: #ffc45a;
  --ink-soft: #4d5a52;
  --line: rgba(18, 49, 46, 0.14);
  --serif: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--night);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* topographic contour texture, tiled */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%230F766E' stroke-opacity='0.07' stroke-width='1.4'%3E%3Cpath d='M-20 60 C 90 10, 180 110, 300 40 S 470 90, 520 30'/%3E%3Cpath d='M-20 140 C 100 90, 190 190, 310 120 S 480 170, 520 110'/%3E%3Cpath d='M-20 220 C 110 170, 200 270, 320 200 S 490 250, 520 190'/%3E%3Cpath d='M-20 300 C 120 250, 210 350, 330 280 S 500 330, 520 270'/%3E%3Cpath d='M-20 380 C 130 330, 220 420, 340 360 S 510 400, 520 350'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 10px;
}

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

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--night);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--pine);
  border-color: var(--pine);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--night);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- footer (shared) ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 36px 0 48px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--pine);
}

/* ---------- privacy page ---------- */

.legal {
  padding: 56px 0 20px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 44px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--pine-deep);
  margin: 44px 0 12px;
}

.legal p,
.legal li {
  line-height: 1.7;
  font-size: 1.02rem;
  color: var(--night);
}

.legal ul {
  padding-left: 1.2em;
}

.legal a.inline {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.35);
}

.legal strong {
  color: var(--pine-deep);
}

.callout {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 0.98rem;
}
