/* Shared page head spacing */
.tpj-page__head { padding: 40px 0 0; max-width: 820px; }
.tpj-page__content { padding: 24px 0 64px; max-width: 820px; }
.tpj-page__thumb { border-radius: var(--tpj-radius-lg); margin-bottom: 32px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* About */
.tpj-about { padding: 48px 24px 72px; }
.tpj-about__intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.tpj-about__intro-media img {
  border-radius: var(--tpj-radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.tpj-about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
.tpj-about__card {
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius-lg);
  padding: 28px;
}
.tpj-about__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tpj-bg);
  color: var(--tpj-gold-dark);
  margin-bottom: 16px;
}
.tpj-about__card p { color: var(--tpj-muted); font-size: 15px; margin: 0; }

.tpj-about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius-lg);
  padding: 48px;
}
.tpj-about__values-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.tpj-about__values-list li {
  font-size: 17px;
  color: var(--tpj-ink);
  padding-left: 28px;
  position: relative;
}
.tpj-about__values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tpj-gold);
}
.tpj-about__values-media img { border-radius: var(--tpj-radius); width: 100%; }

/* Contact */
.tpj-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  padding: 48px 24px 72px;
}
.tpj-contact__details { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.tpj-contact__details li { display: flex; gap: 14px; align-items: flex-start; }
.tpj-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  color: var(--tpj-gold-dark);
  flex-shrink: 0;
}
.tpj-contact__details strong { display: block; font-size: 13px; color: var(--tpj-ink); }
.tpj-contact__details a, .tpj-contact__details span { font-size: 15px; color: var(--tpj-muted); }
.tpj-contact__hint { margin-top: 20px; font-size: 13px; color: var(--tpj-muted); font-style: italic; }

.tpj-contact__form-wrap {
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius-lg);
  padding: 36px;
  height: max-content;
}

/* Legal (Terms / Privacy) */
.tpj-legal { padding: 48px 24px 72px; }
.tpj-legal__head { max-width: 820px; margin-bottom: 40px; }
.tpj-legal__updated { font-size: 14px; color: var(--tpj-muted); }
.tpj-legal__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.tpj-legal__toc {
  position: sticky;
  top: 100px;
  background: var(--tpj-surface);
  border: 1px solid var(--tpj-border);
  border-radius: var(--tpj-radius);
  padding: 20px;
}
.tpj-legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: none; display: flex; flex-direction: column; gap: 10px; }
.tpj-legal__toc a { font-size: 14px; color: var(--tpj-muted); }
.tpj-legal__toc a:hover { color: var(--tpj-ink); }
.tpj-legal__toc .tpj-toc-level-3 { padding-left: 14px; }
.tpj-legal__content h2 { font-size: 22px; }
.tpj-legal__content .tpj-btn { margin-top: 16px; }

/* 404 */
.tpj-404 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 72px 24px;
  min-height: 60vh;
}
.tpj-404__code {
  display: block;
  font-family: var(--tpj-font-display);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 600;
  color: var(--tpj-ink);
  line-height: 1;
  margin-bottom: 8px;
}
.tpj-404__text p { color: var(--tpj-muted); max-width: 420px; }
.tpj-404__search { margin-top: 28px; max-width: 380px; }
.tpj-404__search .tpj-search-form { position: relative; }
.tpj-404__media img { border-radius: var(--tpj-radius-lg); width: 100%; }

@media (max-width: 1024px) {
  .tpj-about__intro, .tpj-contact, .tpj-legal__layout, .tpj-404 { grid-template-columns: 1fr; }
  .tpj-about__cards { grid-template-columns: 1fr 1fr; }
  .tpj-legal__toc { position: static; }
  .tpj-404__media { order: -1; }
}
@media (max-width: 640px) {
  .tpj-about__cards { grid-template-columns: 1fr; }
  .tpj-about__values { grid-template-columns: 1fr; padding: 28px; }
}
