/* Legal Pages Dedicated Styles - Clean, Flat, Sharp, Matte Aesthetic */

/* Clean Legal Page Header (Modern solid midnight navy theme) */
.legal-page-header {
  background: #05091f;
  padding: 140px 0 45px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-page-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.25;
}

.legal-page-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  max-width: 680px;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .legal-page-header {
    padding: 100px 0 35px;
  }
  .legal-page-title {
    font-size: 28px;
  }
}

.legal-section {
  padding: 45px 0 70px;
  background-color: #f8fafc;
}

/* Document Card - Flat matte with sharp edges */
.legal-card {
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  padding: 45px;
  margin-bottom: 30px;
}

@media (max-width: 767.98px) {
  .legal-card {
    padding: 25px 20px;
  }
}

.legal-header-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #e97122;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 20px;
  margin-bottom: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  align-items: center;
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  color: #495057;
}

.legal-meta-item i {
  color: #e97122;
  margin-right: 8px;
  font-size: 15px;
}

.legal-meta-item strong {
  color: #090f35;
  margin-right: 4px;
}

.legal-intro {
  font-size: 16.5px;
  line-height: 1.85;
  color: #333333;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #edf0f2;
}

.legal-block {
  margin-bottom: 35px;
}

.legal-block h2,
.legal-block h3 {
  color: #090f35;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.legal-block h2 .sec-num,
.legal-block h3 .sec-num {
  color: #e97122;
  margin-right: 10px;
  font-weight: 800;
}

.legal-block p {
  color: #495057;
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.legal-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #495057;
  font-size: 15.5px;
  line-height: 1.75;
}

.legal-list li::before {
  content: "\f058";
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 1px;
  color: #e97122;
  font-size: 14px;
}

/* Callout Box - Clean flat tint without gradient shine */
.legal-highlight-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
  margin: 30px 0;
}

.legal-highlight-box h4 {
  color: #090f35;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Sidebar Navigation - Clean matte border, zero shadow */
.legal-sidebar {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  padding: 25px;
  margin-bottom: 30px;
}

.legal-sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: #090f35;
  padding-bottom: 15px;
  margin-bottom: 18px;
  border-bottom: 2px solid #e97122;
  display: flex;
  align-items: center;
}

.legal-sidebar-title i {
  color: #e97122;
  margin-right: 10px;
}

.legal-nav-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.legal-nav-list li {
  margin-bottom: 8px;
}

.legal-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 0;
  color: #495057;
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-nav-list a:hover {
  background: #f1f5f9;
  color: #e97122;
  border-color: #cbd5e1;
  transform: none;
  box-shadow: none;
}

/* Active item - Solid orange, flat matte, zero glow/shine */
.legal-nav-list a.active {
  background: #e97122;
  color: #ffffff;
  font-weight: 600;
  border-color: #e97122;
  box-shadow: none !important;
  transform: none;
}

.legal-nav-list a.active i {
  color: #ffffff;
}

.legal-quick-info {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #edf0f2;
}

.legal-quick-info p {
  font-size: 13.5px;
  color: #6c757d;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Grievance Officer Contact Card - Clean flat midnight box */
.legal-contact-card {
  background: #05091f;
  color: #ffffff;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  margin-top: 20px;
}

.legal-contact-card h5 {
  color: #ffa41b;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-contact-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.legal-contact-card a {
  color: #ffa41b;
  font-weight: 600;
  text-decoration: underline;
}

.legal-contact-card a:hover {
  color: #ffffff;
}

/* Legal Hub Cards for Overview page - Flat & matte */
.legal-hub-card {
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.legal-hub-card:hover {
  transform: none;
  box-shadow: none !important;
  border-color: #e97122;
}

.legal-hub-icon {
  width: 55px;
  height: 55px;
  border-radius: 0;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #e97122;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: none;
}

/* Buttons inside legal pages */
.legal-section .btn,
.legal-hub-card .btn,
.legal-card .btn {
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
