/* LEGAL PAGES STYLING (Privacy, Cookies, Data Protection) */

.legal-page {
  background-color: #f8fafc;
}

.legal-page .wrapper {
  max-width: 1550px;
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 1024px) {
  .legal-page .wrapper {
    flex-direction: row;
    gap: 80px;
    padding: 120px 24px;
  }
}

.legal-page .sidebar {
  flex: 0 0 100%;
}

@media (min-width: 1024px) {
  .legal-page .sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 120px;
    height: fit-content;
    border-right: 1px solid #e5e7eb;
    padding-right: 40px;
  }
}

/* SIDEBAR MENU STYLING */

/* Show all items since it's a flat list on legal pages */
.legal-page .sidebar .mod-menu > li {
  display: block;
}

/* Style the module title as the sidebar header */
.legal-page .sidebar .moduletable h3 {
  display: block;
  font-family: "PlusJakartaSans ExtraBold", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--avnet-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-decoration: none;
}

/* Style for items in the sidebar */
.legal-page .sidebar .mod-menu {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 23px;
  border-left: 2px solid #e2e8f0;
}

.legal-page .sidebar .mod-menu li a {
  display: block;
  font-size: 16px;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.legal-page .sidebar .mod-menu li a:hover {
  color: var(--avnet-green);
  padding-left: 4px;
}

.legal-page .sidebar .mod-menu li.current > a,
.legal-page .sidebar .mod-menu li.active > a {
  color: var(--avnet-green);
  font-weight: 700;
}

.legal-page .sidebar .mod-menu li.current,
.legal-page .sidebar .mod-menu li.active {
  position: relative;
}

.legal-page .sidebar .mod-menu li.current::before,
.legal-page .sidebar .mod-menu li.active::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--avnet-green);
  border-radius: 0 2px 2px 0;
}

.legal-page .sidebar .menu-item-description {
  display: none;
}

.legal-page .sidebar .menu-item-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.legal-page .sidebar .menu-item-description {
  display: none;
}

.legal-page .sidebar .menu-item-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* CONTENT STYLING */
.content-legal {
  flex: 1;
  min-width: 0;
}

.content-legal .legal-title {
  font-family: "PlusJakartaSans ExtraBold", sans-serif;
  font-size: 48px;
  color: var(--avnet-dark);
  margin-bottom: 48px;
  line-height: 1.2;
}

.content-legal p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.content-legal h2 {
  font-family: "PlusJakartaSans Bold", sans-serif;
  font-size: 28px;
  color: var(--avnet-dark);
  margin: 48px 0 24px;
}

.content-legal h3 {
  font-family: "PlusJakartaSans Bold", sans-serif;
  font-size: 22px;
  color: var(--avnet-dark);
  margin: 32px 0 16px;
}

.content-legal a {
  color: var(--avnet-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.content-legal a:hover {
  color: var(--avnet-green-dark);
  text-decoration: underline;
}

.content-legal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Стили для ручной нумерации (один абзац, отступ только у первой строки) */
.content-legal .legal-item {
  margin-bottom: 32px;
}

.content-legal .legal-number {
  color: var(--avnet-green);
  font-weight: 800;
  font-size: 16px;
  margin-right: 8px;
  text-indent: 0;
  display: inline-block;
}

.content-legal li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 0;
  position: relative;
}

.content-legal ul li {
  padding-left: 32px;
}

.content-legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: var(--avnet-green);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.content-legal strong {
  color: var(--avnet-dark);
  font-weight: 700;
}

/* Tables in Legal Content */
.content-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.content-legal th {
  background-color: var(--avnet-green);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-family: "PlusJakartaSans Bold", sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content-legal td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.5;
  vertical-align: top;
}

.content-legal tr:last-child td {
  border-bottom: none;
}

/* Section specific table styling (from original) */
.avnet-table-data-section {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .content-legal .legal-title {
    font-size: 35px;
    margin-bottom: 32px;
  }

  .content-legal h2 {
    font-size: 27px;
  }

  .content-legal h3 {
    font-size: 23px;
  }

  .content-legal table {
    display: block;
    overflow-x: auto;
  }
}
