/* ============================================
   One Page Budget - Main Stylesheet
   Clean rebuild without Astra dependencies
   ============================================ */

/* ============================================
   1. CSS Reset & Base Styles
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 93.75%; /* 15px base */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 15px;
  font-size: 1rem;
  line-height: 1.6em;
  color: var(--opb-color-7);
  background-color: var(--opb-color-4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--opb-color-2);
  text-decoration: none;
  transition: all 0.2s linear;
}

a:hover,
a:focus {
  color: var(--opb-color-0);
  outline: thin dotted;
}

/* ============================================
   2. Brand Color Variables
   ============================================ */

:root {
  /* Primary Colors */
  --opb-color-0: #b9b0fc; /* Purple accent */
  --opb-color-1: #d1dc55; /* Yellow/green accent */
  --opb-color-2: #240246; /* Dark purple/navy */
  --opb-color-3: rgba(35, 2, 69, 0.72); /* Semi-transparent dark */
  --opb-color-4: #f7fbfe; /* Light blue/white background */
  --opb-color-5: #ffffff; /* White */
  --opb-color-6: #d4c4fc; /* Light purple */
  --opb-color-7: #240246; /* Dark text */
  --opb-color-8: #ffffff; /* White */
  
  /* Border */
  --opb-border-color: var(--opb-color-3);
  
  /* Container */
  --opb-container-width: 1200px;
  --opb-container-padding: 20px;
}

/* ============================================
   3. Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--opb-color-7);
  margin-top: 0;
  margin-bottom: 1em;
  line-height: 1.2;
}

h1 {
  font-size: 60px;
  font-size: 4rem;
  line-height: 1.2em;
}

h2 {
  font-size: 48px;
  font-size: 3.2rem;
  line-height: 1.25em;
}

h3 {
  font-size: 36px;
  font-size: 2.4rem;
  line-height: 1.2em;
}

h4 {
  font-size: 30px;
  font-size: 2rem;
  line-height: 1.16em;
}

h5 {
  font-size: 24px;
  font-size: 1.6rem;
  line-height: 1.04em;
}

h6 {
  font-size: 18px;
  font-size: 1.2rem;
  line-height: 1.25em;
}

p {
  margin-bottom: 1.75em;
}

::selection {
  background-color: var(--opb-color-0);
  color: #000000;
}

/* Mobile Typography */
@media (max-width: 921px) {
  h1 {
    font-size: 52px;
  }
  
  h2 {
    font-size: 40px;
  }
  
  h3 {
    font-size: 32px;
  }
  
  h4 {
    font-size: 28px;
    font-size: 1.8666666666667rem;
  }
  
  h5 {
    font-size: 23px;
    font-size: 1.5333333333333rem;
  }
  
  h6 {
    font-size: 20px;
    font-size: 1.3333333333333rem;
  }
}

@media (max-width: 544px) {
  h1 {
    font-size: 38px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  h3 {
    font-size: 28px;
  }
  
  h4 {
    font-size: 25px;
    font-size: 1.6666666666667rem;
  }
  
  h5 {
    font-size: 22px;
    font-size: 1.4666666666667rem;
  }
  
  h6 {
    font-size: 20px;
    font-size: 1.3333333333333rem;
  }
}

/* ============================================
   4. Layout Utilities
   ============================================ */

.container {
  max-width: var(--opb-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--opb-container-padding);
  padding-right: var(--opb-container-padding);
}

.container-fluid {
  width: 100%;
  padding-left: var(--opb-container-padding);
  padding-right: var(--opb-container-padding);
}

/* ============================================
   5. Header Styles (.opb-header)
   ============================================
   NOTE: Header styles have been moved to components/header/header.css
   ============================================ */

/* Header styles removed - see components/header/header.css */
.opb-header {
  background-color: var(--opb-color-4);
  position: relative;
  z-index: 99;
}

.opb-header-inner {
  max-width: var(--opb-container-width);
  margin: 0 auto;
  padding: 0 var(--opb-container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
}

.opb-logo img {
  max-width: 160px;
  width: 160px;
  height: auto;
}

.opb-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.opb-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--opb-color-2);
  transition: all 0.3s ease;
}

.opb-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.opb-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.opb-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.opb-nav {
  display: flex;
  align-items: center;
  gap: 2em;
}

.opb-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5em;
  align-items: center;
}

.opb-nav-link {
  color: var(--opb-color-2);
  font-weight: 400;
  padding: 0.5em 0;
  display: block;
  transition: color 0.2s linear;
}

