/* ==================================================================
   legal.css – Consolidated styles for jobsmessagecenter.com legal pages
   Pages: privacy-policy | terms-and-conditions | unsubscribe | support
   ================================================================== */

/* 1. CSS Custom Properties (union of all pages) */
:root {
  --navy: #0f1d33;
  --navy-mid: #162440;
  --charcoal: #1e2d47;
  --green: #2DBF6A;
  --green-dark: #22a35a;
  --green-light: #5cd88e;
  --hero-bg: #e9feef;
  --gold: #FFD700;
  --slate: #64748b;
  --cloud: #e2e8f0;
  --snow: #f8fafc;
  --white: #ffffff;
  --danger: #dc2626;
}

/* 2. Common Base Styles (shared across all 4 pages) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--navy); background: var(--snow); }

header {
  background: var(--white);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
header .site-logo img { height: 44px; }

footer { background: none; margin-top: auto; padding: 0; }
.footer-links { width: 100%; background: var(--navy); padding: 24px 20px; border-top: 1px solid var(--charcoal); }
.f-links ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.f-links li { display: flex; align-items: center; }
.f-links a { text-decoration: none; padding: 0 12px; white-space: nowrap; color: var(--slate); font-size: 13px; font-weight: 500; line-height: 28px; transition: color 0.2s ease; }
.f-links a:hover { color: var(--white); text-decoration: underline; }

.leagal-container { max-width: 860px; width: 100%; margin: 0 auto; }
.leagal-container h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  padding: 48px 20px 28px;
  text-align: center;
  background: linear-gradient(135deg, #2DBF6A, #5cd88e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* 3. Scoped per-page body & layout overrides */

body.page-privacy,
body.page-terms {
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-privacy .wrapper,
.page-terms .wrapper {
  width: 100%;
  flex: 1;
}

.page-unsubscribe * { font-family: 'DM Sans', sans-serif; }
body.page-unsubscribe {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-unsubscribe .wrapper {
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 120px);
}
.page-unsubscribe p { width: 100%; font-size: 14px; }

body.page-support { font-family: 'DM Sans', sans-serif; }
.page-support .wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 4. Content styles – shared by Privacy & Terms */
.content-wrap { width: 100%; color: #374151; padding: 0 24px 58px; }
.content-wrap p.bold-text { font-weight: 700; color: var(--green); }
.content-wrap ul li,
.content-wrap p { font-size: 13px; line-height: 1.75; }
.content-wrap p { font-weight: 400; margin-bottom: 18px; }
.content-wrap h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--navy);
  padding-top: 8px;
}
.content-wrap h3 { font-size: 14px; line-height: 1.5; font-weight: 700; margin-bottom: 16px; color: var(--charcoal); }
.content-wrap ul { margin-bottom: 28px; }
.content-wrap ul li { list-style: disc; margin-left: 30px; color: #4b5563; }
.content-wrap a { text-decoration: underline; color: var(--green-dark); transition: color 0.2s ease; }
.content-wrap a:hover { color: var(--green); }

/* 5. Unsubscribe page-specific styles */
.unsubscribe-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 40px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.accordion { width: 100%; }
.accordion-item { background: transparent; }
.accordion-item-header {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  padding: 28px 0;
  border-bottom: 1px solid var(--cloud);
  transition: color 0.2s ease;
}
.accordion-item-header:hover { color: var(--green); }
.accordion-item-header::after {
  content: "\002B";
  font-size: 28px;
  position: absolute;
  right: 8px;
  transition: transform 0.2s ease;
  color: var(--green);
}
.accordion-item-header.active::after { transform: rotate(45deg); color: var(--navy); }
.accordion-item-body { max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; }
.acc-items { margin-top: 20px; margin-bottom: 36px; }
h3.acc-title {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 4px;
}
h4.acc-subtitle { display: flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--charcoal); gap: 8px; }
.acc-inner-content { display: flex; margin: 12px auto; font-weight: 400; color: #4b5563; align-items: flex-start; }
p.steps {
  max-width: 56px;
  min-height: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(45, 191, 106, 0.1);
  width: 100%;
  color: var(--green);
  font-weight: 700;
  line-height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.acc-item-body-inner-content { border-bottom: 1px solid var(--cloud); margin-bottom: 32px; padding-bottom: 16px; }
.acc-item-body-inner-content:last-child { border: none; }
.email-title,
.sms-title {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.email-text,
.sms-text { color: #4b5563; font-size: 14px; line-height: 1.6; }
.email-text a,
.sms-text a { color: var(--green-dark); text-decoration: underline; transition: color 0.2s ease; }
.email-text a:hover,
.sms-text a:hover { color: var(--green); }
.browser-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--snow);
  border: 1px solid var(--cloud);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

/* 6. Support page-specific styles */
.main-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 48px 10%;
  flex-wrap: wrap;
  flex: 1;
  margin: 0 auto;
}
.left-section { flex: 1; min-width: 280px; }
.left-section h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #2DBF6A, #5cd88e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.left-section .subtitle { color: #4b5563; font-size: 16px; font-weight: 400; }
.left-section .get-in-touch { font-size: 16px; font-weight: 400; margin-bottom: 40px; color: var(--slate); }

.right-section { flex: 1; max-width: 520px; }
.form-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid var(--cloud);
  box-shadow: 0 4px 24px rgba(15, 29, 51, 0.06);
}
.form-card .form-group { margin-bottom: 24px; }
.form-card label { color: var(--charcoal); font-size: 14px; font-weight: 600; display: block; margin-bottom: 8px; }

.page-support .subject-fields,
.page-support input[type="text"],
.page-support input[type="tel"],
.page-support input[type="email"],
.page-support textarea,
.page-support select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--cloud);
  border-radius: 12px;
  font-size: 14px;
  background: var(--snow);
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.page-support .subject-fields:focus,
.page-support input:focus,
.page-support textarea:focus,
.page-support select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 191, 106, 0.1);
}
.page-support select option { background: var(--white); }
.page-support ::placeholder { color: var(--slate); font-size: 14px; }
.page-support textarea { height: 138px; resize: none; }

