/* ================================================
   TOOLSHUB4U — INFO PAGE STYLES
   Used for: about.html, contact.html, privacy-policy.html,
             terms.html, disclaimer.html
   ================================================ */

/* ==============================
   PAGE HERO (mirrors cat-hero)
   ============================== */
.page-hero {
  padding: calc(var(--space-3xl) + 10px) 0 var(--space-3xl);
  background: linear-gradient(150deg, #101736 0%, #1e1b4b 45%, #312e81 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb { margin-bottom: var(--space-xl); }
.page-hero .breadcrumb__item,
.page-hero .breadcrumb__separator { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb__item a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb__item a:hover { color: white; }
.page-hero .breadcrumb__item--active { color: white; }
.page-hero__title {
  font-size: clamp(1.8rem, 4vw, var(--font-size-4xl));
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.page-hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.8);
  max-width: 650px;
  line-height: 1.7;
}

/* ==============================
   PAGE LAYOUTS (main + sidebar)
   ============================== */
.content-layout,
.legal-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-2xl);
  align-items: start;
}
.content-main,
.legal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  min-width: 0;
}
.content-sidebar,
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: sticky;
  top: 100px;
}

/* ==============================
   CONTENT BLOCKS (about)
   ============================== */
.content-block {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.content-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: .9;
}
.content-block__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: #a5b4fc;
  border-radius: 16px;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, rgba(129,140,248,.32), rgba(99,102,241,.12));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 26px rgba(99,102,241,.22), inset 0 1px 0 rgba(255,255,255,.16);
}
.content-block__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.content-block p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}
.content-block p:last-child { margin-bottom: 0; }
.content-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.content-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.content-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}

