/* ── Legal page content (Privacy Policy, Terms of Use, Security, Cookies) ── */
.lp {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-offset) + 24px) 24px 96px;
}
.lp-eye {
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
}
.lp h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.lp-updated {
  font-size: 14px;
  color: var(--mid);
  opacity: 0.75;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--faint);
}
.lp h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin: 38px 0 12px;
}
.lp p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 16px;
}
.lp ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.lp li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 8px;
}
.lp a {
  color: var(--teal);
  font-weight: 500;
  text-underline-offset: 2px;
}
.lp a:hover { color: var(--blue); }
.lp-note {
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border-left: 3px solid var(--teal);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
}
.lp-note u {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .lp h1 { font-size: 30px; }
}

/* Contact page heading — scoped separately from the shared .lp h1 rule
   (which legal pages and career-role.php also use, unchanged). */
.contact-page-h1 { font-size: 40px; line-height: 1.1; }
@media (max-width: 600px) { .contact-page-h1 { font-size: 30px; } }

/* Wider container variant — matches the homepage .sec content width
   (used by "How It Works" / "Who We Are") instead of the narrow legal-page width. */
.lp-wide {
  max-width: none;
  padding-left: max(40px, calc(50% - 620px));
  padding-right: max(40px, calc(50% - 620px));
}

/* ── Simple 2-column page hero (image right, text left) ── */
.co-hero {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 48px;
  padding: calc(var(--nav-offset) + 40px) max(40px, calc(50% - 620px)) 56px;
}
.co-hero-left { flex: 1 1 420px; min-width: 300px; }
.co-hero-right { flex: 1 1 380px; min-width: 280px; }
.co-hero-h {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.08; color: var(--ink);
  margin-bottom: 18px;
}
.co-hero-h em {
  font-family: 'Libre Baskerville', serif;
  font-style: italic; font-weight: 400; color: var(--blue);
}
.co-hero-sub {
  font-size: 16px; color: #3D4F6E; font-weight: 300;
  line-height: 1.8; max-width: 480px; margin-bottom: 28px;
}
.co-hero-contact { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.co-hero-contact a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.co-hero-contact a:hover { color: var(--teal); }
.co-hero-contact i {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue-lt); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.co-hero-imgwrap { position: relative; max-width: 82%; margin: 0 auto; }
.co-hero-layer {
  position: absolute; inset: 0;
  background: var(--blue-lt);
  border: 1px solid var(--blue-bd);
  border-radius: 20px;
  transform: rotate(-6deg) translate(-16px, 14px);
  z-index: 0;
}
.co-hero-imgwrap img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4/4.6; object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(15,23,42,0.14);
  display: block;
}
@media (max-width: 700px) {
  /* max(40px, ...) never drops below 40px — the homepage hero uses a flat
     24px on mobile, so these pages felt noticeably more "boxed in" side by
     side. Match it here instead of relying on the desktop formula's floor. */
  .co-hero { padding-top: calc(var(--nav-offset) + 24px); padding-left: 24px; padding-right: 24px; gap: 32px; }
  .co-hero-imgwrap { max-width: 78%; }
  .co-hero-imgwrap img { aspect-ratio: 4/3; }
  .lp-wide { padding-left: 24px; padding-right: 24px; }
  .lp-portal { padding-left: 24px; padding-right: 24px; }
}
/* Drop the .lp top offset when a .co-hero already clears the fixed nav above it */
.lp-has-hero { padding-top: 24px; }

/* ── Icon-block list rows (categories module) — a solid-color square icon
   block on the left with a hard edge, plain white body, trailing chevron. ── */
.list-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0 32px; }
@media (max-width: 700px) {
  .list-rows { grid-template-columns: 1fr; }
}
.list-row {
  display: flex; align-items: stretch;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15,23,42,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.list-row:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,23,42,0.1); }
.list-row-img {
  flex: 0 0 112px;
  width: 112px;
  display: flex; align-items: center; justify-content: center;
}
.list-row-img i { font-size: 32px; color: rgba(255,255,255,0.6); }
.list-row-body {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px;
}
.list-row-head {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.list-row-text { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.6; }
.list-row-chevron { font-size: 16px; color: rgba(15,23,42,0.22); flex-shrink: 0; }
@media (max-width: 560px) {
  .list-row-img { flex-basis: 84px; width: 84px; }
  .list-row-img i { font-size: 26px; }
  .list-row-body { padding: 14px 16px; }
  .list-row-head { font-size: 16px; }
}

/* ── Branded icon list boxes (colorful role cards) ── */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 32px;
}
.info-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--faint);
  border-radius: 12px;
  padding: 18px 20px;
}
.info-box-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-lt);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.info-box-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.info-box-text {
  font-size: 14px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.65;
}