.opb-nav-link:hover,
.opb-nav-link:focus {
  color: var(--opb-color-0);
}

.opb-nav-link--current {
  color: var(--opb-color-2);
  font-weight: 600;
}

.opb-header-cta {
  background-color: var(--opb-color-0);
  color: var(--opb-color-5);
  padding: 15px 30px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 15px;
  font-size: 1rem;
  transition: all 0.2s linear;
  white-space: nowrap;
}

.opb-header-cta:hover,
.opb-header-cta:focus {
  background-color: var(--opb-color-1);
  color: var(--opb-color-0);
}

/* Mobile Header */
@media (max-width: 921px) {
  .opb-header-inner {
    min-height: 80px;
    padding: 0 32px;
  }
  
  .opb-logo img {
    max-width: 145px;
    width: 145px;
  }
  
  .opb-nav-toggle {
    display: flex;
  }
  
  .opb-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--opb-color-5);
    flex-direction: column;
    align-items: stretch;
    padding: 2em;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  .opb-nav[aria-hidden="false"] {
    transform: translateX(0);
  }
  
  .opb-nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  
  .opb-nav-link {
    padding: 1em;
    border-bottom: 1px solid var(--opb-border-color);
  }
  
  .opb-header-cta {
    margin-top: 1em;
    text-align: center;
  }
}

@media (max-width: 544px) {
  .opb-header-inner {
    padding: 0 20px;
  }
  
  .opb-logo img {
    max-width: 110px;
    width: 110px;
  }
}

/* ============================================
   5.1. Navigation Dropdown Styles
   ============================================ */

.opb-nav-item-dropdown {
  position: relative;
}

.opb-nav-link-dropdown {
  position: relative;
  padding-right: 1.5em;
  font-weight: 400;
}

.opb-nav-link-dropdown::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.opb-nav-item-dropdown[aria-expanded="true"] .opb-nav-link-dropdown::after {
  transform: translateY(-50%) rotate(180deg);
}

.opb-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--opb-color-5);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  margin-top: 0.5em;
}

.opb-nav-item-dropdown:hover .opb-nav-dropdown,
.opb-nav-item-dropdown[aria-expanded="true"] .opb-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.opb-nav-dropdown li {
  margin: 0;
}

.opb-nav-dropdown .opb-nav-link {
  padding: 0.75em 1.5em;
  display: block;
  white-space: nowrap;
  border-bottom: none;
}

.opb-nav-dropdown .opb-nav-link:hover,
.opb-nav-dropdown .opb-nav-link:focus {
  background-color: rgba(212, 196, 252, 0.1);
  color: var(--opb-color-0);
}

.opb-nav-dropdown .opb-nav-link--current {
  background-color: rgba(212, 196, 252, 0.2);
  font-weight: 600;
}

/* Mobile Dropdown Styles */
@media (max-width: 921px) {
  .opb-nav-item-dropdown {
    width: 100%;
  }

  .opb-nav-link-dropdown {
    padding-right: 1em;
    width: 100%;
  }

  .opb-nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(212, 196, 252, 0.05);
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .opb-nav-item-dropdown[aria-expanded="true"] .opb-nav-dropdown {
    max-height: 500px;
    padding: 0.5em 0;
  }

  .opb-nav-dropdown .opb-nav-link {
    padding-left: 2em;
    padding-right: 1em;
    border-bottom: 1px solid var(--opb-border-color);
  }

  .opb-nav-dropdown .opb-nav-link:last-child {
    border-bottom: none;
  }
}

/* ============================================
   6. Footer Styles (.opb-footer)
   ============================================
   NOTE: Footer styles have been moved to components/footer/footer.css
   ============================================ */

/* Footer styles removed - see components/footer/footer.css */
.opb-footer {
  background-color: var(--opb-color-2);
  color: var(--opb-color-5);
}

.opb-footer-top {
  max-width: var(--opb-container-width);
  margin: 0 auto;
  padding: 90px var(--opb-container-padding) 45px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3em;
  align-items: flex-start;
}

.opb-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.opb-footer-logo img {
  max-width: 160px;
  width: 160px;
  height: auto;
}

.opb-footer-tagline {
  font-size: 15px;
  font-size: 1rem;
  color: var(--opb-color-5);
  margin: 0;
}

.opb-footer-social {
  display: flex;
  gap: 1em;
  align-items: center;
  margin-top: 20px;
}

.opb-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--opb-color-5);
  transition: color 0.2s linear;
}

