/* BidMyCapital — shared stylesheet for legal / compliance pages */

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

:root {
  --green: #0b6e4f;
  --green2: #08a045;
  --green-light: #e8f5ee;
  --green-mid: #d1ead9;
  --bg: #ffffff;
  --text: #0d1b2a;
  --muted: #4a5568;
  --border: #e2e8f0;
  --gold: #f0b429;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV — scoped to the top-level site header only. A bare `nav` selector would
   also catch <nav class="toc">, forcing the table of contents to 72px sticky
   flex and spilling its list over the page. */
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.nav-brand span {
  color: var(--green);
}
.nav-cta {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: #095c42;
}

/* PAGE HEADER */
.page-header {
  background: var(--green-light);
  border-bottom: 1px solid var(--green-mid);
  padding: 56px 24px 44px;
}
.page-header-inner {
  max-width: 820px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--green-mid);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .page-header h1 {
    font-size: 42px;
  }
}
.page-header .lede {
  font-size: 16px;
  color: var(--muted);
  max-width: 660px;
}
.meta-line {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.meta-line strong {
  color: var(--text);
  font-weight: 600;
}

/* BODY LAYOUT */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
main h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 44px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}
main h2:first-of-type {
  margin-top: 0;
}
main h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 8px;
}
main p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}
main ul,
main ol {
  margin: 0 0 16px 22px;
}
main li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}
main strong {
  color: var(--text);
  font-weight: 600;
}
main a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
main a:hover {
  color: var(--green2);
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* TABLE OF CONTENTS */
.toc {
  /* explicit reset so the TOC can never pick up site-header positioning */
  position: static;
  display: block;
  height: auto;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 40px;
}
.toc h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0 0 0 18px;
}
.toc li {
  margin-bottom: 6px;
  font-size: 14px;
}
.toc a {
  color: var(--text);
  text-decoration: none;
}
.toc a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* CALLOUT */
.callout {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout.warn {
  background: #fffaf0;
  border-color: #f6e0b0;
  border-left-color: var(--gold);
}

/* CONTACT BLOCK */
.contact-block {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 24px 0;
}
.contact-block dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
}
@media (min-width: 560px) {
  .contact-block dl {
    grid-template-columns: 140px 1fr;
  }
}
.contact-block dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.contact-block dd {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
@media (min-width: 560px) {
  .contact-block dd {
    margin-bottom: 0;
  }
}

/* PLACEHOLDER TOKENS — replace before launch */
.ph {
  background: #fff3cd;
  border-bottom: 1px dashed #d9a600;
  color: #7a5b00;
  font-weight: 600;
  padding: 0 3px;
  border-radius: 2px;
}

/* PARTNER DIRECTORY */
.dir-controls {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: var(--bg);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.dir-search {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--white);
}
.dir-search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.12);
}
.dir-count {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.dir-group {
  margin-top: 36px;
}
.dir-group h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-mid);
  margin-bottom: 4px;
}
.dir-list {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .dir-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}
.dir-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.dir-list li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.dir-list li a:hover {
  color: var(--green);
  text-decoration: underline;
}
.dir-list .no-site {
  color: var(--muted);
  font-weight: 500;
}
.dir-list .ext {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}
.dir-empty {
  font-size: 15px;
  color: var(--muted);
  padding: 32px 0;
}

/* FORMS */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.05);
  margin: 8px 0 32px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field .hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.12);
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 8px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.check:hover {
  border-color: var(--green-mid);
  background: #fbfdfc;
}
.check input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.check span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.check span em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.btn-submit {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 10px;
  padding: 15px 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: #095c42;
}
.btn-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.form-status.ok {
  display: block;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: #0a4f39;
}
.form-status.err {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.required {
  color: #c53030;
}

/* FOOTER */
footer {
  background: #0d1b2a;
  padding: 56px 24px 36px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.footer-brand-name span {
  color: var(--green2);
}
.footer-brand p {
  font-size: 14px;
  color: #8ba9c4;
  line-height: 1.65;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.footer-col ul li {
  margin: 0;
}
.footer-col ul a {
  font-size: 14px;
  color: #8ba9c4;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--white);
}
.footer-bottom-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-copyright {
  font-size: 13px;
  color: #5a7a99;
  margin-bottom: 20px;
}
.footer-disclaimer {
  font-size: 11px;
  color: #3a5a7a;
  line-height: 1.65;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
