/* Earleaf — shared styles for Privacy Policy & Support pages */

:root {
  --paper: #E8E3D2;
  --paper-raised: #F1EDE1;
  --ink: #20241C;
  --ink-soft: #4A5142;
  --ink-faint: #757C67;
  --accent: #56693D;
  --accent-deep: #384927;
  --line: #CFC7AC;
  --gold: #A9823C;
  --measure: 40rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-deep);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

nav.pages {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

nav.pages a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav.pages a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

nav.pages a:hover {
  color: var(--accent-deep);
}

.page-head h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.page-head .meta {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin: 0 0 2.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

section + section {
  margin-top: 2.5rem;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
}

.contact-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

.contact-card .label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.contact-card .value {
  font-size: 1.15rem;
  font-family: "Fraunces", Georgia, serif;
}

details {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

details[open] summary::after {
  content: "–";
}

details .answer {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

details .answer p:last-child {
  margin-bottom: 0;
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

footer.site a {
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  .wrap {
    padding: 3rem 1.25rem 3.5rem;
  }
  .page-head h1 {
    font-size: 2rem;
  }
}