/* Information pages from the legacy redesign: About and Privacy (.about-page, whibdev/dcc #48) and the Disclaimer
   (.disc-page, #47). Colours come from site.css. Breakpoints: 900px (side cards and the contents list move below or
   above the text) and 600px (phone). */

/* ---------- About and Privacy ---------- */

.about-page {
  padding: 16px 0 40px;
  font-size: 14px;
  line-height: 1.65;
}

.about-page *,
.about-page *::before,
.about-page *::after {
  box-sizing: border-box;
}

.about-page h1,
.about-page h2,
.about-page h3 {
  margin: 0;
}

.about-page h1 { font-size: 30px; }
.about-page h2 { font-size: 22px; line-height: 1.3; }
.about-page h3 { font-size: 15px; line-height: 1.35; }
.about-page p { margin: 10px 0 0; }
.about-page .small { font-size: 13px; }

.about-page .card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.about-page .eyebrow {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* hero: heading on the left, four fact tiles on the right */
.about-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  padding: 40px 48px;
}

.about-hero .hero-text { flex: 999 1 520px; min-width: 0; }
.about-hero h1 { margin-top: 8px; }

.about-hero .lead {
  margin-top: 14px;
  font-size: 16px;
  color: #52525B;
}

.about-hero .facts {
  flex: 1 1 260px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-hero .facts li {
  padding: 16px;
  border-radius: 10px;
  background: var(--lilac);
  font-size: 13px;
}

.about-hero .facts strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
  color: var(--plum);
}

/* main column and side cards */
.about-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-top: 32px;
}

.about-main { flex: 999 1 560px; min-width: 0; }
.about-main > section + section { margin-top: 32px; }
.about-side { flex: 1 1 280px; }
.about-side .card { padding: 24px; }
.about-side .card + .card { margin-top: 16px; }
.about-side h2 { font-size: 18px; }
.about-side p { font-size: 13px; }

.about-page a.btn {
  display: block;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.about-page a.btn:hover { background: var(--teal-dark); color: #fff; }

.about-page a.more {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
}

/* how listings work: three numbered cards */
.about-page .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.about-page .steps li { padding: 20px; }

.about-page .steps .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: bold;
}

.about-page .steps h3 { margin-top: 12px; }
.about-page .steps p { margin-top: 6px; font-size: 13px; }

/* choosing care safely */
.about-page .safety {
  padding: 24px 28px;
  border-radius: 12px;
  background: var(--teal-pale);
}

.about-page .safety h2 { font-size: 20px; }
.about-page .safety ul { margin: 10px 0 0; padding-left: 20px; }

/* the privacy policy: one readable column in a white card */
.about-page .doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 48px;
}

.about-page .doc h1 { margin-top: 8px; font-size: 28px; }
.about-page .doc .updated { margin-top: 6px; font-size: 13px; color: #52525B; }
.about-page .doc h2 { margin-top: 28px; font-size: 20px; }
.about-page .doc ul { margin: 10px 0 0; padding-left: 20px; }
.about-page .doc li + li { margin-top: 6px; }

/* ---------- Disclaimer ---------- */

.disc-page {
  padding: 24px 0 56px;
  font-size: 15px;
  line-height: 1.7;
}

.disc-page *,
.disc-page *::before,
.disc-page *::after {
  box-sizing: border-box;
}

.disc-page h1,
.disc-page h2 {
  margin: 0;
  font-weight: normal;
}

.disc-page p { margin: 0; }

.disc-intro { max-width: 760px; }
.disc-intro .updated { margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.disc-intro h1 { margin-bottom: 14px; font-size: 32px; }
.disc-intro .lead { font-size: 16px; }

/* "In short": three points in a white box */
.disc-short {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 28px 0 36px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.short-item { display: flex; gap: 14px; align-items: flex-start; }
.short-item p { font-size: 14px; line-height: 1.6; }
.short-item strong { color: var(--plum); }

.short-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  background: var(--lilac);
  border-radius: 50%;
}

/* contents list on the left, sections on the right */
.disc-body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.disc-toc {
  position: sticky;
  top: 16px;
  flex: 0 0 260px;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.disc-toc .toc-title {
  margin: 0 12px 8px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
}

.disc-toc a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  border-radius: 6px;
}

.disc-toc a:hover,
.disc-toc a:focus {
  color: var(--plum);
  background: var(--lilac);
  text-decoration: none;
}

.disc-text { flex: 1 1 auto; min-width: 0; max-width: 760px; }

.disc-sec {
  scroll-margin-top: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.disc-sec:first-child { padding-top: 0; border-top: 0; }

.disc-sec h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.disc-sec .num {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
}

.disc-sec p + p { margin-top: 12px; }

/* questions box */
.disc-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 20px 24px;
  background: var(--lilac);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.disc-contact strong { color: var(--plum); }

.disc-contact .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--teal);
  border-radius: 22px;
}

.disc-contact .btn:hover,
.disc-contact .btn:focus {
  color: #fff;
  background: var(--teal-dark);
  text-decoration: none;
}

/* ---------- tablet ---------- */

@media (max-width: 900px) {
  .about-page .steps { grid-template-columns: minmax(0, 1fr); }
  .disc-short { grid-template-columns: 1fr; gap: 16px; }
  .disc-body { flex-direction: column; gap: 28px; }
  .disc-toc { position: static; flex: none; width: 100%; }
  .disc-text { max-width: none; }
}

/* ---------- phone ---------- */

@media (max-width: 600px) {
  .about-page { padding-top: 4px; }
  .about-hero { padding: 22px 20px; gap: 20px; }
  .about-page h1 { font-size: 23px; }
  .about-page h2 { font-size: 19px; }
  .about-hero .lead { font-size: 14px; }
  .about-hero .facts li { padding: 12px; }
  .about-hero .facts strong { font-size: 18px; }
  .about-page .safety { padding: 18px; }
  .about-cols { margin-top: 24px; gap: 24px; }
  .about-main > section + section { margin-top: 24px; }
  .about-page .doc { padding: 22px 20px; }
  .about-page .doc h1 { font-size: 23px; }
  .about-page .doc h2 { font-size: 18px; }

  .disc-page { padding: 12px 0 40px; font-size: 14px; }
  .disc-intro h1 { font-size: 26px; }
  .disc-intro .lead { font-size: 15px; }
  .disc-short { padding: 16px 18px; }
  .short-icon { width: 34px; height: 34px; }
  .disc-sec { padding: 22px 0; }
  .disc-sec h2 { align-items: flex-start; gap: 10px; font-size: 17px; }
  .disc-sec .num { width: 26px; height: 26px; font-size: 12px; }
  .disc-contact { flex-direction: column; align-items: stretch; padding: 18px; }
  .disc-contact .btn { justify-content: center; }
}
