/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #f3efe7;
  color: #101a17;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #16453a;
  text-decoration: none;
}
a:hover {
  color: #c79a4e;
}
img {
  display: block;
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.header {
  position: relative;
  background: #16453a;
}

/* ===== Legal hero ===== */
.legal-hero {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 64px);
  background: #ffffff;
  border-bottom: 1px solid rgba(199, 154, 78, 0.35);
}

.legal-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.legal-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font:
    500 12px/1.4 Inter,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c79a4e;
}

.legal-hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: #c79a4e;
}

.legal-hero__title {
  margin: 0;
  font:
    600 clamp(34px, 4.6vw, 60px)/1.08 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.03em;
  color: #16453a;
  text-wrap: balance;
}

.legal-hero__date {
  margin: 0;
  font:
    400 15px/1.5 Inter,
    sans-serif;
  color: rgba(16, 26, 23, 0.68);
}

/* ===== Legal content ===== */
.legal {
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 56px) clamp(72px, 9vw, 120px);
  background: #f3efe7;
}

.legal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.legal__toc {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 32px;
  border-top: 1px solid rgba(199, 154, 78, 0.35);
}

.legal__toc-link {
  padding: 12px 0;
  border-bottom: 1px solid rgba(199, 154, 78, 0.35);
  font:
    500 14px/1.35 Inter,
    sans-serif;
  color: #16453a;
}

.legal__toc-link:hover {
  color: #c79a4e;
}

.legal__content {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 760px;
  min-width: 0;
  font:
    400 16px/1.65 Inter,
    sans-serif;
  color: rgba(16, 26, 23, 0.82);
}

.legal__lead {
  margin: 0;
  font:
    400 clamp(17px, 1.4vw, 19px)/1.6 Inter,
    sans-serif;
  color: #101a17;
  text-wrap: pretty;
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 32px;
}

.legal__title {
  margin: 0 0 4px;
  font:
    600 clamp(22px, 2vw, 28px)/1.2 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.02em;
  color: #16453a;
  text-wrap: balance;
}

.legal__text {
  margin: 0;
  text-wrap: pretty;
}

.legal__strong {
  font-weight: 600;
  color: #101a17;
}

.legal__link {
  color: #16453a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__link:hover {
  color: #c79a4e;
}

.legal__list,
.legal__steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(199, 154, 78, 0.35);
}

.legal__list-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(199, 154, 78, 0.35);
}

.legal__list-item::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #c79a4e;
}

.legal__step {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(199, 154, 78, 0.35);
}

.legal__step-num {
  flex: none;
  width: 28px;
  font:
    600 15px/1.65 "Plus Jakarta Sans",
    sans-serif;
  color: #c79a4e;
}

.legal__step-text {
  text-wrap: pretty;
}

/* ===== Order steps (Envíos) ===== */
.order-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: rgba(199, 154, 78, 0.35);
  border: 1px solid rgba(199, 154, 78, 0.35);
}

.order-steps__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: #ffffff;
}

.order-steps__num {
  font:
    600 14px/1 "Plus Jakarta Sans",
    sans-serif;
  color: #c79a4e;
}

.order-steps__title {
  margin: 0;
  font:
    600 18px/1.3 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.02em;
  color: #16453a;
}

.order-steps__text {
  margin: 0;
  font:
    400 15px/1.55 Inter,
    sans-serif;
  color: rgba(16, 26, 23, 0.75);
  text-wrap: pretty;
}

/* ===== Cities (Envíos) ===== */
.cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 20px 22px;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(199, 154, 78, 0.35);
  font:
    400 15px/1.45 Inter,
    sans-serif;
  color: #101a17;
}

.cities__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cities__item::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #c79a4e;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (min-width: 560px) {
  .order-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .legal__inner {
    grid-template-columns: 260px minmax(0, 760px);
  }
  .legal__toc {
    display: flex;
  }
}
