/* Shared stylesheet for Teachery's legal pages (/privacy, /terms, /refunds). */
:root {
  --pine-950: #06231b;
  --pine-900: #0a3527;
  --pine-800: #0d4633;
  --pine-700: #116043;
  --pine-100: #d8ecdf;
  --pine-50: #eef6f0;
  --brass-600: #b45309;
  --brass-500: #d97706;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:
    "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--pine-900);
  color: #fff;
}

a {
  color: var(--pine-700);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--pine-700);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pine-900);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pine-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}

.home-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--pine-900);
}

article {
  padding: 56px 0 72px;
}

article h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

.updated {
  color: var(--muted);
  font-size: 14.5px;
  margin: 12px 0 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

article h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}

article p {
  margin: 0 0 14px;
  color: #44403c;
}

article ul {
  margin: 0 0 14px;
  padding-left: 24px;
  color: #44403c;
}

article li {
  margin: 6px 0;
}

article strong {
  color: var(--ink);
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.legal-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-footer nav {
  display: flex;
  gap: 20px;
}

.legal-footer a {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  article {
    padding: 40px 0 56px;
  }

  article h1 {
    font-size: 32px;
  }

  article h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