/* CSS-drawn checkmark inside the badge (no glyphs) */
.content-list li::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 8px;
  width: 9px;
  height: 4.5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* about feature cards */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: var(--space-lg);
}
.about-feature {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.about-feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
}
.about-feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  border-radius: 13px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 22px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.14);
}
.about-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.about-feature p {
  font-size: .84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.about-feature:nth-child(6n+1) .about-feature__icon { background: linear-gradient(135deg, rgba(129,140,248,.32), rgba(99,102,241,.12)); color: #a5b4fc; box-shadow: 0 10px 26px rgba(129,140,248,.28), inset 0 1px 0 rgba(255,255,255,.16); }
.about-feature:nth-child(6n+2) .about-feature__icon { background: linear-gradient(135deg, rgba(52,211,153,.3), rgba(16,185,129,.1)); color: #6ee7b7; box-shadow: 0 10px 26px rgba(52,211,153,.26), inset 0 1px 0 rgba(255,255,255,.16); }
.about-feature:nth-child(6n+3) .about-feature__icon { background: linear-gradient(135deg, rgba(248,113,113,.3), rgba(239,68,68,.1)); color: #fca5a5; box-shadow: 0 10px 26px rgba(248,113,113,.26), inset 0 1px 0 rgba(255,255,255,.16); }
.about-feature:nth-child(6n+4) .about-feature__icon { background: linear-gradient(135deg, rgba(251,191,36,.3), rgba(245,158,11,.1)); color: #fcd34d; box-shadow: 0 10px 26px rgba(251,191,36,.24), inset 0 1px 0 rgba(255,255,255,.16); }
.about-feature:nth-child(6n+5) .about-feature__icon { background: linear-gradient(135deg, rgba(34,211,238,.3), rgba(6,182,212,.1)); color: #67e8f9; box-shadow: 0 10px 26px rgba(34,211,238,.26), inset 0 1px 0 rgba(255,255,255,.16); }
.about-feature:nth-child(6n+6) .about-feature__icon { background: linear-gradient(135deg, rgba(244,114,182,.3), rgba(236,72,153,.1)); color: #f9a8d4; box-shadow: 0 10px 26px rgba(244,114,182,.26), inset 0 1px 0 rgba(255,255,255,.16); }

/* values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: var(--space-lg);
}
.value-card {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.value-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.value-card strong {
  display: block;
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.value-card p {
  font-size: .84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==============================
   LEGAL PROSE BLOCKS
   ============================== */
.legal-block {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: var(--space-2xl);
}
.legal-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.legal-block h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 64px; height: 2px;
  background: var(--grad-brand);
}
.legal-block h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-light, #a5b4fc);
  margin: var(--space-lg) 0 var(--space-sm);
}
.legal-block p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-block ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.legal-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(99,102,241,.6);
}
.legal-block strong { color: var(--text-primary); }

/* shared link + highlight chips */
.content-link {
  color: var(--primary-light, #a5b4fc);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color var(--transition);
}
.content-link:hover { color: var(--primary, #6366f1); }

/* ==============================
   SIDEBAR WIDGETS
   ============================== */
.sidebar-text {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.sidebar-text strong { color: var(--text-primary); }
.sidebar-highlights {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-highlights li {
  position: relative;
  padding-left: 26px;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.sidebar-highlights li::before {
  content: '';
  position: absolute;
  left: 4px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--primary, #6366f1);
  transform: rotate(45deg);
}
.sidebar-quick-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-quick-links li a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.sidebar-quick-links li a:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateX(3px);
}
.sidebar-quick-links li a.sidebar-quick-links--active {
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
}
.stats-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stats-widget__item {
  text-align: center;
  padding: 14px 8px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.stats-widget__item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}
.stats-widget__item span {
  font-size: .76rem;
  color: var(--text-tertiary);
}
.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-social__link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.sidebar-social__link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ==============================
   CONTACT CARDS + FORM
   ============================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: var(--space-2xl);
}
.contact-info-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0,0,0,.25);
}
.contact-info-card__icon {
  width: 50px; height: 50px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  font-size: 1.45rem;
  color: #a5b4fc;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(129,140,248,.32), rgba(99,102,241,.12));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 26px rgba(99,102,241,.22), inset 0 1px 0 rgba(255,255,255,.16);
}
.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.contact-info-card p {
  font-size: .82rem;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.contact-info-card .content-link { font-size: .84rem; }

/* form shell */
.contact-form-wrapper {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: var(--space-2xl);
}
.contact-form__heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.contact-form__subheading {
  font-size: .92rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-required { color: #fb7185; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-input:focus {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%),
                    linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  cursor: pointer;
}
.form-checkbox input {
  margin-top: 4px;
  width: 16px; height: 16px;
  accent-color: var(--primary, #6366f1);
  cursor: pointer;
}
.form-submit {
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
}
.form-success {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .35);
}
.form-success span { font-size: 1.3rem; }
.form-success p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.form-success strong { color: #34d399; }
.form-error {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .35);
}
.form-error span { font-size: 1.3rem; }
.form-error p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.form-error strong { color: #f87171; }

/* ==============================
   LIGHT THEME
   ============================== */
[data-theme="light"] .page-hero { background: linear-gradient(150deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%); }
[data-theme="light"] .content-block,
[data-theme="light"] .legal-block,
[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .contact-info-card {
  background: linear-gradient(160deg, #ffffff, #f6f8fc);
  border-color: #e4e9f2;
}
[data-theme="light"] .about-feature,
[data-theme="light"] .value-card,
[data-theme="light"] .stats-widget__item,
[data-theme="light"] .sidebar-social__link {
  background: #ffffff;
  border-color: #e4e9f2;
}
[data-theme="light"] .content-block__icon,
[data-theme="light"] .contact-info-card__icon,
[data-theme="light"] .about-feature__icon {
  border-color: rgba(15, 23, 42, .08);
}
[data-theme="light"] .content-block__title,
[data-theme="light"] .legal-block h2,
[data-theme="light"] .contact-form__heading,
[data-theme="light"] .contact-info-card h3,
[data-theme="light"] .about-feature h3,
[data-theme="light"] .value-card strong,
[data-theme="light"] .form-label { color: #0f172a; }
[data-theme="light"] .content-block p,
[data-theme="light"] .legal-block p,
[data-theme="light"] .content-list li,
[data-theme="light"] .legal-block ul li,
[data-theme="light"] .about-feature p,
[data-theme="light"] .value-card p,
[data-theme="light"] .sidebar-text,
[data-theme="light"] .sidebar-highlights li,
[data-theme="light"] .sidebar-quick-links li a,
[data-theme="light"] .contact-info-card p,
[data-theme="light"] .form-checkbox { color: #475569; }
[data-theme="light"] .legal-block strong,
[data-theme="light"] .sidebar-text strong { color: #0f172a; }
[data-theme="light"] .legal-block h3 { color: #4f46e5; }
[data-theme="light"] .content-link { color: #4f46e5; }
[data-theme="light"] .content-link:hover { color: #6366f1; }
[data-theme="light"] .form-input {
  background: #ffffff;
  border-color: #dbe2ee;
  color: #0f172a;
}
[data-theme="light"] .form-input::placeholder { color: #94a3b8; }
[data-theme="light"] .sidebar-quick-links li a:hover { background: #eef2f8; color: #0f172a; }
[data-theme="light"] .sidebar-social__link:hover { color: #0f172a; border-color: #c9d4e6; }
[data-theme="light"] .stats-widget__item span { color: #64748b; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .content-layout,
  .legal-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .content-sidebar,
  .contact-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .content-sidebar,
  .contact-sidebar { grid-template-columns: 1fr; }
  .about-features,
  .values-grid,
  .form-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .content-block,
  .legal-block,
  .contact-form-wrapper { padding: 22px 18px; }
}
