.category-header {
  padding: 8px 0 34px;
  text-align: center;
}

.category-header h1 {
  margin: 0;
  font: 700 clamp(30px, 3.2vw, 42px)/1.1 var(--serif);
}

.article header h1 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.04;
}

.article-body p,
.article-body li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-page-layout .article {
  max-width: none;
  margin: 0 0 50px;
}

.article-top-ad {
  margin: 0 0 34px;
  min-height: 90px;
}

.article-page-tags {
  max-width: none;
  margin: -25px 0 50px;
}

@media (max-width: 760px) {
  .article-page-layout .sidebar {
    padding-top: 30px;
  }
}

.trend.has-image {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.trend-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 9px;
  overflow: hidden;
  background: #eee;
}

.trend-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.trend-thumb:hover img {
  transform: scale(1.04);
}

.trend.has-image > b {
  font-size: 23px;
}

.trend.has-image h4 {
  margin-top: 4px;
  font-size: 13px;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: #666;
  font-size: 11px;
}

.footer-category-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: start;
}

.footer-categories {
  overflow-x: auto;
  padding-bottom: 8px;
}

.footer-category-row {
  display: grid;
  grid-template-columns: repeat(var(--footer-column-count), minmax(125px, 1fr));
  gap: 34px;
}

.footer-category-row + .footer-category-row {
  margin-top: 14px;
}

.footer-categories a {
  margin: 0;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-categories a:hover {
  color: var(--red);
}

.footer-brand {
  text-align: right;
}

.footer-brand h5 {
  margin: 0;
  font: 700 34px var(--serif);
}

.footer-brand p {
  margin: 10px 0 0 auto;
  max-width: 320px;
  color: #555;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: 860px;
  margin: 22px auto 80px;
  font: 16px/1.72 var(--serif);
}

.legal-page header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  padding-bottom: 20px;
  text-align: left;
}

.legal-page header h1 {
  margin: 0 0 4px;
  font: 700 clamp(34px, 5vw, 52px)/1.05 var(--serif);
}

.legal-page header p {
  margin: 0;
  color: #888;
  font: 11px var(--sans);
}

.legal-page h2 {
  margin: 1.8em 0 .45em;
  font: 700 28px/1.15 var(--serif);
}

.legal-page h3 {
  margin: 1.4em 0 .35em;
  font: 700 20px/1.2 var(--serif);
}

.legal-page a {
  color: var(--red);
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font: 14px/1.5 var(--sans);
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 760px) {
  .footer-category-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
  }

  .footer-brand {
    width: 100%;
    text-align: left;
  }

  .footer-brand p {
    margin-left: 0;
  }

  .footer-categories {
    width: 100%;
  }

  .footer-category-row {
    grid-template-columns: repeat(var(--footer-column-count), minmax(130px, 1fr));
  }

  .legal-footer {
    display: block;
  }

  .legal-footer nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .legal-page {
    margin-top: 8px;
    font-size: 15px;
  }
}