.opb-footer-social a:hover,
.opb-footer-social a:focus {
  color: var(--opb-color-0);
}

.opb-footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.opb-footer-bottom {
  background-color: var(--opb-color-2);
  border-top: 1px solid var(--opb-color-2);
  padding: 20px var(--opb-container-padding);
  min-height: 80px;
}

.opb-footer-bottom {
  max-width: var(--opb-container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2em;
  align-items: center;
}

.opb-footer-copy {
  font-size: 15px;
  font-size: 1rem;
  color: var(--opb-color-5);
  margin: 0;
}

.opb-footer-nav {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
}

.opb-footer-nav a {
  color: var(--opb-color-5);
  font-size: 15px;
  font-size: 1rem;
  padding: 0.5em 0;
  transition: color 0.2s linear;
}

.opb-footer-nav a:hover,
.opb-footer-nav a:focus {
  color: var(--opb-color-0);
}

/* Mobile Footer */
@media (max-width: 921px) {
  .opb-footer-top {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    gap: 2em;
  }
  
  .opb-footer-bottom {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: left;
  }
  
  .opb-footer-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 544px) {
  .opb-footer-top {
    padding: 50px 20px;
  }
  
  .opb-footer-bottom {
    padding: 40px 20px;
    text-align: center;
  }
  
  .opb-footer-nav {
    justify-content: center;
    margin-top: 30px;
  }
  
  .opb-footer-nav a {
    padding-bottom: 10px;
  }
}

/* ============================================
   7. Button Styles
   ============================================ */

.btn,
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  font-size: 1.2rem;
  line-height: 1em;
  padding: 17px 35px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s linear;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 200px;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--opb-color-2);
  color: var(--opb-color-5);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--opb-color-6);
  color: var(--opb-color-2);
}

.btn-outline {
  background-color: transparent;
  color: var(--opb-color-2);
  border: 1px solid var(--opb-color-2);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--opb-color-6);
  color: var(--opb-color-2);
  border-color: var(--opb-color-2);
}

.btn-outline-alt {
  background-color: transparent;
  color: var(--opb-color-1);
  border: 3px solid var(--opb-color-1);
}

.btn-outline-alt:hover,
.btn-outline-alt:focus {
  background-color: var(--opb-color-1);
  color: var(--opb-color-2);
}

/* Button Groups - Desktop Alignment */
.hero-buttons,
.button-group {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-buttons .btn,
.button-group .btn {
  flex: 0 0 auto;
}

/* Mobile Buttons */
@media (max-width: 921px) {
  .btn,
  button:not(.opb-nav-toggle):not(.calculator-filter-btn),
  input[type="button"],
  input[type="submit"] {
    padding: 14px 28px;
    min-width: 180px;
  }
}

@media (max-width: 544px) {
  /* All buttons full width on mobile (except nav toggle) */
  .btn,
  button:not(.opb-nav-toggle),
  input[type="button"],
  input[type="submit"] {
    width: 100%;
    min-width: 100%;
    padding: 14px 20px;
    margin: 0.5em 0;
    display: block;
    box-sizing: border-box;
  }
  
  /* Button containers - stack vertically */
  .hero-buttons,
  .button-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 1em;
    width: 100%;
    align-items: stretch;
  }
  
  /* Ensure primary buttons appear first in button groups */
  .hero-buttons .btn-primary,
  .button-group .btn-primary,
  .hero-buttons .btn[style*="background-color"],
  .button-group .btn[style*="background-color"] {
    order: 1;
  }
  
  .hero-buttons .btn-outline,
  .hero-buttons .btn-outline-alt,
  .button-group .btn-outline,
  .button-group .btn-outline-alt {
    order: 2;
  }
  
  /* Target flex containers that contain buttons - using class is more reliable */
  .button-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 1em;
    width: 100%;
  }
  
  /* Ensure button order in button-group containers */
  .button-group .btn-primary,
  .button-group .btn[style*="background-color"] {
    order: 1;
  }
  
  .button-group .btn-outline,
  .button-group .btn-outline-alt {
    order: 2;
  }
}

/* ============================================
   8. Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1em; }
.mb-1 { margin-bottom: 1em; }
.mt-2 { margin-top: 2em; }
.mb-2 { margin-bottom: 2em; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pt-1 { padding-top: 1em; }
.pb-1 { padding-bottom: 1em; }
.pt-2 { padding-top: 2em; }
.pb-2 { padding-bottom: 2em; }

/* ============================================
   Security - Honeypot Fields
   ============================================ */

