/* ==========================================================================
   LEGAL PAGE STYLES
   ========================================================================== */

@font-face {
  font-family: CaviarDreams;
  src: url('../fonts/CaviarDreams-webfont.woff');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: CaviarDreams, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Legal document font override */
.document-section {
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  background-color: #f38630;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  text-decoration: none;
}

.logo img {
  width: 200px;
  height: auto;
}

.nav-link {
  display: none;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
  margin-top: 80px;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.page-header {
  background: #fff;
  color: #247dd6;
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  margin-bottom: 30px;
}

.header-divider {
  width: 60%;
  height: 3px;
  background-color: #f38630;
  margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION MENU
   ========================================================================== */

.doc-nav {
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.doc-nav h2 {
  display: none;
}

.doc-nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.doc-nav-link {
  background: #247dd6;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.doc-nav-link:hover {
  background: #f38630;
}

/* ==========================================================================
   SCROLL OFFSET FOR FIXED HEADER
   ========================================================================== */

/* Add scroll offset for anchor links to account for fixed header */
.document-section {
  scroll-margin-top: 100px;
  padding: 40px;
  border-bottom: 2px solid #f5f5f5;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.document-section:last-child {
  border-bottom: none;
}

.document-section h1 {
  color: #247dd6;
  font-size: 36px;
  margin-bottom: 10px;
  border-bottom: 2px solid #f38630;
  padding-bottom: 10px;
  display: inline-block;
  font-family: CaviarDreams, Arial, sans-serif;
}

.document-section h2 {
  color: #000;
  font-size: 24px;
  margin: 30px 0 15px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.document-section h3 {
  color: #000;
  font-size: 20px;
  margin: 25px 0 10px 0;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.document-section p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

.document-section ul {
  margin: 15px 0 15px 30px;
}

.document-section li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #000;
}

.effective-date {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #247dd6;
  color: #fff;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: #f38630;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #247dd6;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
  }

  .doc-nav-links {
    flex-direction: column;
    align-items: center;
  }

  .document-section {
    padding: 20px;
  }

  .document-section h1 {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 32px;
  }
}