:root {
  --legal-max-width: min(960px, calc(100% - clamp(1rem, 4vw, 2.5rem)));
}

.legal-page main {
  padding: calc(var(--header-height) + 1.5rem) 0 4rem;
}

.legal-wrapper {
  width: var(--legal-max-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 2rem;
}

.legal-hero {
  background: rgba(255, 255, 255, 0.9);
  border-radius: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid rgba(111, 76, 43, 0.15);
  box-shadow: 0 25px 45px rgba(63, 44, 24, 0.12);
  padding: clamp(1.5rem, 5vw, 2.75rem);
}

.legal-hero h1 {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  font-family: "Marcellus", serif;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  color: var(--accent-dark);
}

.legal-hero p {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.legal-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(111, 76, 43, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-section {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.25rem;
  border: 1px solid rgba(111, 76, 43, 0.12);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 20px 35px rgba(63, 44, 24, 0.08);
  display: grid;
  gap: 0.85rem;
}

.legal-section h2 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  color: var(--accent-dark);
}

.legal-section h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.legal-section p {
  margin: 0;
  color: var(--text-primary);
}

.legal-section p + p {
  margin-top: 0.35rem;
}

.legal-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--text-primary);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}

.legal-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  border-left: 3px solid rgba(111, 76, 43, 0.4);
  padding-left: 0.75rem;
}

.legal-callout {
  background: rgba(111, 76, 43, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(111, 76, 43, 0.18);
  font-size: 0.96rem;
  color: var(--accent-dark);
}

.legal-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-link:hover,
.legal-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-meta {
    flex-direction: column;
  }

  .legal-section {
    padding: clamp(1.25rem, 5vw, 1.8rem);
  }
}

