/* --- PAGE HERO HEADER --- */
.page-header {
  padding: calc(80px + 3rem) 1rem 4rem;
  background: var(--gradient-primary, linear-gradient(135deg, #0d2b3a 0%, #004d40 100%));
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background glow effect */
.page-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  font-size: 3.25rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}

.page-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

/* --- MAIN CONTAINER & CARD --- */
.terms-section {
  background-color: var(--background-light, #F6F8FA);
  padding: 4.5rem 1.25rem 6rem;
}

.terms-card {
  background-color: var(--background-white, #FFFFFF);
  padding: 3.5rem;
  border-radius: var(--border-radius, 0.75rem);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(13, 43, 58, 0.08));
  border: 1px solid var(--border-light, #E0E5EB);
  max-width: 960px;
  margin: 0 auto;
}

/* --- INTRO BLOCK --- */
.terms-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary, #4A5F6A);
  background: rgba(13, 43, 58, 0.03);
  padding: 1.75rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-blue, #2E4A5B);
}

.terms-intro p:not(:last-child) {
  margin-bottom: 1rem;
}

.terms-divider {
  border: 0;
  height: 1px;
  background: var(--border-light, #E0E5EB);
  margin: 3rem 0;
}

/* --- SECTION BLOCKS & HEADINGS --- */
.terms-block {
  margin-bottom: 3.25rem;
}

.terms-block:last-child {
  margin-bottom: 0;
}

.terms-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary, #0F1A20);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.terms-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--accent-coral, #E6542B);
  border-radius: 2px;
}

.terms-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d2b3a;
  margin: 1.75rem 0 0.75rem;
}

.terms-block p {
  color: var(--text-secondary, #4A5F6A);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.terms-block p strong {
  color: var(--text-primary, #0F1A20);
}

/* --- CANCELLATION TABLE STYLING --- */
.table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border-light, #E0E5EB);
}

.cancellation-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cancellation-table th, 
.cancellation-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light, #E0E5EB);
}

.cancellation-table th {
  background: linear-gradient(135deg, #0d2b3a 0%, #004d40 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cancellation-table tr:last-child td {
  border-bottom: none;
}

.cancellation-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

/* Badges for percentages */
.badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}

.badge.warning { background: #FEF3C7; color: #92400E; }
.badge.danger { background: #FEE2E2; color: #991B1B; }
.badge.severe { background: #E6542B; color: #FFFFFF; box-shadow: 0 2px 8px rgba(230, 84, 43, 0.3); }

.note-text {
  font-size: 0.92rem;
  line-height: 1.6;
  background-color: #FFF5F2;
  border-left: 4px solid var(--accent-coral, #E6542B);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #5A2A1B;
}

/* --- COACH RULES LIST (SECTION 6) --- */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #F8FAFC;
  padding: 1.1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #EAEEF2;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rules-list li:hover {
  transform: translateX(4px);
  border-color: rgba(230, 84, 43, 0.3);
}

.rules-list i {
  color: var(--accent-coral, #E6542B);
  font-size: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.rules-list span {
  color: var(--text-secondary, #4A5F6A);
  font-size: 0.96rem;
  line-height: 1.6;
}

.rules-list ul {
  list-style: disc;
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
}

.rules-list ul li {
  background: transparent;
  padding: 0;
  border: none;
  margin-bottom: 0.4rem;
  display: list-item;
}

.rules-list ul li:hover {
  transform: none;
}

/* --- RESPONSIVE MOBILE STYLES --- */
@media (max-width: 900px) {
  .page-header {
    padding: calc(80px + 2rem) 1rem 3rem;
  }
  .page-header h1 {
    font-size: 2.4rem;
  }
  .terms-card {
    padding: 2rem 1.5rem;
  }
  .terms-block h2 {
    font-size: 1.25rem;
  }
  .cancellation-table th, 
  .cancellation-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
}