:root {
  --text: #1f1a17;
  --muted: #5f5249;
  --card: rgba(255, 248, 240, 0.82);
  --card-strong: rgba(255, 248, 240, 0.9);
  --border: rgba(255, 255, 255, 0.5);
  --shadow: 0 20px 60px rgba(43, 31, 19, 0.2);
  --accent: #8b6f3d;
  --link-bg: rgba(255, 255, 255, 0.65);
  --link-bg-hover: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-image: url("jillwellington-sunflowers-1719119_1920.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.background-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.34), rgba(255, 244, 229, 0.18)),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 720px);
  padding: 40px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: #89496e;
}

h1 span {
  display: inline-block;
  margin-top: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--muted);
}

address {
  margin: 24px 0;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.message {
  margin: 28px 0;
  font-size: 1.12rem;
  line-height: 1.7;
}

.message p {
  margin: 0;
}

.message p + p {
  margin-top: 8px;
}

.contact,
.footer-links,
.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact {
  margin-top: 28px;
}

.footer-links {
  margin-top: 20px;
}

.top-links {
  justify-content: flex-start;
  margin-bottom: 24px;
}

.contact a,
.footer-links a,
.top-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: var(--link-bg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact a:hover,
.contact a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.top-links a:hover,
.top-links a:focus-visible {
  transform: translateY(-1px);
  background: var(--link-bg-hover);
}

.legal-page {
  align-items: start;
}

.legal-card {
  width: min(100%, 920px);
  text-align: left;
  background: var(--card-strong);
}

.notice-box {
  margin: 24px 0 28px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.legal-content {
  display: grid;
  gap: 28px;
  padding-top:25px;
}

.legal-content section {
  line-height: 1.7;
}

.legal-content h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--accent);
}

.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content a {
  color: inherit;
}

@media (max-width: 640px) {
  .page {
    padding: 16px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .message {
    font-size: 1rem;
  }

  .contact,
  .footer-links,
  .top-links {
    flex-direction: column;
  }

  .contact a,
  .footer-links a,
  .top-links a {
    width: 100%;
  }
}