/* Colorful variant — one color per card (role cards) */
.info-box-color {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-box-color:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.16);
}
.info-box-color > * { position: relative; z-index: 1; }
.info-box-color .info-box-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  font-size: 20px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.info-box-color .info-box-title { color: #fff; }
.info-box-color .info-box-text { color: rgba(255,255,255,0.85); }

/* Oversized ghost icon watermark, decorative */
.info-box-bgicon {
  position: absolute;
  z-index: 0;
  top: -16px; right: -10px;
  font-size: 76px;
  line-height: 1;
  color: #fff;
  opacity: 0.14;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* ── Contact form + office 2-column layout ── */
.contact-cols { display: flex; flex-wrap: wrap; gap: 40px; margin: 20px 0 8px; }
.contact-col-form { flex: 1 1 460px; min-width: 300px; }
.contact-col-office { flex: 1 1 380px; min-width: 280px; }
.contact-form { margin: 20px 0 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--faint); border-radius: 10px;
  background: #fff; color: var(--ink); outline: none;
  transition: border-color 0.18s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal); }
.form-field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23334155' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-field input[type="file"] {
  padding: 10px 14px; border: 1px dashed var(--faint); background: var(--paper);
  font-size: 13px; cursor: pointer;
}
.form-field input[type="file"]::file-selector-button {
  padding: 8px 14px; margin-right: 12px; border: none; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 12.5px;
  cursor: pointer;
}
.form-hint { font-size: 12px; color: var(--mid); margin-top: -2px; }
.form-submit {
  margin-top: 4px; padding: 14px 32px;
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: opacity 0.18s;
}
.form-submit:hover { opacity: 0.88; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Google Map embed ── */
.contact-map {
  width: 100%; aspect-ratio: 4/3;
  border: 1px solid var(--faint); border-radius: 16px;
  overflow: hidden; margin: 16px 0 8px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Social handles list ── */
.social-handles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 32px; }
@media (max-width: 460px) {
  .social-handles { grid-template-columns: 1fr; }
}
.social-handle {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; padding: 10px 12px;
  border-radius: 12px; transition: background 0.16s;
}
.social-handle:hover { background: var(--paper); }
.social-handle-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
}
.social-handle-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); }
.social-handle-user { font-size: 13px; color: var(--mid); }

/* ── Simple centered founder profile ── */
.founder-simple {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; max-width: 480px; margin: 8px auto 0;
}
.founder-simple-photo {
  width: 140px; height: 140px; border-radius: 50%;
  overflow: hidden; border: 4px solid #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,0.14);
  margin-bottom: 12px;
}
.founder-simple-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.founder-simple-name {
  font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em;
}
.founder-simple-role {
  font-size: 13px; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.founder-simple-quote {
  font-size: 15px; font-style: italic; color: var(--mid);
  font-weight: 300; line-height: 1.75; margin-bottom: 16px;
}
.founder-simple-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.founder-simple-link:hover { color: var(--teal); }

/* ── Careers: open role cards (rendered from a PHP array — see careers.php) ── */
.career-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px; margin: 20px 0 8px;
}
.career-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--faint); border-radius: 16px;
  padding: 26px; transition: box-shadow 0.2s ease;
}
.career-card:hover { box-shadow: 0 12px 28px rgba(15,23,42,0.08); }
.career-card .career-card-title {
  display: flex; align-items: center; gap: 9px;
  padding-right: 34px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.16s;
}
.career-card .career-card-title:hover { color: var(--teal); }
.career-card-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1ABF6A; flex-shrink: 0;
  text-decoration: none;
}
.career-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.career-card-tag {
  font-size: 11.5px; font-weight: 600; padding: 4px 11px;
  border-radius: 100px; background: var(--paper); color: var(--mid);
}
.career-card-desc {
  font-size: 14px; color: var(--mid); font-weight: 300; line-height: 1.7;
  margin-bottom: 22px; flex: 1;
}
.career-card-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.career-card .career-card-apply {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; background: var(--blue); color: #fff;
  border-radius: 10px; font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 13.5px; text-decoration: none; transition: opacity 0.18s;
}
.career-card .career-card-apply:hover { opacity: 0.88; color: #fff; }
.career-card .career-card-more {
  display: inline-flex; align-items: center;
  padding: 11px 22px; background: transparent; color: var(--ink);
  border: 1px solid var(--faint); border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 13.5px; text-decoration: none; transition: border-color 0.18s, color 0.18s;
}
.career-card .career-card-more:hover { border-color: var(--teal); color: var(--teal); }
.career-card-save {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--faint); border-radius: 10px;
  color: var(--mid); font-size: 14px; cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.career-card-save:hover { border-color: var(--teal); color: var(--teal); }
.career-card-save.saved { color: var(--blue); border-color: var(--blue); }
.career-empty {
  text-align: center; padding: 48px 24px;
  background: var(--paper); border-radius: 16px;
  color: var(--mid); font-size: 15px;
}

/* ── Open Roles filter bar ── */
.job-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--faint); border-radius: 16px;
  padding: 16px 18px; margin: 24px 0 4px;
}
.job-filter-search {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 240px; min-width: 200px;
  background: #fff; border: 1px solid var(--faint); border-radius: 10px;
  padding: 0 14px;
}
.job-filter-search i { color: var(--mid); font-size: 13px; }
.job-filter-search input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: 11px 0; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px; color: var(--ink);
}
.job-filter-selects { display: flex; flex-wrap: wrap; gap: 10px; }
.job-filter-selects select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 1px solid var(--faint); background: #fff; border-radius: 10px;
  padding: 10px 34px 10px 12px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; color: var(--mid); cursor: pointer; outline: none;
  transition: border-color 0.18s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23334155' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.job-filter-selects select:focus { border-color: var(--teal); }
