/* ==========================================================================
   Amaris Legal & Policy Pages (Termeni, Returnare, Livrare)
   ========================================================================== */

.page-template-default .page_content_wrap .content_wrap,
.page-template-default .content,
.page-template-default .post_item_single,
.page-template-default .post_content,
.amaris-legal-page {
  max-width: 1080px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

.page-template-default .page_content_wrap .content_wrap {
  padding: 0 20px !important;
}

.amaris-legal-page {
  padding: 40px 0 90px;
  color: #fff;
  font-family: "Nunito", sans-serif !important;
}

/* Hero Header */
.amaris-legal-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 46px;
}

.amaris-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(56, 62, 91, 0.4);
  border: 1px solid rgba(209, 117, 150, 0.35);
  color: #d17596;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.amaris-legal-title {
  font-family: "Nunito", sans-serif !important;
  font-size: clamp(32px, 4vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.02em !important;
}

.amaris-legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #8b9098;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Document Container Card */
.amaris-legal-card {
  background: rgba(25, 30, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 768px) {
  .amaris-legal-card {
    padding: 28px 20px;
    border-radius: 18px;
    gap: 24px;
  }
}

/* Sections List */
.amaris-legal-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.amaris-legal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .amaris-legal-section {
    flex-direction: column;
    gap: 12px;
  }
}

.amaris-section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(56, 62, 91, 0.6);
  border: 1px solid rgba(209, 117, 150, 0.35);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.amaris-section-body {
  flex: 1;
}

.amaris-section-body h3 {
  font-family: "Nunito", sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.01em !important;
}

.amaris-section-body p {
  font-size: 15px;
  line-height: 1.7;
  color: #b5b9c2;
  margin: 0 0 10px;
}

.amaris-section-body p:last-child {
  margin-bottom: 0;
}

.amaris-section-body a {
  color: #d17596;
  text-decoration: none;
  border-bottom: 1px dashed rgba(209, 117, 150, 0.4);
  transition: all 0.2s;
}

.amaris-section-body a:hover {
  color: #ffffff;
  border-bottom-style: solid;
}

.amaris-section-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amaris-section-body ul:last-child {
  margin-bottom: 0;
}

.amaris-section-body li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #b5b9c2;
}

.amaris-section-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d17596;
}

.amaris-section-body li strong {
  color: #ffffff;
}

/* Highlight / Warning Note */
.amaris-legal-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(209, 117, 150, 0.09);
  border: 1px solid rgba(209, 117, 150, 0.28);
  font-size: 14px;
  line-height: 1.65;
  color: #e3c4d0;
}

.amaris-legal-note span:first-child {
  color: #d17596;
  line-height: 1.5;
}

/* Allergen Chip Grid */
.amaris-allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
  margin: 8px 0;
}

@media (max-width: 520px) {
  .amaris-allergen-grid {
    grid-template-columns: 1fr;
  }
}

.amaris-allergen-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.amaris-allergen-item:hover {
  background: rgba(56, 62, 91, 0.35);
  border-color: rgba(209, 117, 150, 0.3);
}

.amaris-allergen-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  background: rgba(209, 117, 150, 0.14);
  border: 1px solid rgba(209, 117, 150, 0.35);
  color: #d17596;
  font-size: 12px;
  font-weight: 700;
}

.amaris-allergen-item span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #e6e8ec;
  line-height: 1.4;
}

/* Delivery Highlight Cards */
.amaris-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 8px 0;
}

@media (max-width: 640px) {
  .amaris-delivery-grid {
    grid-template-columns: 1fr;
  }
}

.amaris-delivery-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amaris-delivery-box h4 {
  font-family: "Nunito", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.amaris-delivery-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amaris-delivery-box li {
  font-size: 14px;
  color: #9aa0ab;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amaris-delivery-box li strong {
  color: #ffffff;
}

.amaris-free-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(46, 125, 50, 0.3);
  border: 1px solid #4caf50;
  color: #81c784;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Cookie inventory table */
.amaris-cookie-table-wrap {
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.amaris-cookie-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.amaris-cookie-table th {
  text-align: left;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8b9098;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.amaris-cookie-table td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: #9aa0ab;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.amaris-cookie-table tr:last-child td {
  border-bottom: 0;
}

.amaris-cookie-table td strong {
  color: #ffffff;
}

.amaris-cookie-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.amaris-cookie-tag.is-necessary {
  background: rgba(56, 62, 91, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c9ced6;
}

.amaris-cookie-tag.is-analytics {
  background: rgba(46, 125, 50, 0.25);
  border: 1px solid #4caf50;
  color: #81c784;
}

.amaris-cookie-tag.is-marketing {
  background: rgba(209, 117, 150, 0.22);
  border: 1px solid #d17596;
  color: #e3a3ba;
}

/* Contact & Help Banner */
.amaris-legal-help {
  margin-top: 12px;
  padding: 26px;
  background: rgba(56, 62, 91, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.amaris-legal-help-text h4 {
  font-family: "Nunito", sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 4px !important;
}

.amaris-legal-help-text p {
  font-size: 14px;
  color: #8b9098;
  margin: 0;
}

.amaris-legal-help-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.amaris-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.amaris-help-btn:hover {
  background: #383e5b;
  border-color: #585fba;
  color: #ffffff;
}

/* Inline "open cookie settings" button inside legal copy */
.amaris-legal-page .amaris-legal-cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #383e5b;
  border: 1px solid #383e5b;
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amaris-legal-page .amaris-legal-cookie-btn:hover {
  background: #585fba;
  border-color: #585fba;
  color: #ffffff;
}
