:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #f8f7f4;
  --text: #1c1c1e;
  --text-secondary: #6e6e76;
  --border: #e0ded9;
  --surface: #fff;
  --table-header: #f0efec;
  --table-alt: #faf9f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --text: #e4e4e7;
    --text-secondary: #88888e;
    --border: #2a2a30;
    --surface: #19191e;
    --table-header: #1e1e24;
    --table-alt: #151519;
  }
}

/* --- Reset --- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-secondary);
}

/* --- Landing Page --- */

.page-landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  animation: appear 0.4s ease;
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.landing-name {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.landing-tagline {
  margin-top: 0.75rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --- Footer (shared) --- */

.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 2;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.footer .dot {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* --- Privacy Page --- */

.nav {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.nav-home {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-home:hover {
  color: var(--text-secondary);
}

.privacy-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.75;
}

/* --- Content typography (pandoc output) --- */

.privacy-content h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.privacy-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 2rem 0 1rem;
}

.privacy-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2rem 0 0.75rem;
}

.privacy-content p {
  margin-bottom: 1rem;
}

.privacy-content ul,
.privacy-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.375rem;
}

.privacy-content li ul,
.privacy-content li ol {
  margin-top: 0.375rem;
  margin-bottom: 0;
}

.privacy-content strong {
  font-weight: 600;
}

.privacy-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.privacy-content blockquote {
  border-left: 3px solid var(--border);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
}

.privacy-content a {
  text-decoration-color: var(--text-secondary);
}

.privacy-content a:hover {
  text-decoration-color: var(--text);
}

/* --- Tables --- */

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.privacy-content th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  background: var(--table-header);
  border-bottom: 2px solid var(--border);
}

.privacy-content td {
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.privacy-content tbody tr:nth-child(even) td {
  background: var(--table-alt);
}

.privacy-content tbody tr:last-child td {
  border-bottom: none;
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .privacy-content {
    padding: 1.25rem;
  }

  .nav {
    padding: 1.25rem 1.25rem 0;
  }

  .privacy-content h1 {
    font-size: 1.625rem;
  }

  .privacy-content h2 {
    font-size: 1.1875rem;
  }

  .privacy-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer {
    padding: 1.5rem 1.25rem;
  }
}
