/**
 * Terms and Conditions Page Styles
 * Matches privacy policy luxury editorial aesthetic
 */
.terms-page {
  min-height: 100vh;
  background: #FFFFFF;
}

body:has(.terms-page) .action-bar,
body:has(.terms-page) .floating-actions,
body:has(.terms-page) #toTop {
  display: none !important;
}
@media (min-width: 992px) {
  body:has(.terms-page) header.header.mm-slideout:not(.sticky) {
    background-color: transparent !important;
    background: transparent !important;
  }
}
body:has(.terms-page) header.header.mm-slideout:not(.sticky) #top_menu a,
body:has(.terms-page) header.header.mm-slideout:not(.sticky) .main-menu a {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.terms-page__hero {
  position: relative;
  height: 45vh;
  min-height: 350px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.terms-page__hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.terms-page__hero-bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 40%;
     object-position: center 40%;
}

.terms-page__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.8) 0%, rgba(26, 54, 93, 0.6) 50%, rgba(212, 165, 116, 0.4) 100%);
}

.terms-page__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  margin-top: 60px;
  -webkit-animation: termsFadeInUp 0.8s ease-out;
          animation: termsFadeInUp 0.8s ease-out;
}

.terms-page__eyebrow {
  display: inline-block;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E8C9A8;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.terms-page__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .terms-page__title {
    font-size: 4rem;
  }
}

.terms-page__subtitle {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 3px 12px rgba(0, 0, 0, 0.4);
}

.terms-page__content {
  padding: 60px 24px 80px;
  background: #FFFFFF;
}
@media (min-width: 992px) {
  .terms-page__content {
    padding: 80px 40px 100px;
  }
}

.terms-page__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 992px) {
  .terms-page__container {
    grid-template-columns: 240px 1fr;
    gap: 60px;
  }
}

.terms-page__sidebar {
  display: none;
}
@media (min-width: 992px) {
  .terms-page__sidebar {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

.terms-page__nav {
  background: #F5F0EB;
  border-radius: 12px;
  padding: 24px;
}

.terms-page__nav-title {
  display: block;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}

.terms-page__nav-link {
  display: block;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  color: #2D3748;
  text-decoration: none;
  padding: 10px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all 0.2s ease;
}
.terms-page__nav-link:hover {
  color: #1a365d;
  border-left-color: #D4A574;
}
.terms-page__nav-link.active {
  color: #1a365d;
  font-weight: 500;
  border-left-color: #D4A574;
  background: linear-gradient(to right, rgba(212, 165, 116, 0.1), transparent);
}

.terms-page__main {
  max-width: 800px;
}

.terms-page__effective {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
}

.terms-page__section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #E2E8F0;
}
.terms-page__section:last-of-type {
  border-bottom: none;
}

.terms-page__heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a365d;
  margin: 0 0 20px 0;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .terms-page__heading {
    font-size: 2rem;
  }
}

.terms-page__subheading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D3748;
  margin: 28px 0 12px 0;
  line-height: 1.4;
}

.terms-page__section p {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2D3748;
  margin: 0 0 16px 0;
}
.terms-page__section p a {
  color: #1a365d;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.terms-page__section p a:hover {
  color: #D4A574;
}

.terms-page__list {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2D3748;
  margin: 0 0 20px 0;
  padding-left: 24px;
}
.terms-page__list li {
  margin-bottom: 10px;
  padding-left: 8px;
}
.terms-page__list li::marker {
  color: #D4A574;
}
.terms-page__list li strong {
  font-weight: 600;
  color: #1a365d;
}
.terms-page__list--checks {
  list-style: none;
  padding-left: 0;
}
.terms-page__list--checks li {
  position: relative;
  padding-left: 32px;
}
.terms-page__list--checks li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  color: #D4A574;
  font-size: 0.875rem;
}

.terms-page__highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #F5F0EB;
  border-radius: 12px;
  border-left: 4px solid #1a365d;
  margin: 24px 0;
}
.terms-page__highlight > i {
  font-size: 1.25rem;
  color: #1a365d;
  flex-shrink: 0;
  margin-top: 2px;
}
.terms-page__highlight p {
  font-size: 1rem !important;
  margin: 0 !important;
  color: #2D3748;
}
.terms-page__highlight--warning {
  background: #FFFBEB;
  border-left-color: #F59E0B;
}
.terms-page__highlight--warning > i {
  color: #F59E0B;
}

.terms-page__insurance-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(135deg, #1a365d 0%, #254d85 100%);
  border-radius: 16px;
  margin: 24px 0;
}
@media (min-width: 600px) {
  .terms-page__insurance-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.terms-page__insurance-content h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}
.terms-page__insurance-content p {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 !important;
  line-height: 1.5;
}

.terms-page__insurance-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #D4A574;
  color: #1a365d;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.terms-page__insurance-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}
.terms-page__insurance-btn:hover {
  background: #E8C9A8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.terms-page__insurance-btn:hover i {
  transform: translateX(3px);
}

.terms-page__contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: #1a365d;
  border-radius: 12px;
  margin: 24px 0;
}
@media (min-width: 600px) {
  .terms-page__contact-card {
    flex-direction: row;
    justify-content: space-between;
  }
}
.terms-page__contact-card--inline {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #F5F0EB;
}
.terms-page__contact-card--inline > i {
  font-size: 1.5rem;
  color: #D4A574;
}
.terms-page__contact-card--inline div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.terms-page__contact-card--inline a {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a365d;
  text-decoration: none;
  transition: color 0.2s ease;
}
.terms-page__contact-card--inline a:hover {
  color: #D4A574;
}

.terms-page__contact-label {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #718096;
}

.terms-page__contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FFFFFF;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
}
.terms-page__contact-item i {
  font-size: 1.125rem;
  color: #E8C9A8;
  width: 24px;
  text-align: center;
}
.terms-page__contact-item span {
  line-height: 1.5;
}
.terms-page__contact-item a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}
.terms-page__contact-item a:hover {
  color: #E8C9A8;
}

.terms-page__footer-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: #F5F0EB;
  border-radius: 10px;
}
.terms-page__footer-note p {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
  text-align: center;
}

@-webkit-keyframes termsFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes termsFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .terms-page__hero-content {
    -webkit-animation: none;
            animation: none;
  }
}