/* Jobs Drivers — Legal pages */

.jd-legal-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 64px;
}

.jd-legal-wrap > .jd-hero-wrap {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 24px;
}

/* Compact hero (text only, no image column) */
.jd-hero--legal .jd-hero-inner--single {
  grid-template-columns: 1fr;
}

.jd-hero--legal .jd-hero-content {
  padding: 44px 44px 40px;
}

.jd-legal-meta-line {
  margin-bottom: 0 !important;
  font-size: 14px !important;
  color: #64748b !important;
}

.jd-legal-body {
  padding: 0 20px;
}

.jd-legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

/* Main legal text — white card */
.jd-legal-main {
  background: #fff;
  border: 1px solid var(--jd-border, #e2e8f0);
  border-radius: 18px;
  padding: 36px 40px 40px;
  box-shadow: 0 14px 36px rgba(12, 45, 74, 0.07);
  min-width: 0;
}

.jd-legal-intro {
  font-size: 1rem;
  color: var(--jd-text, #334155);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--jd-border, #e2e8f0);
}

.jd-legal-intro p:last-child {
  margin-bottom: 0;
}

.jd-legal-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--jd-border, #e2e8f0);
}

.jd-legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.jd-legal-section h2 {
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--jd-navy, #0c2d4a);
  margin: 0 0 14px;
  line-height: 1.3;
}

.jd-legal-section p,
.jd-legal-intro p {
  font-size: 0.9375rem;
  color: var(--jd-text, #334155);
  line-height: 1.75;
  margin: 0 0 14px;
}

.jd-legal-section p:last-child {
  margin-bottom: 0;
}

.jd-legal-section ul,
.jd-legal-intro ul {
  margin: 0 0 14px;
  padding-left: 1.35em;
  list-style: disc;
}

.jd-legal-section li,
.jd-legal-intro li {
  font-size: 0.9375rem;
  color: var(--jd-text, #334155);
  line-height: 1.75;
  margin-bottom: 8px;
}

.jd-legal-section li:last-child {
  margin-bottom: 0;
}

.jd-legal-section a,
.jd-legal-intro a {
  color: var(--jd-blue, #1a73e8);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jd-legal-section a:hover,
.jd-legal-intro a:hover {
  color: #1558b0;
}

.jd-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 14px 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jd-legal-table thead,
.jd-legal-table tbody,
.jd-legal-table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.jd-legal-table th,
.jd-legal-table td {
  border: 1px solid var(--jd-border, #e2e8f0);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

.jd-legal-table th {
  background: var(--jd-bg-soft, #f4f7fb);
  font-weight: 600;
  color: var(--jd-navy, #0c2d4a);
}

.jd-legal-aside {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--jd-border, #e2e8f0);
  border-radius: 14px;
  padding: 22px 20px;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(12, 45, 74, 0.05);
}

.jd-legal-aside h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--jd-navy, #0c2d4a);
  margin: 0 0 14px;
}

.jd-legal-aside ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.jd-legal-aside li {
  margin-bottom: 10px;
}

.jd-legal-aside a {
  color: var(--jd-blue, #1a73e8);
  font-weight: 600;
  text-decoration: none;
}

.jd-legal-aside a:hover {
  text-decoration: underline;
}

.jd-legal-co {
  margin: 0;
  color: var(--jd-muted, #64748b);
  line-height: 1.55;
  font-size: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--jd-border, #e2e8f0);
}

.jd-legal-co a {
  color: var(--jd-blue, #1a73e8);
}

.jd-cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--jd-blue, #1a73e8);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 900px) {
  .jd-legal-layout {
    grid-template-columns: 1fr;
  }

  .jd-legal-aside {
    position: static;
    order: 2;
  }

  .jd-legal-main {
    order: 1;
  }
}

@media (max-width: 640px) {
  .jd-hero--legal .jd-hero-content {
    padding: 32px 22px 28px;
  }

  .jd-legal-body {
    padding: 0 12px;
  }

  .jd-legal-main {
    padding: 26px 20px 28px;
    border-radius: 14px;
  }

  .jd-legal-aside {
    padding: 20px 18px;
  }
}
