.legal-hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(
      circle at top right,
      rgba(212, 231, 219, 0.8),
      transparent 34%
    ),
    var(--site-background);
  border-bottom: 1px solid var(--site-border);
}

.legal-hero-inner {
  max-width: 820px;
}

.legal-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 1.25rem 0 1.2rem;
}

.legal-hero p {
  max-width: 680px;
  color: var(--site-text);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.legal-updated {
  color: var(--site-muted);
  font-size: 0.82rem;
}

.legal-page {
  padding: 5rem 0 7rem;
  background: #ffffff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 780px);
  justify-content: center;
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.legal-navigation {
  position: sticky;
  top: 2rem;
  padding: 1.25rem;
  background: var(--site-background);
  border: 1px solid var(--site-border);
  border-radius: 16px;
}

.legal-navigation > strong {
  display: block;
  font-size: 0.83rem;
  margin-bottom: 0.85rem;
}

.legal-navigation nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.legal-navigation a {
  color: var(--site-text);
  border-radius: 7px;
  padding: 0.42rem 0.5rem;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.35;
}

.legal-navigation a:hover {
  background: var(--site-primary-soft);
  color: var(--site-primary);
}

.legal-content {
  min-width: 0;
}

.legal-notice {
  background: var(--site-primary-soft);
  border: 1px solid #cfdfd4;
  border-left: 4px solid var(--site-primary);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 3rem;
}

.legal-notice strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.legal-notice p {
  color: #3f574b;
  font-size: 0.86rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.legal-section {
  scroll-margin-top: 2rem;
  padding-bottom: 2.8rem;
  margin-bottom: 2.8rem;
  border-bottom: 1px solid var(--site-border);
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  color: var(--site-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}

.legal-section h3 {
  color: var(--site-heading);
  font-size: 1rem;
  margin: 1.8rem 0 0.75rem;
}

.legal-section p,
.legal-section li {
  color: var(--site-text);
  font-size: 0.92rem;
  line-height: 1.78;
}

.legal-section p {
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.4rem;
  margin: 1rem 0 1.25rem;
}

.legal-section li {
  padding-left: 0.3rem;
  margin-bottom: 0.55rem;
}

.legal-section a {
  color: var(--site-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-placeholder {
  color: #8a5a16;
  background: #fff3d7;
  border-radius: 4px;
  padding: 0.08rem 0.25rem;
  font-weight: 700;
}

.legal-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--site-border);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #ffffff;
}

.legal-table th,
.legal-table td {
  vertical-align: top;
  border-bottom: 1px solid var(--site-border);
  padding: 0.95rem;
  text-align: left;
  font-size: 0.79rem;
  line-height: 1.55;
}

.legal-table th {
  width: 190px;
  background: var(--site-surface-soft);
  color: var(--site-heading);
  font-weight: 750;
}

.legal-table td {
  color: var(--site-text);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table thead th {
  width: auto;
  background: #153d30;
  color: #ffffff;
}

.legal-purpose-table th:nth-child(1) {
  width: 30%;
}

.legal-purpose-table th:nth-child(2) {
  width: 40%;
}

.legal-purpose-table th:nth-child(3) {
  width: 30%;
}

.legal-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--site-text);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-address strong {
  color: var(--site-heading);
}

@media (max-width: 991px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-navigation {
    position: static;
  }

  .legal-navigation nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }
}

@media (max-width: 575px) {
  .legal-hero {
    padding: 4rem 0 3rem;
  }

  .legal-page {
    padding: 3.5rem 0 5rem;
  }

  .legal-navigation {
    padding: 1rem;
  }

  .legal-navigation nav {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.75rem;
  }
}