/* ==============================
   LEGAL PAGES
   For: terms, privacy, cookies, delivery-returns
============================== */

.legal-hero .page-hero__content,
.legal-hero__content {
  max-width: 820px;
}

.legal-hero .page-hero__text {
  max-width: 720px;
}

.legal-page {
  padding: 96px 0 110px;
  background:
    radial-gradient(circle at 88% 4%, rgba(143, 191, 77, 0.16), transparent 30%),
    linear-gradient(180deg, #f4f7f0 0%, #ffffff 48%, #f4f7f0 100%);
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height, 112px) + 24px);
  padding: 22px;
  border: 1px solid rgba(11, 61, 44, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(6, 20, 15, 0.08);
  backdrop-filter: blur(14px);
}

.legal-sidebar__title {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.legal-sidebar nav {
  display: grid;
  gap: 6px;
}

.legal-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  color: #4f5a4f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.legal-sidebar a:hover {
  color: #06140f;
  background: rgba(143, 191, 77, 0.16);
  transform: translateX(2px);
}

.legal-content {
  min-width: 0;
}

.legal-content__header {
  margin-bottom: 28px;
  padding: 36px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 18%, rgba(199, 229, 109, 0.24), transparent 30%),
    linear-gradient(135deg, #06140f 0%, #0b3d2c 100%);
  box-shadow: 0 22px 56px rgba(6, 20, 15, 0.14);
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.legal-content__header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.legal-content__header p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.6;
}

.legal-card {
  scroll-margin-top: calc(var(--header-height, 112px) + 28px);
  padding: 34px 36px;
  border: 1px solid rgba(11, 61, 44, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(6, 20, 15, 0.065);
}

.legal-card + .legal-card {
  margin-top: 18px;
}

.legal-card h3 {
  margin: 0 0 16px;
  color: #101410;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.legal-card p {
  margin: 0;
  color: #556052;
  font-size: 17px;
  line-height: 1.72;
}

.legal-card p + p {
  margin-top: 14px;
}

.legal-card a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-card ul,
.legal-card ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: #556052;
  font-size: 17px;
  line-height: 1.65;
}

.legal-card li::marker {
  color: var(--primary);
  font-weight: 900;
}

.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.legal-info-grid div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(11, 61, 44, 0.10);
  border-radius: 18px;
  background: #f4f7f0;
}

.legal-info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #101410;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-info-grid span {
  display: block;
  color: #556052;
  font-size: 16px;
  line-height: 1.55;
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.legal-link-row a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(11, 61, 44, 0.16);
  border-radius: 999px;
  color: #07140f;
  background: linear-gradient(135deg, #c7e56d, #8fbf4d);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.legal-link-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(143, 191, 77, 0.24);
}

.legal-card--contact {
  border-color: rgba(143, 191, 77, 0.30);
  background:
    radial-gradient(circle at 92% 16%, rgba(143, 191, 77, 0.18), transparent 28%),
    #ffffff;
}

/* Tables for future privacy/cookie/returns pages */

.legal-table-wrap {
  width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid rgba(11, 61, 44, 0.12);
  border-radius: 20px;
  background: #ffffff;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(11, 61, 44, 0.10);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: #101410;
  background: #eaf1e4;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-table td {
  color: #556052;
  font-size: 15px;
  line-height: 1.55;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

/* Notice blocks for cookie/privacy/returns pages */

.legal-notice {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(143, 191, 77, 0.30);
  border-radius: 20px;
  color: #354034;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 229, 109, 0.22), transparent 28%),
    #f4f7f0;
}

.legal-notice strong {
  color: #101410;
}

/* Responsive */

@media (max-width: 1080px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: relative;
    top: auto;
  }

  .legal-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .legal-page {
    padding: 72px 0;
  }

  .legal-content__header,
  .legal-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .legal-content__header h2 {
    letter-spacing: -0.05em;
  }

  .legal-sidebar {
    padding: 18px;
    border-radius: 22px;
  }

  .legal-sidebar nav {
    grid-template-columns: 1fr;
  }

  .legal-info-grid {
    grid-template-columns: 1fr;
  }

  .legal-link-row {
    display: grid;
  }

  .legal-link-row a {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .legal-content__header,
  .legal-card {
    padding: 24px 20px;
  }

  .legal-card h3 {
    font-size: 24px;
  }

  .legal-card p,
  .legal-card ul,
  .legal-card ol {
    font-size: 16px;
  }
}
/*  */
/* ==============================
   LEGAL BOTTOM NAV
============================== */

.legal-bottom-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.legal-bottom-nav__link {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(11, 61, 44, 0.14);
  border-radius: 24px;
  color: #101410;
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 229, 109, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(6, 20, 15, 0.065);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.legal-bottom-nav__link:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 191, 77, 0.34);
  box-shadow: 0 24px 56px rgba(6, 20, 15, 0.10);
}

.legal-bottom-nav__link--next {
  justify-content: flex-end;
  text-align: right;
  background:
    radial-gradient(circle at 88% 18%, rgba(199, 229, 109, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.88);
}

.legal-bottom-nav__link span:not(.legal-bottom-nav__icon) {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.legal-bottom-nav__link small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.legal-bottom-nav__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7e56d, #8fbf4d);
  box-shadow: 0 12px 28px rgba(143, 191, 77, 0.24);
}

.legal-bottom-nav__icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .legal-bottom-nav {
    grid-template-columns: 1fr;
  }

  .legal-bottom-nav__link,
  .legal-bottom-nav__link--next {
    justify-content: flex-start;
    text-align: left;
  }

  .legal-bottom-nav__link--next {
    flex-direction: row-reverse;
  }
}