/* =========================================
   POLICY & LEGAL PAGES (EDITORIAL LAYOUT)
   ========================================= */

.policy-portal {
  background-color: var(--color-bg-base, #fdfbf6);
  font-family: var(--font-body, "Jost", sans-serif);
  padding-bottom: 8rem;
}

/* --- Hero Section --- */
.policy-hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(
    to bottom,
    rgba(135, 56, 35, 0.05),
    var(--color-bg-base, #fdfbf6)
  );
  border-bottom: 1px solid rgba(135, 56, 35, 0.1);
}

.section-kicker {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent, #c78d6a);
  margin-bottom: 1rem;
}

.policy-hero-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 3.5rem;
  color: var(--color-text-primary, #2b1d19);
  margin-bottom: 1.5rem;
}

.policy-hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary, #7a6962);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Main Layout --- */
.policy-layout-section {
  padding-top: 5rem;
}

.policy-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 6rem;
  align-items: flex-start;
}

/* --- LEFT: Sticky Sidebar Navigation --- */
.policy-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 130px; /* Accounts for sticky header */
}

.policy-nav {
  display: flex;
  flex-direction: column;
  border-left: 2px solid rgba(135, 56, 35, 0.1);
}

.policy-nav-link {
  text-decoration: none;
  color: var(--color-text-secondary, #7a6962);
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.policy-nav-link:hover {
  color: var(--color-text-primary, #2b1d19);
}

.policy-nav-link.active {
  color: var(--color-primary, #873823);
  font-weight: 600;
}

/* Animated active indicator line */
.policy-nav-link::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--color-primary, #873823);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: top;
}

.policy-nav-link.active::before {
  transform: scaleY(1);
}

/* --- RIGHT: Content Area --- */
.policy-content {
  flex-grow: 1;
  min-width: 0;
  max-width: 800px; /* Constrains reading width for better legibility */
}

.policy-block {
  margin-bottom: 4.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(135, 56, 35, 0.1);
}

.policy-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-heading {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 2rem;
  color: var(--color-text-primary, #2b1d19);
  margin-bottom: 1.5rem;
}

.policy-subheading {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary, #2b1d19);
  margin: 2rem 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.policy-text {
  font-size: 1.1rem;
  color: var(--color-text-secondary, #7a6962);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.policy-text strong {
  color: var(--color-primary, #873823);
  font-weight: 500;
}

/* Accent Block for Important Notes */
.policy-highlight {
  background: rgba(135, 56, 35, 0.04);
  border-left: 3px solid var(--color-primary, #873823);
  padding: 1.5rem 2rem;
  border-radius: 0 4px 4px 0;
  margin-top: 1.5rem;
}

.policy-highlight .policy-text {
  margin-bottom: 0;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 900px) {
  .policy-container {
    flex-direction: column;
    gap: 3rem;
  }

  .policy-sidebar {
    width: 100%;
    position: static;
  }

  /* Convert vertical nav to horizontal scrollable menu */
  .policy-nav {
    flex-direction: row;
    border-left: none;
    border-bottom: 1px solid rgba(135, 56, 35, 0.15);
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .policy-nav::-webkit-scrollbar {
    display: none;
  }

  .policy-nav-link {
    white-space: nowrap;
    padding: 10px 20px;
  }

  .policy-nav-link::before {
    left: 0;
    top: auto;
    bottom: -11px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
  }

  .policy-nav-link.active::before {
    transform: scaleX(1);
  }
}

@media (max-width: 600px) {
  .policy-hero {
    padding: 4rem 1.5rem 3rem;
  }

  .policy-hero-title {
    font-size: 2.5rem;
  }

  .policy-heading {
    font-size: 1.6rem;
  }

  .policy-subheading {
    font-size: 1.05rem;
  }

  .policy-text {
    font-size: 1rem;
  }

  .policy-block {
    margin-bottom: 3.5rem;
  }
}
