/* ==========================================================================
   Zam Zam & Partners — Halaman Layanan Hukum
   ========================================================================== */

/* ---------- Hero ---------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 78px) clamp(64px, 7.5vw, 100px);
  background: var(--navy-900);
  color: #fff;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 460px at 92% -10%, rgba(217, 183, 110, .12), transparent 66%),
    radial-gradient(560px 420px at -8% 108%, rgba(31, 84, 74, .16), transparent 70%);
}

.legal-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 78px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: .69rem;
  color: rgba(255, 255, 255, .4);
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span[aria-current="page"] { color: rgba(255, 255, 255, .72); }

.legal-hero h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.35rem, 4.25vw, 3.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.legal-hero__lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(.94rem, 1.2vw, 1.01rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .65);
  text-wrap: pretty;
}

.legal-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.legal-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
}
.legal-hero__trust li { display: flex; align-items: center; gap: 7px; }
.legal-hero__trust .icon { width: 13px; height: 13px; color: var(--gold); }

.legal-hero .text-gold {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero index ---------- */
.legal-index {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
}

.legal-index__label {
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.legal-index__links { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.legal-index__links a {
  display: grid;
  grid-template-columns: 26px 1fr 14px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: padding-left .25s var(--ease);
}
.legal-index__links a:hover { padding-left: 5px; }
.legal-index__num { font-size: .62rem; letter-spacing: .08em; color: var(--gold); }
.legal-index__text {
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, .86);
}
.legal-index__text small {
  display: block;
  margin-top: 1px;
  font-size: .64rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .4);
}
.legal-index__links .icon {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, .3);
  transition: color .2s, transform .2s;
}
.legal-index__links a:hover .icon { color: var(--gold); transform: translate(1px, -1px); }

.legal-index__partner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.legal-index__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(217, 183, 110, .4);
  background: rgba(217, 183, 110, .08);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.legal-index__avatar img { width: 100%; height: 100%; object-fit: cover; }
.legal-index__avatar--fahmi img { object-position: center 30%; }
.legal-index__partner small {
  display: block;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}
.legal-index__partner strong {
  display: block;
  font-size: .83rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
}
.legal-index__partner a {
  display: block;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--gold-soft);
  transition: color .2s;
}
.legal-index__partner a:hover { color: #fff; }

/* ---------- Intro ---------- */
.legal-intro { background: #fff; }
.legal-intro__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: clamp(30px, 6vw, 80px);
}
.legal-intro h2 { max-width: 17ch; }
.legal-intro__copy { max-width: 62ch; }
.legal-intro__copy p { font-size: .94rem; line-height: 1.78; }
.legal-intro__copy p + p { margin-top: 14px; }

/* ---------- Legal sections ---------- */
.legal-section { background: var(--cream); }
.legal-section--alt { background: #fff; }
.legal-section--alt .legal-card { background: var(--cream); }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.legal-card:hover {
  border-color: rgba(168, 127, 43, .45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.legal-card__num {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-strong);
}
.legal-card h3 {
  margin-top: 9px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.4;
}
.legal-card p {
  margin-top: 7px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--body);
}

/* 5th card spans the row on desktop, keeping the grid balanced */
.legal-grid > .legal-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.legal-grid > .legal-card:last-child:nth-child(odd) p { max-width: 76ch; }

/* ---------- Corporate legal ---------- */
.corporate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.corporate-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.corporate-card:hover { border-color: rgba(168, 127, 43, .4); box-shadow: var(--shadow-soft); }
.corporate-card__head { display: flex; align-items: center; gap: 13px; }
.corporate-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold-strong);
}
.corporate-card__icon .icon { width: 19px; height: 19px; stroke-width: 1.5; }
.corporate-card h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.corporate-card > p { margin-top: 12px; font-size: .86rem; line-height: 1.7; }

.legal-list-check {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legal-list-check li {
  position: relative;
  padding-left: 20px;
  font-size: .82rem;
  line-height: 1.65;
  color: #4a5668;
}
.legal-list-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .52em;
  width: 4px;
  height: 8px;
  border-right: 1.3px solid var(--gold-strong);
  border-bottom: 1.3px solid var(--gold-strong);
  transform: rotate(40deg);
}

/* ---------- Partner ---------- */
.legal-partner { background: var(--navy-900); color: #fff; }
.legal-partner__inner {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
}
.legal-partner__avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(217, 183, 110, .45);
  background: rgba(217, 183, 110, .08);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.legal-partner__avatar img { width: 100%; height: 100%; object-fit: cover; }
.legal-partner__avatar--fahmi img { object-position: center 30%; }
.legal-partner h2 { margin-top: 0; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.05rem); }
.legal-partner p:not(.eyebrow) {
  max-width: 56ch;
  margin-top: 8px;
  font-size: .9rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, .6);
}
.legal-partner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-partner__note { margin-top: 12px; font-size: .7rem; color: rgba(255, 255, 255, .4); }

/* ---------- Motion ---------- */
.legal-hero [data-hero] {
  animation: hero-in .85s var(--ease) both;
  animation-delay: var(--d, 0s);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .legal-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .legal-hero h1 { max-width: 18ch; }
  .legal-index { max-width: 580px; }
  .legal-intro__inner { grid-template-columns: 1fr; gap: 18px; }
  .legal-partner__inner { grid-template-columns: 80px 1fr; }
  .legal-partner__avatar { width: 80px; height: 80px; font-size: 1.28rem; }
  .legal-partner__actions { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-grid > .legal-card:last-child:nth-child(odd) { grid-column: auto; }
  .corporate-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .legal-hero { padding-block: 40px 64px; }
  .legal-hero h1 { max-width: none; font-size: clamp(2.1rem, 8.4vw, 2.85rem); }
  .legal-hero__lead { font-size: .93rem; }
  .legal-hero__actions .btn { flex: 1 1 auto; }
  .legal-index { padding: 20px; }
  .legal-partner__inner { grid-template-columns: 1fr; gap: 20px; }
  .legal-partner__avatar { width: 76px; height: 76px; font-size: 1.2rem; }
  .legal-partner__actions .btn { flex: 1 1 auto; }
  .breadcrumb { margin-bottom: 20px; }
}

@media (max-width: 440px) {
  .legal-hero__actions .btn { width: 100%; }
}
