/* Shared styles for Privacy / Terms / Contact — same tokens as index.html */
:root {
  --bg: #f8f5f0;
  --text: #1f392c;
  --accent: #ff60e6;
  --muted: #4a6558;
  --rule: rgb(31 57 44 / 12%);
  --panel: rgb(255 255 255 / 72%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: url(../images/687df19ce0899_imgi_72_rectangle-1-3.svg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 22px 0;
}

/* --- Masthead --- */
.masthead {
  text-align: center;
  padding-bottom: 8px;
}

.masthead img {
  width: 180px;
  max-width: 60%;
  height: auto;
}

/* --- Content panel --- */
.doc {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 34px 36px;
  margin-top: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 34px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.updated {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.intro {
  margin: 18px 0 0;
  font-size: 17px;
}

h2 {
  margin: 30px 0 8px;
  font-size: 19px;
  font-weight: 700;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  margin: 18px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

p,
li {
  font-size: 16px;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

/* --- Callout for age / affiliate notices --- */
.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: rgb(255 96 230 / 6%);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
}

/* --- Contact page button (matches index CTA) --- */
.btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 14px 24px;
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 700;
  background: linear-gradient(90deg, #81d8d8, #b79cdf, #c09e7e);
  color: #1f392c;
  border: none;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  filter: brightness(1.05);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.contact-rows {
  margin: 20px 0 0;
  border-top: 1px solid var(--rule);
}

.contact-rows div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}

.contact-rows dt,
.contact-rows span.label {
  font-weight: 700;
  min-width: 150px;
}

/* --- Footer (same links as index.html) --- */
footer {
  margin-top: 22px;
  font-size: 14px;
  text-align: center;
  padding: 18px 0 34px;
}

footer nav.footer-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

footer a {
  color: var(--accent);
}

.back {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .wrap {
    padding: 20px 16px 0;
  }

  .doc {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .masthead img {
    width: 150px;
  }

  .doc {
    padding: 20px 16px;
    border-radius: 10px;
  }

  p,
  li {
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
