/* ==========================================================================
   Legal pages — Politica de confidențialitate & Termene și condiții
   Design-only layer; content lives in privacy.tpl / terms.tpl
   ========================================================================== */

.eet-legal-page {
  font-family: var(--eet-font);
  color: var(--eet-ink-900);
  background: var(--eet-bg-soft);
  scroll-padding-top: 96px;
}

/* Hero — compact legal variant on shared .eet-hero */
.eet-legal-page .eet-hero {
  position: relative;
  overflow: hidden;
}

.eet-legal-page .eet-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 206, 43, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.eet-legal-page .eet-hero__inner {
  position: relative;
  z-index: 1;
}

.eet-legal-page .eet-hero__lead {
  max-width: 40rem;
}

/* Content shell */
.eet-legal-body {
  padding: clamp(20px, 4vw, 32px) 0 clamp(40px, 6vw, 64px);
}

.eet-legal-page .eet-page__inner {
  max-width: min(52rem, 100%);
}

/* Accordion stack — FAQ-inspired cards */
.eet-legal-page .eet-legal-accordion.accordion.plainStyle {
  margin: 0;
  background: transparent;
}

.eet-legal-page .eet-legal-accordion .accordion-item {
  margin: 0 0 10px;
  background: var(--eet-bg-white);
  border: 1px solid var(--eet-line);
  border-radius: var(--eet-radius-sm);
  box-shadow: var(--eet-shadow-sm);
  overflow: hidden;
  transition: border-color 0.22s var(--eet-ease), box-shadow 0.22s var(--eet-ease);
}

.eet-legal-page .eet-legal-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.eet-legal-page .eet-legal-accordion .accordion-item.is-active {
  border-color: rgba(75, 162, 72, 0.42);
  box-shadow: var(--eet-shadow-md);
}

.eet-legal-page .eet-legal-accordion .accordion-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.eet-legal-page .eet-legal-accordion .accordion-title::before {
  display: none;
}

.eet-legal-page .eet-legal-accordion .accordion-title::after {
  content: '';
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--eet-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2334423a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.28s var(--eet-ease), background-color 0.22s var(--eet-ease);
}

.eet-legal-page .eet-legal-accordion .accordion-item.is-active .accordion-title::after {
  transform: rotate(180deg);
  background-color: var(--eet-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Eyebrow + title stack in column 1; chevron stays in column 2 */
.eet-legal-page .accordion-title .uppercase.brandcolor,
.eet-legal-page .accordion-title p.uppercase.brandcolor,
.eet-legal-page .accordion-title span.uppercase.brandcolor {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eet-green-dark);
  line-height: 1.3;
}

.eet-legal-page .accordion-title h2.displayFont {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-family: var(--eet-font);
  font-size: clamp(15px, 2.8vw, 17px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: var(--eet-ink-900);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.eet-legal-page .eet-legal-accordion__title-line {
  display: block;
}

.eet-legal-page .accordion-title .uppercase.brandcolor::after,
.eet-legal-page .accordion-title p.uppercase.brandcolor::after,
.eet-legal-page .accordion-title span.uppercase.brandcolor::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(75, 162, 72, 0.35), transparent);
}

/* Panel body */
.eet-legal-page .eet-legal-accordion .accordion-content {
  padding: 0 18px 18px;
  border: none;
  background: transparent;
  color: var(--eet-ink-700);
}

.eet-legal-page .eet-legal-accordion .accordion-item.is-active .accordion-content {
  border-top: 1px solid var(--eet-line);
  padding-top: 16px;
}

.eet-legal-page .accordion-content p,
.eet-legal-page .accordion-content li {
  font-size: 15px;
  line-height: 1.72;
  color: var(--eet-ink-700);
}

.eet-legal-page .accordion-content p {
  margin: 0 0 14px;
}

.eet-legal-page .accordion-content p:last-child {
  margin-bottom: 0;
}

.eet-legal-page .accordion-content a {
  color: var(--eet-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(61, 138, 58, 0.35);
  text-underline-offset: 2px;
  transition: color 0.2s var(--eet-ease), text-decoration-color 0.2s var(--eet-ease);
}

.eet-legal-page .accordion-content a:hover {
  color: var(--eet-green);
  text-decoration-color: var(--eet-green);
}

/* Lists */
.eet-legal-page .accordion-content ul,
.eet-legal-page .accordion-content .custom-ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.eet-legal-page .accordion-content ul:last-child,
.eet-legal-page .accordion-content .custom-ul:last-child {
  margin-bottom: 0;
}

.eet-legal-page .accordion-content ul li,
.eet-legal-page .accordion-content .custom-ul li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 22px;
}

.eet-legal-page .accordion-content ul li:last-child,
.eet-legal-page .accordion-content .custom-ul li:last-child {
  margin-bottom: 0;
}

.eet-legal-page .accordion-content ul li::before,
.eet-legal-page .accordion-content .custom-ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eet-green);
  box-shadow: 0 0 0 3px var(--eet-green-50);
}

.eet-legal-page .accordion-content .custom-ul li > span.uppercase.brandcolor {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eet-green-dark);
}

.eet-legal-page .accordion-content .custom-ul li > p {
  margin-top: 0;
}

/* Company details block (terms page) */
.eet-legal-page .accordion-content p br + br {
  display: block;
  content: '';
  margin-top: 8px;
}

@media (min-width: 768px) {
  .eet-legal-page .eet-legal-accordion .accordion-title {
    padding: 18px 22px;
  }

  .eet-legal-page .eet-legal-accordion .accordion-content {
    padding: 0 22px 22px;
  }

  .eet-legal-page .eet-legal-accordion .accordion-item.is-active .accordion-content {
    padding-top: 18px;
  }

  .eet-legal-page .accordion-title h2.displayFont {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eet-legal-page .eet-legal-accordion .accordion-title::after {
    transition: none;
  }
}
