/* Hirefathom — legal.css */

/* ============================================================
   LEGAL PAGE LAYOUT
   ============================================================ */
.hf-legal-page {
  background: var(--hf-cream);
  min-height: 100vh;
}

.hf-legal-hero {
  background: var(--hf-navy);
  padding: 108px 0 56px;
}

.hf-legal-hero__inner {
  max-width: var(--hf-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .hf-legal-hero__inner { padding: 0 40px; }
}

.hf-legal-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--hf-fg-dark-3);
  margin-bottom: 16px;
}

.hf-legal-hero__breadcrumb a {
  color: var(--hf-amber);
  text-decoration: none;
}

.hf-legal-hero__breadcrumb a:hover {
  text-decoration: underline;
}

.hf-legal-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--hf-fg-dark-1);
  margin-bottom: 8px;
}

.hf-legal-hero__sub {
  font-size: 1rem;
  color: var(--hf-fg-dark-2);
  max-width: none;
}

/* ============================================================
   LEGAL CONTENT WRAPPER
   ============================================================ */
.hf-legal-body {
  max-width: var(--hf-max-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 768px) {
  .hf-legal-body { padding: 56px 40px 80px; }
}

@media (max-width: 900px) {
  .hf-legal-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Sidebar TOC */
.hf-legal-toc {
  position: sticky;
  top: 88px;
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 20px;
}

@media (max-width: 900px) {
  .hf-legal-toc { display: none; }
}

.hf-legal-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hf-fg-light-3);
  margin-bottom: 12px;
}

.hf-legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hf-legal-toc__list li a {
  font-size: 0.875rem;
  color: var(--hf-fg-light-2);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: color 0.15s, border-color 0.15s;
}

.hf-legal-toc__list li a:hover {
  color: var(--hf-navy);
  border-left-color: var(--hf-amber);
}

/* ============================================================
   LEGAL ARTICLE CONTENT — scoped to light-top per design-spec
   ============================================================ */
body.hf-page--light-top .hf-legal-content {
  /* outer wrapper */
}

body.hf-page--light-top .hf-legal-content .legal-article {
  /* article from template */
}

body.hf-page--light-top .hf-legal-content .legal-header h1 {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--hf-fg-light-1);
  margin-bottom: 8px;
  display: none; /* heading shown in hero */
}

body.hf-page--light-top .hf-legal-content .legal-meta {
  font-size: 0.875rem;
  color: var(--hf-fg-light-3);
  margin-bottom: 4px;
  max-width: none;
}

body.hf-page--light-top .hf-legal-content h2 {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hf-fg-light-1);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hf-border);
}

body.hf-page--light-top .hf-legal-content h3 {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hf-fg-light-1);
  margin: 24px 0 8px;
}

body.hf-page--light-top .hf-legal-content p {
  font-size: 0.9375rem;
  color: var(--hf-fg-light-2);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 72ch;
}

body.hf-page--light-top .hf-legal-content ul,
body.hf-page--light-top .hf-legal-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

body.hf-page--light-top .hf-legal-content li {
  font-size: 0.9375rem;
  color: var(--hf-fg-light-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

body.hf-page--light-top .hf-legal-content a {
  color: var(--hf-amber-aa);
  text-decoration: underline;
}

body.hf-page--light-top .hf-legal-content a:hover {
  color: var(--hf-navy);
}

body.hf-page--light-top .hf-legal-content address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--hf-fg-light-2);
  line-height: 1.8;
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-sm);
  padding: 16px 20px;
  display: inline-block;
}

/* Legal table */
body.hf-page--light-top .hf-legal-content .legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 16px 0;
}

body.hf-page--light-top .hf-legal-content .legal-table th {
  background: var(--hf-light-alt);
  color: var(--hf-fg-light-1);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--hf-border);
}

body.hf-page--light-top .hf-legal-content .legal-table td {
  color: var(--hf-fg-light-2);
  padding: 10px 14px;
  border: 1px solid var(--hf-border);
  vertical-align: top;
}

body.hf-page--light-top .hf-legal-content .legal-table tr:nth-child(even) td {
  background: var(--hf-cream);
}

/* Section anchors */
body.hf-page--light-top .hf-legal-content section {
  scroll-margin-top: 100px;
}
