/* Document-specific layout; header and footer use the shared site styles. */
.legal-page {
  padding: 48px 0 72px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(16,185,129,.08), transparent 600px),
    var(--bg);
}

.legal-page > .container {
  max-width: 880px;
}

.legal-hero {
  margin-bottom: 32px;
}

.legal-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px,4.2vw,52px);
  line-height: 1.1;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}

.legal-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.legal-hero .legal-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.legal-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.legal-card,
.legal-section {
  min-width: 0;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.legal-card h2,
.legal-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(22px,2.2vw,27px);
  line-height: 1.3;
  letter-spacing: -.025em;
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section ol + p {
  margin-top: 14px;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-section li::marker {
  color: var(--accent);
}

.legal-section a,
.legal-requisites a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: #a7d9c4;
  text-underline-offset: 3px;
}

.legal-section a:hover,
.legal-requisites a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.legal-requisites dl {
  display: grid;
  margin: 0;
}

.legal-requisites dl > div {
  display: grid;
  grid-template-columns: 170px minmax(0,1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.legal-requisites dl > div:first-child {
  padding-top: 0;
}

.legal-requisites dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-requisites dt {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.legal-requisites dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .legal-page {
    padding: 30px 0 48px;
  }

  .legal-hero {
    margin-bottom: 24px;
  }

  .legal-hero h1 {
    font-size: clamp(30px,8vw,40px);
  }

  .legal-card,
  .legal-section {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .legal-requisites dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
