:root {
  --ink: #173d38;
  --muted: #66817b;
  --green: #0f6b57;
  --green-deep: #064b3e;
  --mint: #d9f5e8;
  --paper: #f8fcfa;
  --line: #d7e7df;
  --coral: #ff745e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: #e8f5ee;
  background-image: url("chat-wallpaper.svg");
  background-repeat: repeat;
  background-size: 400px 400px;
  font-family: "Manrope", sans-serif;
}

a { color: var(--green-deep); }

a:focus-visible {
  outline: 3px solid rgba(123, 213, 220, 0.85);
  outline-offset: 3px;
}

.site-header,
.legal-main,
.site-footer {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px 14px 9px 14px;
  color: white;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 15px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover { color: var(--green-deep); }

.legal-main { padding: 30px 0 52px; }

.legal-hero {
  padding: clamp(34px, 7vw, 70px) 0 36px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 15px 0 0 #f3bd53, 30px 0 0 #7bd5dc;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.45rem, 7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.intro {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-card {
  padding: clamp(21px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 24px rgba(20, 84, 69, 0.05);
}

.legal-card h2 {
  margin: 0 0 11px;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: #476b62;
  font-size: 0.93rem;
  line-height: 1.75;
}

.legal-card p { margin: 0; }

.legal-card p + p,
.legal-card ul + p { margin-top: 13px; }

.legal-card ul {
  margin: 13px 0 0;
  padding-left: 21px;
}

.legal-card li + li { margin-top: 7px; }

.small-print {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover { color: var(--green-deep); }

@media (max-width: 620px) {
  .site-header,
  .legal-main,
  .site-footer { width: min(100% - 28px, 880px); }

  .site-header {
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .site-nav { justify-content: start; }
  .legal-main { padding-top: 12px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}