/*==============================================================================
  theme/07-contact-legal.css
  CONTACT + LEGAL — Contact page, privacy, terms
  Linked from templates/base.html in numbered order with the other theme modules.
==============================================================================*/

/* --------------------------------------------------------------------------
   CONTACT PAGE — Text left, form right
   -------------------------------------------------------------------------- */
.contact-page {
  background: var(--bg);
}

.contact-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  width: 100%;
  position: relative;
}

.contact-page__copy h1,
.contact-page__headline {
  font-family: var(--font);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 28px;
  text-align: left;
}

.contact-page__headline span {
  display: block;
}

.contact-page__copy > p,
.contact-page__lead {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: var(--text) !important;
  text-align: left !important;
  max-width: 34em;
}

.contact-page__copy {
  width: 100%;
}

.contact-page__form-wrap {
  width: 100%;
  background: transparent;
  border-left: none;
  padding: 0;
  box-sizing: border-box;
}

.contact-page__status {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.contact-page__status.is-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534 !important;
}

.contact-page__status.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b !important;
}

.contact-page__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-page__form-title {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a2540;
  margin: 0 0 4px;
  line-height: 1.25;
}

.contact-page__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-page__field label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #4a5d73;
}

.contact-page__field input,
.contact-page__field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 15px;
  color: #0a2540;
  background: var(--bg);
  border: 1px solid #d7dee8;
  border-radius: 0 !important;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease;
}

.contact-page__field textarea {
  min-height: 48px;
  max-height: 320px;
  height: 48px;
  resize: none;
  overflow-y: hidden;
  line-height: 1.5;
}

.contact-page__field input:focus,
.contact-page__field textarea:focus {
  border-color: var(--primary);
}

.contact-page__field input::placeholder,
.contact-page__field textarea::placeholder {
  color: var(--muted);
  text-transform: none;
}

.contact-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 6px;
}

.contact-page__submit {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.contact-page__submit:hover {
  background: var(--primary-hover);
  color: #fff;
}

.contact-page__alt {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--muted) !important;
}

.contact-page__alt a {
  color: #0a2540;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-page__alt a:hover {
  color: var(--primary);
}

@media (min-width: 992px) {
  .contact-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px 72px;
    align-items: stretch;
  }

  /* Faded black vertical line at page center */
  .contact-page__layout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.28) 12%,
      rgba(0, 0, 0, 0.28) 88%,
      rgba(0, 0, 0, 0)
    );
    pointer-events: none;
  }

  .contact-page__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: 100%;
    padding-right: 8px;
  }

  .contact-page__form-wrap {
    padding-left: 8px;
  }

  .contact-page__headline {
    font-size: 56px;
  }
}

@media (max-width: 767px) {
  .contact-page__headline {
    font-size: 36px;
    margin-bottom: 22px;
  }

  .contact-page__lead {
    font-size: 15px !important;
  }

  .contact-page__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-page__submit {
    width: 100%;
  }
}

/* Hide legacy template contact background on this page */
.page-contact .contact_bg_box {
  display: none !important;
}

/* --------------------------------------------------------------------------
   LEGAL PAGES — Privacy Policy & Terms of Use
   -------------------------------------------------------------------------- */
.legal-page {
  background: var(--bg);
}

.legal-page__header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.legal-page__header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0a2540;
  margin: 0 0 8px;
}

.legal-page__updated {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--muted) !important;
}

.legal-page__lead {
  margin: 0 0 28px !important;
  max-width: none;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--body) !important;
  text-align: justify;
}

.legal-page__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 0;
  width: 100%;
}

.legal-page__col h2 {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a2540;
}

.legal-page__col h2:first-child {
  margin-top: 0;
}

.legal-page__col p {
  margin: 0 0 14px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--body) !important;
  text-align: justify;
}

.legal-page__col ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal-page__col li {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

.legal-page__col a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__col a:hover {
  color: var(--primary-hover);
}

@media (min-width: 992px) {
  .legal-page__columns {
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    align-items: start;
  }

  .legal-page__col {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .legal-page__header h1 {
    font-size: 28px;
  }

  .legal-page__lead {
    font-size: 15px !important;
    margin-bottom: 22px !important;
  }

  .legal-page__col h2 {
    font-size: 16px;
    margin-top: 20px;
  }

  .legal-page__col p,
  .legal-page__col li {
    font-size: 14px !important;
  }
}

