/* ============================================================
   LEGAL PAGES — legal.css
   Shared styles for Privacy Policy, Terms, Return Policy, Opt Out
   ============================================================ */

/* ---- Banner ---- */
.legal-banner {
  position: relative;
  padding: 110px 24px 70px;
  background: #f5f5f5;
  overflow: hidden;
  text-align: center;
}
.legal-banner-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lbb-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(2,181,123,0.11) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(2,181,123,0.06) 0%, transparent 60%);
}
.lbb-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(2,181,123,0.16) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.lbb-orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
}
.lbb-orb1 { width: 380px; height: 380px; background: #02B57B; opacity: 0.10; top: -100px; right: -60px; }
.lbb-orb2 { width: 260px; height: 260px; background: #02B57B; opacity: 0.07; bottom: -60px; left: -40px; }

.legal-banner-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.legal-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(2,181,123,0.1); border: 1px solid rgba(2,181,123,0.25);
  color: #02B57B; font-size: 0.76rem; font-weight: 700;
  padding: 6px 16px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.legal-dot {
  width: 7px; height: 7px; background: #02B57B; border-radius: 50%;
  animation: lpulse 1.8s ease-in-out infinite;
}
@keyframes lpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(2,181,123,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(2,181,123,0); }
}
.legal-banner-inner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #171717;
  line-height: 1.15; letter-spacing: -0.4px;
}
.legal-banner-inner p {
  font-size: 1rem; color: #666; line-height: 1.75; max-width: 560px;
}
.legal-meta {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; justify-content: center;
  margin-top: 4px;
}
.legal-meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: #888; font-weight: 500;
}
.legal-meta span i { color: #02B57B; font-size: 0.75rem; }

/* ---- Body Layout ---- */
.legal-body { padding: 80px 24px 100px; background: #fff; }
.legal-body-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 48px;
}

/* ---- Section Block ---- */
.legal-section { display: flex; flex-direction: column; gap: 14px; }
.legal-section h2 {
  font-size: 1.25rem; font-weight: 800; color: #171717;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.legal-section h2 i { color: #02B57B; font-size: 1rem; }
.legal-section p {
  font-size: 0.96rem; color: #555; line-height: 1.85;
}
.legal-section ul {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  padding-left: 4px;
}
.legal-section ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem; color: #555; line-height: 1.7;
}
.legal-section ul li::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: #02B57B; flex-shrink: 0; margin-top: 8px;
}

/* ---- Info Box ---- */
.legal-infobox {
  background: rgba(2,181,123,0.06);
  border: 1px solid rgba(2,181,123,0.2);
  border-left: 4px solid #02B57B;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 0.92rem; color: #444; line-height: 1.75;
}
.legal-infobox strong { color: #02B57B; }

/* ---- Contact Box ---- */
.legal-contact-box {
  background: #f9f9f9; border: 1px solid #ebebeb;
  border-radius: 18px; padding: 28px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.lcb-text h3 { font-size: 1.1rem; font-weight: 700; color: #171717; margin-bottom: 6px; }
.lcb-text p  { font-size: 0.9rem; color: #666; line-height: 1.6; }
.lcb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #02B57B, #00c98a);
  color: #fff; font-size: 0.9rem; font-weight: 700;
  padding: 12px 24px; border-radius: 50px; text-decoration: none;
  white-space: nowrap; transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(2,181,123,0.3);
}
.lcb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(2,181,123,0.4); }
.lcb-btn i { font-size: 0.75rem; transition: transform 0.2s; }
.lcb-btn:hover i { transform: translateX(3px); }

/* ---- Opt Out Form ---- */
.optout-form-wrap {
  background: #fff; border: 1px solid #ebebeb;
  border-radius: 24px; padding: 36px 32px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}
.optout-form-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #02B57B, #00d68f, #02B57B);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.optout-form { display: flex; flex-direction: column; gap: 16px; }
.ouf-group { display: flex; flex-direction: column; gap: 6px; }
.ouf-group label {
  font-size: 0.76rem; font-weight: 600; color: #444;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.ouf-wrap { position: relative; display: flex; align-items: center; }
.ouf-wrap > i:first-child {
  position: absolute; left: 13px; color: #bbb; font-size: 0.8rem;
  pointer-events: none; transition: color 0.2s; z-index: 1;
}
.ouf-wrap input, .ouf-wrap select, .ouf-wrap textarea {
  width: 100%; padding: 11px 13px 11px 36px;
  border: 1.5px solid #ebebeb; border-radius: 12px;
  font-size: 0.875rem; font-family: inherit; color: #171717;
  background: #fafafa; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.ouf-wrap input:focus, .ouf-wrap select:focus, .ouf-wrap textarea:focus {
  border-color: #02B57B; background: #fff;
  box-shadow: 0 0 0 3px rgba(2,181,123,0.1);
}
.ouf-wrap:focus-within > i:first-child { color: #02B57B; }
.ouf-sel-arr { position: absolute; right: 13px; color: #bbb; font-size: 0.65rem; pointer-events: none; }
.ouf-wrap textarea { resize: none; padding-top: 12px; line-height: 1.5; }
.ouf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ouf-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #02B57B, #00c98a);
  color: #fff; font-size: 0.92rem; font-weight: 700;
  border: none; border-radius: 14px; cursor: pointer;
  font-family: inherit; transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(2,181,123,0.3); margin-top: 4px;
}
.ouf-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(2,181,123,0.4); }
.ouf-submit:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }
.ouf-note {
  text-align: center; font-size: 0.75rem; color: #aaa;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.ouf-note i { color: #02B57B; }
.ouf-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; padding: 16px 0;
}
.oufs-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #02B57B, #00d68f);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem;
  box-shadow: 0 8px 28px rgba(2,181,123,0.3);
}
.ouf-success h4 { font-size: 1.15rem; font-weight: 700; color: #171717; }
.ouf-success p  { font-size: 0.88rem; color: #777; line-height: 1.6; max-width: 300px; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .legal-banner { padding: 90px 16px 60px; }
  .legal-body   { padding: 60px 16px 80px; }
  .legal-contact-box { flex-direction: column; }
  .ouf-row { grid-template-columns: 1fr; }
  .optout-form-wrap { padding: 24px 18px; }
}

/* ===== COMMUNICATION CONSENT STYLING ===== */
.communication-consent {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 12px 0 20px !important;
    padding: 0 !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    text-align: left !important;
}

.communication-consent input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    flex: 0 0 16px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.communication-consent label {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    float: none !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    font-weight: normal !important;
    color: inherit !important;
}

.communication-consent label a {
    display: inline !important;
    text-decoration: underline !important;
    color: inherit !important;
}

.communication-consent label strong {
    font-weight: 700 !important;
}