.job-filter-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.job-filter-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  padding: 11px 20px; font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 13.5px; cursor: pointer; transition: opacity 0.18s;
}
.job-filter-submit:hover { opacity: 0.88; }
.job-filter-clear {
  font-size: 13px; font-weight: 600; color: var(--mid);
  text-decoration: underline; text-underline-offset: 2px; white-space: nowrap;
}
.job-filter-clear:hover { color: var(--teal); }
.job-filter-count { font-size: 13.5px; color: var(--mid); margin: 14px 0 0; }
@media (max-width: 640px) {
  /* Filters flow left-to-right and wrap onto the next line once they run
     out of room — no horizontal scroll container. */
  .job-filter-search { flex: 1 1 100%; min-width: 0; }
  .job-filter-selects select { flex: 1 1 auto; width: auto; min-width: 130px; }
  .job-filter-actions { flex: 1 1 100%; margin-left: 0; justify-content: space-between; }
  .job-filter-submit { white-space: nowrap; }
}

/* ── Open Roles pagination ── */
.job-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap;
  margin: 28px 0 4px; padding-top: 24px;
  border-top: 1px solid var(--faint);
}
.job-page-num, .job-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 4px;
  border: none; border-radius: 7px;
  background: transparent; color: var(--mid);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 12.5px;
  text-decoration: none; transition: background 0.16s, color 0.16s;
}
.job-page-num:hover, .job-page-btn:hover { background: var(--paper); color: var(--ink); }
.job-page-num.active { background: var(--blue); color: #fff; font-weight: 600; }
.job-page-btn { color: var(--mid); font-size: 11px; }
.job-page-btn.disabled { opacity: 0.3; pointer-events: none; }
.job-page-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; color: var(--mid); font-size: 12.5px;
}

/* ── Single role page: content left, sticky apply card right ── */
.career-layout { display: flex; gap: 44px; align-items: flex-start; margin-top: 8px; }
.career-main { flex: 1 1 600px; min-width: 0; }
.career-side { flex: 1 1 340px; min-width: 300px; position: sticky; top: calc(var(--nav-offset) + 20px); }
.career-apply-card {
  background: #fff; border: 1px solid var(--faint); border-radius: 16px;
  padding: 24px; box-shadow: 0 4px 16px rgba(15,23,42,0.05);
}
@media (max-width: 820px) {
  .career-layout { flex-direction: column; }
  .career-side { position: static; width: 100%; }
}

/* Narrower container — still used by open-roles.php. The 4 candidate portal
   pages (profile/jobs/saved/applications) now use their own dedicated
   assets/css/portal.css instead of these generic .lp classes. */
.lp-portal {
  max-width: none;
  padding-left: max(40px, calc(50% - 550px));
  padding-right: max(40px, calc(50% - 550px));
}