/* Multi-layered honeypot hiding */
.opb-honeypot-field {
  /* Visual hiding */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  
  /* Interaction prevention */
  pointer-events: none;
  
  /* Screen reader hiding */
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  margin: 0;
  padding: 0;
}

/* Ensure label is also hidden */
.opb-honeypot-field label {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Ensure input is hidden */
.opb-honeypot-field input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   9. Content Sections
   ============================================ */

.site-content {
  flex-grow: 1;
}

.section {
  padding: 4em 0;
}

.section-full {
  padding: 4em 0;
  width: 100%;
}

/* Mobile Content */
@media (max-width: 921px) {
  .section {
    padding: 3em 0;
  }
  
  .section-full {
    padding: 3em 0;
  }
}

@media (max-width: 544px) {
  .section {
    padding: 2em 0;
  }
  
  .section-full {
    padding: 2em 0;
  }
}

/* ============================================
   10. Screen Reader Text
   ============================================ */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 2px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================
   11. Main Content Layout
   ============================================ */

.opb-main {
  flex-grow: 1;
  min-height: calc(100vh - 200px);
}

.opb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

.opb-content-area {
  padding: 3em 0;
}

.opb-content-area h1 {
  font-size: 60px;
  font-size: 4rem;
  font-weight: 700;
  color: var(--opb-color-7);
  margin-bottom: 1em;
  line-height: 1.2em;
}

.opb-content-area h2 {
  font-size: 48px;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--opb-color-7);
  margin-bottom: 1em;
  line-height: 1.25em;
}

.opb-content-area h3 {
  font-size: 36px;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--opb-color-7);
  margin-bottom: 1em;
  line-height: 1.2em;
}

.opb-content-area h6 {
  font-size: 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--opb-color-7);
  margin-bottom: 0.5em;
}

.opb-content-area p {
  margin-bottom: 1em;
  line-height: 1.6em;
}

/* Contact Page Styles */
.opb-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin: 3em 0;
}

.opb-contact-item h6 {
  margin-bottom: 0.5em;
}

.opb-contact-item p {
  margin: 0;
}

.opb-contact-item a {
  color: var(--opb-color-2);
  text-decoration: none;
}

.opb-contact-item a:hover {
  color: var(--opb-color-0);
  text-decoration: underline;
}

.opb-contact-form-section {
  margin-top: 3em;
}

.opb-contact-form-section h3 {
  margin-bottom: 1.5em;
}

@media (max-width: 921px) {
  .opb-container {
    padding: 0 2em;
  }
  
  .opb-content-area h1 {
    font-size: 52px;
  }
  
  .opb-content-area h2 {
    font-size: 40px;
  }
  
  .opb-content-area h3 {
    font-size: 32px;
  }
}

@media (max-width: 544px) {
  .opb-container {
    padding: 0 1.5em;
  }
  
  .opb-content-area {
    padding: 2em 0;
  }
  
  .opb-content-area h1 {
    font-size: 38px;
  }
  
  .opb-content-area h2 {
    font-size: 32px;
  }
  
  .opb-content-area h3 {
    font-size: 28px;
  }
  
  .opb-contact-info {
    grid-template-columns: 1fr;
    gap: 1.5em;
    margin: 2em 0;
  }
}

/* ============================================
   12. Legal Document Styles
   ============================================ */

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3em 2em;
}

.legal-loading {
  text-align: center;
  padding: 3em 0;
  color: var(--opb-color-7);
}

.legal-loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.legal-error {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 1.5em;
  margin: 2em 0;
  color: #856404;
}

