/* Shared styles for Little Love Notes legal pages.
   Mirrors the homepage's typography, colours, and rhythm at a smaller scale. */

:root {
  --red:  #b21111;
  --rdk:  #8c0e0e;
  --ink:  #0d0404;
  --mid:  #7a4040;
  --line: #e8e0da;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus-visible {
  width: auto; height: auto;
  clip: auto; overflow: visible;
  top: 1rem; left: 1rem;
  padding: .7rem 1.1rem;
  margin: 0;
  background: var(--ink);
  color: white;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1001;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Brand thread along the top */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--red);
  z-index: 1000;
  pointer-events: none;
}

nav.legal-nav {
  padding: 1.6rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45em;
}
.logo-heart {
  width: .82em;
  height: .82em;
  fill: var(--red);
  flex-shrink: 0;
}
.nav-back {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.nav-back:hover { color: var(--ink); opacity: 1; }
.nav-back::before { content: '← '; }

main.legal {
  max-width: 64ch;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

main.legal h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
}
main.legal .updated {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  opacity: .8;
  margin-bottom: 3.5rem;
  display: block;
}
main.legal h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 2.6rem;
  margin-bottom: .8rem;
  line-height: 1.2;
  color: var(--ink);
}
main.legal p {
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}
main.legal ul {
  margin: .5rem 0 1rem 1.5rem;
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.85;
}
main.legal li { margin-bottom: .25rem; }
main.legal a {
  color: var(--red);
  text-decoration: none;
}
main.legal a:hover { text-decoration: underline; }
main.legal address {
  font-style: normal;
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
main.legal strong {
  font-weight: 400;
  color: var(--ink);
}

footer.legal-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 3.5rem;
}
.legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-links a {
  color: var(--mid);
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.legal-links a:hover { color: var(--ink); opacity: 1; }
.legal-links a[aria-current="page"] { color: var(--ink); opacity: 1; }

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

@media (max-width: 860px) {
  nav.legal-nav { padding: 1.4rem 1.6rem; }
  main.legal { padding: 3rem 1.6rem 4rem; }
  footer.legal-footer { padding: 2rem 1.6rem; }
}
