/* ==========================================================================
   YourTechTool — text pages (About, Privacy, Terms, Disclaimer, Contact, 404). Loaded after site.css.
   Moved from the inline <style> blocks of those pages. Marked "changed" where contrast was fixed.
   ========================================================================== */
.page-hero {
  padding: 50px 0 8px;
}
.page-hero h1,
.notfound h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 10px;
}
.subtitle {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15.5px;
  max-width: 640px;
}
.updated {
  color: var(--muted2);
  font-size: 12.5px;
  margin-top: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  margin: 22px 0;
}
.card h2 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.card h2:not(:first-child) {
  margin-top: 22px;
}
.card h2[id] {
  scroll-margin-top: 90px;
}
.card h3 {
  font-size: 14px;
  margin: 18px 0 6px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card ul {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
  padding-left: 20px;
}
/* changed: links use --link (the light-theme blue was 4.4:1 on white) */
.card a.inline-link,
.card a[rel~="noopener"] {
  color: var(--link);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.placeholder {
  color: var(--danger);
  font-weight: 700;
}
.mt {
  margin-top: 14px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--chip-bg);
  color: var(--text);
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--muted2);
}
.btn.primary {
  background: linear-gradient(145deg, #198475, #135b58);
  border-color: #4de1c0;
  color: #fff;
}
/* changed: white on the old light green was 2.7:1; these greens give 5.3:1 or more */
:root[data-theme="light"] .btn.primary {
  background: linear-gradient(145deg, #0a7a5b, #087254);
  border-color: #0a7a5b;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.toc a {
  border: 1px solid var(--line2);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  color: var(--muted);
}
.toc a:hover {
  color: var(--text);
  border-color: var(--muted2);
}
.callout {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 14px;
}
.callout p {
  margin: 0 0 8px;
}
.callout ul {
  margin: 0;
}
.callout a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.tool-list li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.tool-list a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 640px) {
  .tool-list {
    grid-template-columns: 1fr;
  }
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}
.contact-box svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}
.contact-box a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

/* 404 */
.notfound {
  text-align: center;
  padding: 70px 0;
}
.notfound .code {
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(90deg, var(--text) 20%, #59d0ac 50%, #4bb2f0 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* changed: the light-theme number ended in pale greens/blues (about 1.8:1); darker stops reach about 5:1 */
:root[data-theme="light"] .notfound .code {
  background: linear-gradient(90deg, var(--text) 20%, #0a7a5b 55%, #0a6bb8 90%);
  -webkit-background-clip: text;
  background-clip: text;
}
.notfound .subtitle {
  margin: 0 auto;
}
.notfound .btn-row {
  justify-content: center;
  margin-top: 22px;
}
