.legal-body { background: #f7f7f5; }
.legal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 3.5rem;
  align-items: start;
}
.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1rem 1.2rem;
}
.legal-nav-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.legal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.legal-nav a {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}
.legal-nav a:hover,
.legal-nav a.is-active {
  background: rgba(196, 160, 74, 0.12);
  color: var(--ink);
}
.legal-entity {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.legal-entity strong {
  color: var(--ink);
  font-size: 0.85rem;
}
.legal-nav-home {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}
.legal-nav-home:hover {
  text-decoration: underline;
}
.legal-back {
  margin: 0 0 0.85rem;
}
.legal-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-deep);
}
.legal-back a:hover {
  text-decoration: underline;
  color: var(--ink);
}
.legal-doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem 1.6rem 2rem;
}
.draft-banner {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid rgba(196, 160, 74, 0.35);
  color: #5c4a1f;
  font-size: 0.85rem;
}
.legal-doc-head h1 {
  margin: 0.2rem 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}
.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.legal-content {
  margin-top: 1.5rem;
  color: #2b2b2b;
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal-content h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.15rem;
}
.legal-content h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
}
.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0 0 0.85rem;
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.2rem;
}
.legal-content li { margin-bottom: 0.35rem; }
.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.legal-hub-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}
.legal-hub-card:hover {
  border-color: rgba(196, 160, 74, 0.55);
  transform: translateY(-1px);
}
.legal-hub-card strong {
  display: block;
  margin-bottom: 0.3rem;
}
.legal-hub-card span {
  color: var(--muted);
  font-size: 0.88rem;
}
.complaint-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  max-width: 560px;
}
.complaint-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.complaint-form input,
.complaint-form select,
.complaint-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: #fff;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.complaint-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
  cursor: pointer;
}
.complaint-form input:focus,
.complaint-form select:focus,
.complaint-form textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(196, 160, 74, 0.22);
  outline: none;
}
.complaint-form textarea { min-height: 120px; resize: vertical; }

.lunsa-select {
  position: relative;
  width: 100%;
}
.lunsa-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.lunsa-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.lunsa-select-trigger::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  flex: 0 0 auto;
}
.lunsa-select.is-open .lunsa-select-trigger,
.lunsa-select-trigger:focus-visible {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(196, 160, 74, 0.22);
}
.lunsa-select-menu {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem;
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.12);
  max-height: 240px;
  overflow: auto;
}
.lunsa-select-menu [role="option"] {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
}
.lunsa-select-menu [role="option"]:hover {
  background: rgba(196, 160, 74, 0.12);
}
.lunsa-select-menu [role="option"].is-active {
  background: var(--gold);
  color: #111;
  font-weight: 600;
}

@media (max-width: 900px) {
  .legal-shell { grid-template-columns: 1fr; }
  .legal-nav {
    position: static;
    padding: 0.85rem 0.85rem 1rem;
  }
  .legal-nav-title { margin-bottom: 0.55rem; }
  .legal-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .legal-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    border: 1px solid var(--line);
    background: #fafaf8;
  }
  .legal-entity { display: none; }
  .legal-hub-grid { grid-template-columns: 1fr; }
  .legal-back {
    position: sticky;
    top: calc(var(--header-h) + 0.35rem);
    z-index: 5;
    margin: 0 0 0.75rem;
  }
  .legal-back a {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
}
