/* Nämly legal pages (privacy / terms) — brand-matched static styling.
   Mirrors the app's Phase 64 foundation: warm-apricot OKLCH palette,
   Fraunces (display) + Inter (body), 18px radius, light theme. Self-contained
   so it works as a plain static page served by Firebase Hosting. */

:root {
  --background: oklch(0.981 0.008 75);
  --foreground: oklch(0.31 0.016 65);
  --card: oklch(0.997 0.003 75);
  --primary: oklch(0.755 0.135 62);
  --muted-foreground: oklch(0.565 0.02 65);
  --border: oklch(0.922 0.008 70);
}

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

html {
  font-size: 16px;
}

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

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 560;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}

.brand .ly {
  color: var(--primary);
}

header {
  margin-bottom: 2.5rem;
}

.back-link {
  display: inline-block;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary);
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 560;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.last-updated {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

main {
  flex: 1;
}

section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 560;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 0.75rem;
}

ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

footer a {
  color: var(--muted-foreground);
}

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

.sep {
  opacity: 0.5;
}

@media (max-width: 480px) {
  .container {
    padding: 2rem 1.15rem;
  }
  h1 {
    font-size: 1.85rem;
  }
}
