/* ==========================================================
   MASSAGE ARMY SPA - LEGALITAS, SERTIFIKASI & FOUNDER TEASER
   ========================================================== */

/* BASE CONTAINER */
.mas-legal {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  font-family: inherit;
  box-sizing: border-box;
}

.mas-legal-header {
  text-align: center;
  margin-bottom: 36px;
}

.mas-legal-header h1 {
  color: #3981D6; /* Azure Blue */
  margin: 0 0 10px;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.mas-legal-header p {
  color: #555;
  max-width: 720px;
  margin: auto;
  line-height: 1.6;
  font-size: 1.02rem;
}

/* GRID LAYOUT (DESKTOP) */
.mas-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CARD STYLING */
.mas-card {
  background: #ffffff;
  border: 1px solid #FFDEAA; /* Background Cream Peach */
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 15px rgba(213, 137, 59, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mas-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(213, 137, 59, 0.12);
  border-color: #D5893B; /* Sunset Orange */
}

/* CARD HEADER WITH ICON */
.mas-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F5ECDB; /* Linen White */
}

.mas-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #D5893B, #3981D6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.mas-card h2 {
  margin: 0;
  font-size: 1.18rem;
  color: #3981D6;
  font-weight: 700;
  line-height: 1.3;
}

/* TABLE STYLING (DESKTOP) */
.mas-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: auto;
}

.mas-card td {
  padding: 8px 0;
  border-bottom: 1px solid #F5ECDB;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.5;
}

.mas-card tr:last-child td {
  border-bottom: none;
}

.mas-card td:first-child {
  font-weight: 600;
  width: 38%;
  color: #444;
  padding-right: 10px;
}

.mas-card td:last-child {
  color: #222;
  font-weight: 500;
  word-break: break-word;
}

.mas-card p {
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-size: 0.92rem;
}

/* NOTE BOX */
.mas-note {
  margin-top: 30px;
  padding: 18px 20px;
  background: #F5ECDB;
  border-left: 4px solid #D5893B;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #444;
}

.mas-note strong {
  color: #d5893b;
}

/* FOUNDER TEASER SECTION */
.mas-founder-teaser {
  max-width: 1100px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: #F5ECDB;
  border-radius: 16px;
  box-sizing: border-box;
}

.mas-founder-teaser img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FF7F00;
  flex-shrink: 0;
}

.mas-founder-teaser-text h3 {
  color: #1A4DB3;
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.mas-founder-teaser-text p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 10px;
}

.mas-founder-teaser-text a {
  color: #FF7F00;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mas-founder-teaser-text a:hover {
  color: #D5893B;
  text-decoration: underline;
}

/* RESPONSIVE DESIGN - MOBILE & TABLET */
@media (max-width: 768px) {
  .mas-legal {
    padding: 20px 12px;
  }

  .mas-legal-header {
    margin-bottom: 24px;
  }

  .mas-legal-header h1 {
    font-size: 1.5rem;
  }

  .mas-legal-header p {
    font-size: 0.9rem;
  }

  .mas-legal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mas-card {
    padding: 16px 18px;
    border-radius: 14px;
  }

  .mas-card-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    gap: 12px;
  }

  .mas-icon {
    width: 38px;
    height: 38px;
    font-size: 13px;
    border-radius: 10px;
  }

  .mas-card h2 {
    font-size: 1.05rem;
  }

  /* Table stacked layout */
  .mas-card table, 
  .mas-card tbody, 
  .mas-card tr, 
  .mas-card td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .mas-card tr {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #F5ECDB;
  }

  .mas-card tr:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .mas-card td {
    padding: 2px 0 !important;
    border-bottom: none !important;
  }

  .mas-card td:first-child {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 700;
  }

  .mas-card td:last-child {
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 600;
  }

  .mas-card p {
    font-size: 0.88rem;
  }

  .mas-note {
    margin-top: 20px;
    padding: 14px 16px;
    font-size: 0.82rem;
  }

  .mas-founder-teaser {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    margin-top: 20px;
  }
}