/* LEGAL PAGES — Privacy Policy & Terms & Conditions */
/* ---- CSS VARIABLES ---- */
:root {
  --by-max-w: 1280px;
  --by-gutter: 24px;
}

.by-container {
  max-width: var(--by-max-w);
  margin: 0 auto;
  padding: 0 var(--by-gutter);
}

/* ---- BASE RESET (in case by-shared.css doesn't cover this) ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Satoshi-Regular", sans-serif;
  color: #00152b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ---- NAV (identical to home/business/explore) ---- */
.by-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 249, 253, 0.98);
  backdrop-filter: blur(10px);
}

.admin-bar .by-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .by-header {
    top: 46px;
  }
}

.by-nav-inner {
  max-width: var(--by-max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.by-nav-logo img {
  height: 36px;
}

.by-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.by-nav-links ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.by-nav-links a {
  font-size: 15px;
  font-family: "Satoshi-Bold", sans-serif !important;
  color: #00152b;
  transition: color 0.15s;
  letter-spacing: -0.48px;
}

.by-nav-links a:hover,
.by-nav-links a.active,
.by-nav-links .current-menu-item a {
  color: #078e45;
}

.by-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.by-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.by-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #00152b;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- BUTTONS ---- */
.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Satoshi-Bold", sans-serif !important;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

.by-btn-green {
  background: #078e45;
  color: #fff;
}

.by-btn-green:hover {
  background: #066b35;
}

.by-btn-outline {
  background: transparent;
  color: #00152b;
  border: 1.5px solid #00152b;
}

.by-btn-outline:hover {
  background: #00152b;
  color: #fff;
}

.by-btn-ghost {
  background: transparent;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}

.by-btn-ghost:hover {
  border-color: #00152b;
  color: #00152b;
}

.by-btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

/* ---- FOOTER BANNER (identical to home/business/explore) ---- */
.by-footer-banner {
  max-width: 1800px;
  margin: 0 auto;
  background: transparent linear-gradient(270deg, #7037d6 0%, #04553c 100%) 0%
    0% no-repeat padding-box;
  border-radius: 20px 20px 0 0;
  padding: 24px 32px;
  box-sizing: border-box;
  width: calc(100% - 48px);
}

.by-footer-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.by-footer-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.by-footer-banner-text strong {
  font-family: "Satoshi-Bold", sans-serif !important;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.66px;
}

.by-footer-banner-text span {
  font-family: "Satoshi-Medium", sans-serif !important;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: -0.48px;
}

.by-footer-banner-perks {
  display: flex;
  align-items: center;
}

.by-footer-perk {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.by-footer-perk:last-child {
  border-right: none;
  padding-right: 0;
}

.by-footer-perk:first-child {
  padding-left: 0;
}

.by-footer-perk img {
  width: 14px;
  height: 20px;
}

.by-footer-perk strong {
  font-family: "Satoshi-Bold", sans-serif !important;
  display: block;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #fff;
}

.by-footer-perk span {
  font-family: "Satoshi-Medium", sans-serif !important;
  display: block;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: -0.48px;
}

.by-nav-links a.by-nav-login-mobile {
  display: none;
}

@media (max-width: 400px) {
  .by-nav-links a.by-nav-login-mobile {
    display: inline-flex;
    justify-content: center;
    margin: 8px 24px 4px;
    width: calc(100% - 48px);
    padding: 10px 20px;
    font-size: 15px;
  }

  .by-nav-actions > a[href*="login"] {
    display: none;
  }
}

/* ---- NAV/FOOTER RESPONSIVE ---- */
@media (max-width: 1024px) {
  .by-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    z-index: 200;
  }

  .by-nav-links.open {
    display: flex;
  }

  .by-nav-links ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .by-nav-links a {
    padding: 12px 24px;
    font-size: 15px;
    display: block;
  }

  .by-hamburger {
    display: flex;
  }

  .by-footer-banner-perks {
    gap: 20px;
  }
}

@media (max-width: 768px) {

    .by-nav-actions {
    gap: 6px;
  }

  .by-nav-actions .by-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .by-footer-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .by-footer-banner-perks {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .by-footer-perk {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  .by-footer-perk:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .by-footer-perk:first-child {
    padding-top: 0;
  }
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

.legal-section {
  padding: 64px 0 120px;
  margin: 0 auto;
  max-width: var(--by-max-w, 1280px);
}

.legal-title {
  font-family: "Satoshi-Bold", sans-serif !important;
  font-size: 48px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -1.92px;
  color: #00152b;
  margin-bottom: 16px;
}

p.legal-intro {
  font-family: "Satoshi-Medium", sans-serif !important;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.54px;
  color: #00152b;
  margin-bottom: 80px !important;
  opacity: 1;
}

/* Narrow centered layout — used by Privacy Policy (no sidebar) */
.legal-container-narrow .legal-content {
  max-width: 820px;
}

/* Two-column layout — used by Terms & Conditions (with sidebar TOC) */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 20px;
}

.legal-toc {
  position: sticky;
  top: 90px;
  background: #f8f9fd;
  border-radius: 14px;
  padding: 24px 20px;
}

.legal-toc nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

aside.legal-toc nav ul li a {
  font-family: "Satoshi-Bold", sans-serif !important;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: #00152b;
  transition: color 0.15s;
  opacity: 1;
}

aside.legal-toc nav ul li a:hover {
  color: #078e45;
}

/* Article content */
.legal-content {
  max-width: 820px;
  margin-top: 20px;
}

.legal-content h2 {
  font-family: "Satoshi-Bold", sans-serif !important;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  color: #00152b;
  margin-top: 40px;
  margin-bottom: 12px;
  scroll-margin-top: 100px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: "Satoshi-Bold", sans-serif !important;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: #00152b;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-family: "Satoshi-Medium", sans-serif !important;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.32px;
  color: #00152b;
  opacity: 1;
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-content ul li {
  font-family: "Satoshi-Medium", sans-serif !important;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.32px;
  color: #00152b;
  opacity: 1;
  padding-left: 18px;
  position: relative;
}

.legal-content ul li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  color: #078e45;
  font-size: 22px;
  line-height: 1.1;
}

.legal-content a {
  color: #078e45;
  font-family: "Satoshi-Bold", sans-serif !important;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-heading-accent {
  color: #078e45 !important;
}

.legal-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0 24px;
}

/* ---- FOOTER BANNER BOTTOM SPACING ---- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-section {
  flex: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 34px;
    line-height: 1.15;
  }

  p.legal-intro {
    font-size: 15px;
    margin-bottom: 36px !important;
  }

  .legal-content h2 {
    font-size: 20px;
  }

  .legal-content p,
  .legal-content ul li {
    font-size: 16px;
  }
}
.by-mobile-cta-bar {
  display: none;
}

@media (max-width: 500px) {
  .by-nav-actions .by-btn {
    display: none;
  }

  .by-mobile-cta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 21, 43, 0.06);
    z-index: 999;
  }

  .by-mobile-cta-bar .by-btn {
    flex: 1;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body {
      padding-bottom: 85px !important;
  }
}