.legal-error strong {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.legal-content {
  line-height: 1.8;
  color: var(--opb-color-7);
}

.legal-content-loaded {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Legal Document Typography */
.legal-content h1 {
  font-size: 42px;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--opb-color-2);
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
  border-bottom: 2px solid var(--opb-color-6);
  padding-bottom: 0.5em;
}

.legal-content h2 {
  font-size: 32px;
  font-size: 2.13rem;
  font-weight: 700;
  color: var(--opb-color-2);
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.legal-content h3 {
  font-size: 24px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--opb-color-2);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.legal-content h4 {
  font-size: 20px;
  font-size: 1.33rem;
  font-weight: 600;
  color: var(--opb-color-2);
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.legal-content p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.legal-content strong {
  font-weight: 700;
  color: var(--opb-color-2);
}

.legal-content em {
  font-style: italic;
}

.legal-content ul,
.legal-content ol {
  margin: 1em 0;
  padding-left: 2em;
  line-height: 1.8;
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-content li {
  margin-bottom: 0.5em;
}

.legal-content li ul,
.legal-content li ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.legal-content a {
  color: var(--opb-color-2);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-content a:hover,
.legal-content a:focus {
  color: var(--opb-color-0);
}

.legal-content code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.legal-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5em 0;
  line-height: 1.6;
}

.legal-content pre code {
  background-color: transparent;
  padding: 0;
}

.legal-content blockquote {
  border-left: 4px solid var(--opb-color-6);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: rgba(36, 2, 70, 0.8);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--opb-color-6);
  margin: 2em 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.legal-content table th,
.legal-content table td {
  padding: 0.75em;
  text-align: left;
  border-bottom: 1px solid var(--opb-color-6);
}

.legal-content table th {
  font-weight: 700;
  background-color: rgba(212, 196, 252, 0.2);
  color: var(--opb-color-2);
}

.legal-content table tr:hover {
  background-color: rgba(212, 196, 252, 0.05);
}

/* Print Styles for Legal Documents */
@media print {
  .legal-page {
    max-width: 100%;
    padding: 1em;
  }

  .legal-content {
    font-size: 12pt;
    line-height: 1.6;
  }

  .legal-content h1 {
    font-size: 24pt;
    page-break-after: avoid;
  }

  .legal-content h2 {
    font-size: 18pt;
    page-break-after: avoid;
  }

  .legal-content h3 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  .legal-content h4 {
    font-size: 12pt;
    page-break-after: avoid;
  }

  .legal-content p,
  .legal-content li {
    orphans: 3;
    widows: 3;
  }

  .legal-content a {
    color: #000;
    text-decoration: underline;
  }

  .legal-content a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  .opb-header,
  .opb-footer,
  .opb-nav {
    display: none;
  }
}

/* Responsive Legal Document Styles */
@media (max-width: 921px) {
  .legal-page {
    padding: 2em 1.5em;
  }

  .legal-content h1 {
    font-size: 36px;
    font-size: 2.4rem;
  }

  .legal-content h2 {
    font-size: 28px;
    font-size: 1.87rem;
  }

  .legal-content h3 {
    font-size: 22px;
    font-size: 1.47rem;
  }
}

@media (max-width: 544px) {
  .legal-page {
    padding: 1.5em 1em;
  }

  .legal-content h1 {
    font-size: 32px;
    font-size: 2.13rem;
  }

  .legal-content h2 {
    font-size: 24px;
    font-size: 1.6rem;
  }

  .legal-content h3 {
    font-size: 20px;
    font-size: 1.33rem;
  }

  .legal-content ul,
  .legal-content ol {
    padding-left: 1.5em;
  }

  .legal-content table {
    font-size: 0.9em;
  }

  .legal-content table th,
  .legal-content table td {
    padding: 0.5em;
  }
}

/* ============================================
   13. Home Page Section Styles
   ============================================ */

/* How it works section */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}

.how-it-works-list {
  list-style: none;
  padding: 0;
}

.how-it-works-item {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 1.5em;
}

.how-it-works-item img {
  flex-shrink: 0;
}

/* Why You'll Love It section */
.why-love-it-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  margin-top: 3em;
}

.why-love-it-item {
  display: flex;
  gap: 1.5em;
}

.why-love-it-item img {
  flex-shrink: 0;
}

/* Mobile responsive styles */
@media (max-width: 921px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .how-it-works-grid > div:first-child {
    order: 2;
  }
  
  .how-it-works-grid > div:last-child {
    order: 1;
  }
  
  .how-it-works-item {
    margin-bottom: 1em;
    gap: 0.75em;
  }
  
  .how-it-works-item img {
    width: 50px;
    height: 50px;
  }
  
  .why-love-it-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
    margin-top: 2em;
  }
  
  .why-love-it-item {
    gap: 1em;
  }
  
  .why-love-it-item img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 544px) {
  .how-it-works-grid {
    gap: 1.5em;
  }
  
  .how-it-works-item {
    margin-bottom: 0.75em;
    gap: 0.5em;
  }
  
  .how-it-works-item img {
    width: 40px;
    height: 40px;
  }
  
  .why-love-it-grid {
    gap: 1em;
    margin-top: 1.5em;
  }
  
  .why-love-it-item {
    gap: 0.75em;
  }
  
  .why-love-it-item img {
    width: 60px;
    height: 60px;
  }
}
