:root {
  --cream: #faf6ef;
  --cream-card: #fffcf8;
  --parchment: #f3ebe0;
  --burgundy: #7d2e2a;
  --burgundy-deep: #5c201e;
  --navy: #1c3a5e;
  --navy-soft: #3d5573;
  --ink: #2f3542;
  --wood-dark: #2e1c10;
  --wood-mid: #4a3020;
  --wood-light: #6b4a32;
  --wheat-gold: #c9a227;
  --white: #ffffff;
  --line: #d9cfc2;
}

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.header-wood {
  height: 12px;
  background:
    repeating-linear-gradient(
      92deg,
      var(--wood-mid) 0px,
      var(--wood-light) 3px,
      var(--wood-dark) 6px,
      var(--wood-mid) 10px
    );
  opacity: 0.85;
}

.site-nav {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav .brand {
  font-family: "Great Vibes", cursive;
  font-size: 1.35rem;
  color: var(--burgundy);
  letter-spacing: 0;
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.legal-eyebrow {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat-gold);
  margin: 0 0 0.5rem;
}

h1 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.25;
  color: var(--burgundy);
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.updated {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--navy-soft);
}

.legal-content h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.65rem;
  letter-spacing: 0.02em;
}

.legal-content h3 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--burgundy-deep);
  margin: 1.35rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink);
}

.legal-content p {
  margin: 0 0 0.9rem;
}

.legal-content ul {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--burgundy);
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--burgundy-deep);
}

.legal-nav {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.legal-nav h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.legal-nav ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
}

.legal-nav li {
  margin-bottom: 0.25rem;
}

.legal-nav a {
  color: var(--navy-soft);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer-links {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--navy-soft);
}

.legal-footer-links a {
  color: var(--burgundy);
}

.gingham {
  height: 14px;
  background:
    repeating-linear-gradient(
      0deg,
      #fff 0px,
      #fff 6px,
      var(--burgundy) 6px,
      var(--burgundy) 12px
    ),
    repeating-linear-gradient(
      90deg,
      #fff 0px,
      #fff 6px,
      var(--burgundy) 6px,
      var(--burgundy) 12px
    );
  background-blend-mode: multiply;
  opacity: 0.75;
}

footer {
  position: relative;
  background:
    repeating-linear-gradient(
      88deg,
      var(--wood-dark) 0px,
      var(--wood-mid) 4px,
      var(--wood-light) 8px,
      var(--wood-dark) 14px,
      var(--wood-mid) 20px
    );
  color: var(--cream);
  padding: 2rem 1.5rem 2.25rem;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}

.footer-tagline {
  font-family: "Great Vibes", cursive;
  font-size: 1.35rem;
  color: var(--cream);
  margin: 0;
  line-height: 1.2;
}

.footer-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0.2rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit {
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  max-width: 1000px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.footer-credit a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  opacity: 1;
  color: #fff;
}

@media (max-width: 540px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-links {
    justify-content: center;
  }
}
