.agb-page {
  width: 100%;
}

.agb-intro {
  max-width: 960px;
  margin: 0 0 22px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text, #2b2520);
}

.agb-intro p {
  margin: 0 0 10px;
}

.agb-note {
  font-size: 0.92rem;
  opacity: 0.72;
}

.agb-layout {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
}

.agb-toc {
  position: sticky;
  top: 18px;
  border: 1px solid rgba(90, 70, 50, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(40, 28, 18, 0.07);
  padding: 18px;
}

.agb-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--headline, #241b14);
}

.agb-toc a {
  display: block;
  padding: 7px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(90, 70, 50, 0.09);
  line-height: 1.35;
}

.agb-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agb-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

.agb-card {
  border: 1px solid rgba(90, 70, 50, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(40, 28, 18, 0.07);
  padding: 22px;
  min-width: 0;
  scroll-margin-top: 24px;
}

.agb-card--muted {
  background: rgba(246, 239, 229, 0.78);
}

.agb-card h3 {
  margin: 0 0 12px;
  font-size: 1.16rem;
  line-height: 1.25;
  color: var(--headline, #241b14);
}

.agb-card p {
  margin: 0 0 12px;
  line-height: 1.64;
}

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

.agb-card a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .agb-layout {
    grid-template-columns: 1fr;
  }

  .agb-toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .agb-card,
  .agb-toc {
    padding: 18px;
    border-radius: 16px;
  }

  .agb-intro {
    font-size: 1rem;
  }
}
