/* ============================================================
   CALL US — LEGAL & TRUST
   legal.css
   ============================================================ */

/* ============================================================
   01 — SECTION
   ============================================================ */
.legal {
  position: relative;
  z-index: 2;
  background: #F5F0E8;
  color: #0A0A0A;
  padding: clamp(6rem, 12vh, 10rem) var(--pad);
  overflow: hidden;
}

.legal__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ============================================================
   02 — HEAD
   ============================================================ */
.legal__head {
  margin-bottom: clamp(3rem, 6vh, 5rem);
  max-width: 55rem;
}

.legal__title {
  font-family: 'General Sans', sans-serif;
  font-size: var(--t-section);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: #0A0A0A;
  margin-top: 0.5rem;
}

.legal__title-line { display: block; }

.legal__title-line--italic {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  color: #2D5A3D;
  padding-left: 0.05em;
}

.legal__lede {
  margin-top: 2rem;
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.7;
  color: #3D3D3D;
  max-width: 42rem;
}

/* ============================================================
   03 — GRID (دو کارت)
   ============================================================ */
.legal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(10, 10, 10, 0.1);
  border: 1px solid rgba(10, 10, 10, 0.1);
  margin-bottom: clamp(3rem, 6vh, 4rem);
}

/* ============================================================
   04 — CARD
   ============================================================ */
.legal__card {
  position: relative;
  background: #FFFFFF;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.legal__card:hover {
  background: #FAF7F2;
}

/* آیکون */
.legal__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #D4B48C;
  color: #B8976E;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.legal__card:hover .legal__card-icon {
  background: #D4B48C;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* شماره */
.legal__card-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: #B8976E;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* عنوان */
.legal__card-title {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0A0A0A;
}

/* خط جداکننده */
.legal__card-divider {
  width: 100%;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, #D4B48C, rgba(212, 180, 140, 0.1));
}

/* بدنه */
.legal__card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal__card-body p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: #3D3D3D;
}

.legal__card-body p strong {
  font-weight: 500;
  color: #0A0A0A;
}

/* Meta rows */
.legal__card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.legal__card-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'General Sans', sans-serif;
}

.legal__card-meta-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6B6B;
}

.legal__card-meta-value {
  font-size: 0.85rem;
  font-weight: 400;
  color: #0A0A0A;
  text-align: right;
}

/* Note */
.legal__card-note {
  font-size: 0.85rem !important;
  font-style: italic;
  color: #6B6B6B !important;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(10, 10, 10, 0.1);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* لینک‌های قانونی */
.legal__card-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  margin-top: auto;
}

.legal__card-links a {
  font-family: 'General Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2D5A3D;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(45, 90, 61, 0.3);
  transition: all 0.3s ease;
}

.legal__card-links a:hover {
  border-bottom-color: #2D5A3D;
  color: #0A0A0A;
}

.legal__card-links-sep {
  color: #D4B48C;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ============================================================
   05 — NOTE (پایین)
   ============================================================ */
.legal__note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  font-family: 'General Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #6B6B6B;
}

.legal__note strong {
  font-weight: 500;
  color: #0A0A0A;
}

.legal__note a {
  color: #2D5A3D;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 90, 61, 0.3);
  transition: border-color 0.3s ease;
}

.legal__note a:hover {
  border-bottom-color: #2D5A3D;
}

/* ============================================================
   06 — RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .legal {
    padding: 5rem var(--pad) 4rem;
  }

  .legal__grid {
    grid-template-columns: 1fr;
  }

  .legal__card {
    padding: 1.75rem;
  }
}

@media (max-width: 500px) {
  .legal__card-title {
    font-size: 1.25rem;
  }

  .legal__card-body p {
    font-size: 0.85rem;
  }

  .legal__card-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .legal__card-meta-value {
    text-align: left;
  }

  .legal__card-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .legal__card-links-sep {
    display: none;
  }
}

/* ============================================================
   07 — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .legal__card,
  .legal__card-icon,
  .legal__card-links a,
  .legal__note a {
    transition: none;
  }
}