/* ==========================================================================
   About Page Styles (matching https://tapzaim.kz/about.html)
   ========================================================================== */

.page-header {
  padding: 56px 0 28px;
  text-align: center;
  background: #ffffff;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Company & Compliance Intro */
.intro {
  padding: 20px 0 72px;
  background: #ffffff;
}

.intro-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

.intro-card {
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.intro-card.with-image {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 36px 34px;
  box-shadow: var(--shadow);
}

.intro-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.intro-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 14px;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.intro-illustration {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-illustration img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.intro-illustration-top {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #f2fcf6;
  border: 1px solid #d8f5e5;
}

.intro-illustration-top img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.intro2 {
  background: var(--surface-soft);
  border: 1px solid #d5f3e2;
  border-radius: 27px;
  padding: 34px 32px;
  flex: 1;
}

.intro2 h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.intro2 p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
}

.company-facts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.fact-box {
  background: var(--surface-soft);
  border: 1px solid #d8f5e5;
  border-radius: 18px;
  padding: 20px 22px;
}

.fact-box span {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.fact-box strong {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

/* Policies & Disclosures Section (#policies) */
.policies {
  padding: 76px 0 96px;
  background: linear-gradient(to bottom, #ffffff, #f7fdf9);
}

.policies-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.policies-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.policies-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.policy-item {
  background: var(--surface-card);
  border: 1px solid var(--border-policy);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.policy-item:hover {
  background: #f3f4f6;
}

.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
}

.policy-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.policy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: var(--primary-deep);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.policy-btn:hover {
  background: var(--primary-dark);
}

/* Accordion Group (.has-children) */
.policy-item.has-children .policy-row {
  cursor: pointer;
}

.policy-item.has-children.open {
  background: #f3f4f6;
}

.policy-item.has-children.open .policy-row {
  border-radius: 12px;
  box-shadow: 0 2px 6px 0 #85858540;
  background: #ffffff;
}

.policy-chevron {
  width: 20px;
  height: 20px;
  color: var(--primary-deep);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.policy-item.has-children.open .policy-chevron {
  transform: rotate(180deg);
}

.policy-children {
  display: none;
  padding: 14px 20px 18px;
  flex-direction: column;
  gap: 10px;
}

.policy-item.has-children.open .policy-children {
  display: flex;
}

.policy-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
}

.policy-child-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 1024px) {
  .intro-inner {
    grid-template-columns: 1fr;
  }

  .company-facts-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 32px;
  }

  .policies-header h2 {
    font-size: 30px;
  }

  .policy-row,
  .policy-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-btn {
    width: 100%;
  }
}
