﻿/* ==================== TERMS PAGE ==================== */
.page-terms .terms-page {
  padding: 0 0 56px;
  background: #f5f7fa;
}

.page-terms .terms-hero {
  padding: 56px 0;
  background: linear-gradient(135deg, #08243c 0%, #123d5d 58%, #2b5f73 100%);
  color: #fff;
}

.page-terms .terms-hero-inner {
  display: grid;
  gap: 14px;
}

.page-terms .terms-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 169, 0, 0.16);
  color: #ffe7a5;
  font-size: 13px;
  font-weight: 800;
}

.page-terms .terms-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.5;
}

.page-terms .terms-hero p {
  max-width: 920px;
  margin: 0;
  color: #e8f1f7;
  font-size: 16px;
  line-height: 2.1;
}

.page-terms .terms-hero strong {
  color: #ffe7a5;
  font-size: 14px;
}

.page-terms .terms-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.page-terms .terms-toc,
.page-terms .terms-content {
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 35, 55, 0.08);
}

.page-terms .terms-toc {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.page-terms .terms-toc strong {
  color: #0b3654;
  font-size: 16px;
}

.page-terms .terms-toc a {
  padding: 9px 10px;
  border-radius: 10px;
  color: #516579;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.page-terms .terms-toc a:hover {
  background: #f2f6fa;
  color: #0b3654;
}

.page-terms .terms-content {
  padding: 26px;
}

.page-terms .terms-content section + section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #edf2f6;
}

.page-terms .terms-content h2 {
  margin: 0 0 12px;
  color: #0b3654;
  font-size: 22px;
  line-height: 1.7;
}

.page-terms .terms-content p {
  margin: 0 0 12px;
  color: #33475b;
  font-size: 15px;
  line-height: 2.15;
}

.page-terms .terms-content strong {
  color: #092f4b;
  font-weight: 900;
}

.page-terms .about-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.page-terms .about-license-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce8f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 35, 55, 0.07);
}

.page-terms .about-license-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-terms .about-license-head span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 169, 0, 0.14);
  color: #9a6500;
  font-size: 12px;
  font-weight: 900;
}

.page-terms .about-license-head strong {
  color: #0b3654;
  font-size: 22px;
  line-height: 1;
}

.page-terms .about-license-card h3 {
  margin: 0;
  color: #092f4b;
  font-size: 18px;
  line-height: 1.6;
}

.page-terms .about-license-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.page-terms .about-license-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f6;
}

.page-terms .about-license-card dt,
.page-terms .about-license-card dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.page-terms .about-license-card dt {
  color: #64798b;
  font-weight: 800;
}

.page-terms .about-license-card dd {
  color: #1f3448;
  font-weight: 900;
  text-align: left;
}

.page-terms .about-license-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 8px 12px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #0b3654;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.page-terms .about-license-card a:hover {
  background: #092f4b;
}

.page-terms .terms-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-terms .terms-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #0b3654;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.page-terms .terms-contact-link:hover {
  background: #f5a900;
  color: #102c49;
}

.page-terms .terms-contact-link.is-api {
  background: #f5a900;
  color: #102c49;
}

.page-terms .terms-contact-link.is-api:hover {
  background: #0b3654;
  color: #fff;
}

.page-about {
  overflow-x: hidden;
}

.page-about .about-story-hero {
  padding: 50px 0;
  background: radial-gradient(circle at 12% 20%, rgba(245, 169, 0, 0.22), transparent 30%), linear-gradient(135deg, #071f35 0%, #123d5d 54%, #2b5f73 100%);
}

.page-about .about-story-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 24px;
  align-items: center;
}

.page-about .about-story-hero h1 {
  max-width: 940px;
}

.page-about .about-hero-panel {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 35px rgba(5, 24, 42, 0.18);
  transform: scale(0.85);
  transform-origin: left center;
}

.page-about .about-hero-panel img {
  width: 51px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.page-about .about-hero-stats,
.page-about .about-stats-grid,
.page-about .about-trust-grid,
.page-about .about-ecosystem-grid {
  display: grid;
  gap: 12px;
}

.page-about .about-hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-about .about-hero-stats div,
.page-about .about-stats-grid div,
.page-about .about-trust-grid article,
.page-about .about-ecosystem-grid article {
  border: 1px solid #dce8f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 35, 55, 0.07);
}

.page-about .about-hero-stats div {
  padding: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.page-about .about-hero-stats strong,
.page-about .about-stats-grid strong {
  display: block;
  color: #0b3654;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}

.page-about .about-hero-stats span,
.page-about .about-stats-grid span,
.page-about .about-trust-grid span {
  display: block;
  color: #516579;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}

.page-about .about-timeline {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.page-about .about-timeline article {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid #dce8f1;
  border-right: 5px solid #f5a900;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 35, 55, 0.06);
}

.page-about .about-timeline time {
  color: #9a6500;
  font-size: 13px;
  font-weight: 900;
}

.page-about .about-timeline h3,
.page-about .about-ecosystem-grid h3 {
  margin: 0;
  color: #092f4b;
  font-size: 17px;
  line-height: 1.7;
}

.page-about .about-timeline p,
.page-about .about-ecosystem-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
}

.page-about .about-ecosystem-grid,
.page-about .about-trust-grid,
.page-about .about-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.page-about .about-ecosystem-grid article {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.page-about .about-ecosystem-grid i {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0b3654;
  color: #f5a900;
  font-size: 17px;
}

.page-about .about-trust-grid article,
.page-about .about-stats-grid div {
  padding: 16px;
}

.page-about .about-trust-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #092f4b;
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .page-terms .terms-layout {
    grid-template-columns: 1fr;
  }

  .page-about .about-story-hero-inner,
  .page-about .about-ecosystem-grid,
  .page-about .about-trust-grid,
  .page-about .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .page-about .about-hero-panel {
    justify-self: center;
    transform-origin: center center;
  }

  .page-about .about-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-terms .about-license-grid {
    grid-template-columns: 1fr;
  }

  .page-terms .terms-toc {
    position: static;
  }
}