.form-row { display: flex; gap: 15px; }
.form-col { flex: 1; }

.submit-btn {
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}
.submit-btn:hover { background: var(--green-dark); }

.error-text-msg { font-size: 13px; color: var(--danger); font-weight: 400; padding-top: 4px; display: block; }

#showoptoutdesp h2,
#showoptoutdesp .optoutdisc {
  color: #4b5563;
  text-align: center;
  font-weight: 400;
  margin: 28px auto 0;
  font-size: 13px;
  line-height: 22px;
}
#showoptoutdesp h2 a { color: var(--green-dark); }
#showoptoutdesp h2 a:hover { text-decoration: none; }

.g-recaptcha { margin: 15px 0; }
#g-recaptcha-response { display: block !important; position: absolute; margin: -50px 0 0 0 !important; z-index: -999999; opacity: 0; }

/* 7. Responsive rules */

@media screen and (max-width: 359px) {
  #recaptcha-container { transform: scale(0.75); transform-origin: 0 0; }
}

@media (max-width: 768px) {
  header { padding: 18px 20px; }
  header .site-logo img { height: 32px; }
  .f-links a { font-size: 12px; }
  .leagal-container h1 { font-size: 28px; padding: 28px 16px 16px; }
  .content-wrap { padding: 20px 20px 40px; }
  .unsubscribe-inner { padding: 0 20px 30px; }
  .accordion-item-header { font-size: 20px; padding: 20px 0; }
  .accordion-item-header::after { right: 0; }
  .left-section h1 { font-size: 32px; }
  .form-card { padding: 28px 18px; }
  #recaptcha-container { transform: scale(0.88); transform-origin: 0 0; }
  .form-row { flex-direction: column; gap: 20px; }
}

@media (max-width: 1200px) {
  .main-container { flex-direction: column; align-items: center; padding: 40px 12px 80px; gap: 48px; }
  .left-section, .right-section { max-width: 100%; width: 100%; }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .page-support h1, .page-support .subtitle, .page-support .get-in-touch { text-align: center; }
}
