/* legal.css — Underground, Inc. legal pages (Privacy, Terms) and shared
   opt-in checkbox styling used across quote and careers forms. */

/* -------- Legal pages -------- */
.legal-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-surface, #f7f6f2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .legal-hero {
  background: #14171a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.legal-hero__title {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0.25rem 0 0.5rem;
}
.legal-hero__meta {
  color: var(--color-muted, #6b6f74);
  font-size: 0.95rem;
  margin: 0;
}
.legal {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}
.legal__wrap {
  max-width: 780px;
}
.legal__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-text, #14171a);
  margin: 0 0 2rem;
}
.legal h2 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
}
.legal h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}
.legal p,
.legal ul,
.legal ol {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text, #14171a);
  margin: 0 0 0.9rem;
}
.legal ul,
.legal ol {
  padding-left: 1.25rem;
}
.legal li {
  margin: 0.25rem 0;
}
.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover {
  color: var(--color-accent, #d9202a);
}
.legal-callout {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--color-accent, #d9202a);
  background: rgba(217, 32, 42, 0.06);
  border-radius: 6px;
  margin: 0.5rem 0 1.25rem !important;
  font-size: 1rem;
  line-height: 1.6;
}
[data-theme="dark"] .legal-callout {
  background: rgba(217, 32, 42, 0.12);
}

/* -------- SMS opt-in disclosure (shared) -------- */
.sms-consent {
  margin: 1rem 0 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .sms-consent {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.sms-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.sms-consent__box {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--color-accent, #d9202a);
  cursor: pointer;
}
.sms-consent__label {
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text, #14171a);
  cursor: pointer;
}
.sms-consent__label strong {
  font-weight: 700;
}
.sms-consent__label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sms-consent__label a:hover {
  color: var(--color-accent, #d9202a);
}
.sms-consent__note {
  margin: 0.6rem 0 0;
  padding-left: 1.9rem;
  font-size: 0.82rem;
  color: var(--color-muted, #6b6f74);
  line-height: 1.5;
}

/* -------- Careers native form -------- */
.apply-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .apply-form {
  background: #1a1e22;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.apply-form .field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.apply-form .field input,
.apply-form .field select,
.apply-form .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: inherit;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
[data-theme="dark"] .apply-form .field input,
[data-theme="dark"] .apply-form .field select,
[data-theme="dark"] .apply-form .field textarea {
  background: #14171a;
  border-color: rgba(255, 255, 255, 0.15);
}
.apply-form .field input:focus,
.apply-form .field select:focus,
.apply-form .field textarea:focus {
  outline: none;
  border-color: var(--color-accent, #d9202a);
  box-shadow: 0 0 0 3px rgba(217, 32, 42, 0.2);
}
.apply-form .field.is-invalid input,
.apply-form .field.is-invalid select,
.apply-form .field.is-invalid textarea {
  border-color: var(--color-accent, #d9202a);
}
.apply-form .field__error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--color-accent, #d9202a);
}
.apply-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .apply-form .field-row {
    grid-template-columns: 1fr;
  }
}
.apply-form__intro {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--color-muted, #6b6f74);
}
.apply-form__status {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}
.apply-form__status.is-error {
  color: var(--color-accent, #d9202a);
}
.apply-form__status.is-success {
  color: #1b7f3a;
}
.apply-form__fallback {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted, #6b6f74);
}
.apply-form__fallback a {
  color: inherit;
  text-decoration: underline;
}
