:root {
  color-scheme: light;
  --page-bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #121722;
  --muted: #5f6b7a;
  --border: #dbe2ea;
  --line: #e7ecf2;
  --accent: #1769e0;
  --accent-2: #0f9f8f;
  --danger: #b42318;
  --shadow: 0 18px 46px rgba(18, 23, 34, 0.09);
  --max: 1160px;
}

html[data-tools-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0f172a;
  --surface: #151f32;
  --surface-2: #1d293d;
  --text: #f7fafc;
  --muted: #a9b4c4;
  --border: #2c3a50;
  --line: #27354a;
  --accent: #73a7ff;
  --accent-2: #4fd1c5;
  --danger: #ff8a80;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tools-public-body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: none; }

button,
input,
textarea,
select {
  font: inherit;
}

.theme-logo-dark { display: none !important; }
html[data-tools-theme="dark"] .theme-logo-light { display: none !important; }
html[data-tools-theme="dark"] .theme-logo-dark { display: block !important; }

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.site-header-inner,
.site-main,
.site-footer-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-brand strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
}

.site-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 750;
  padding: 0 12px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.site-nav a:hover,
.site-nav a.is-current,
.site-nav a[aria-current="page"],
.theme-toggle:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.theme-toggle {
  background: transparent;
  cursor: pointer;
}

.public-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 10px;
}

.public-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-main {
  padding: clamp(34px, 6vw, 72px) 0;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 120px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(60px, 10vw, 120px) 0 clamp(44px, 8vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-position: right 8% center;
  background-size: min(520px, 46vw);
  opacity: 0.09;
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.home-hero {
  min-height: min(760px, calc(100vh - 96px));
  --active-hero-image: var(--hero-image-light, var(--hero-image));
}

html[data-tools-theme="dark"] .home-hero {
  --active-hero-image: var(--hero-image-dark, var(--hero-image-light, var(--hero-image)));
}

.home-hero::before {
  background-image:
    linear-gradient(90deg, var(--page-bg) 0%, color-mix(in srgb, var(--page-bg) 96%, transparent) 31%, color-mix(in srgb, var(--page-bg) 66%, transparent) 48%, transparent 72%),
    radial-gradient(circle at 79% 50%, color-mix(in srgb, var(--accent) 19%, transparent) 0, transparent 34%),
    radial-gradient(circle at 69% 72%, color-mix(in srgb, var(--accent-2) 16%, transparent) 0, transparent 31%),
    var(--active-hero-image);
  background-position: center, center, center, right clamp(28px, 5vw, 88px) center;
  background-size: cover, cover, cover, min(830px, 58vw) auto;
  opacity: 1;
}

.home-hero-content {
  min-height: min(600px, calc(100vh - 210px));
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.section-eyebrow,
.policy-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: 5.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.page-title p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  padding: 0 16px;
}

.site-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

html[data-tools-theme="dark"] .site-button.primary {
  color: #07111f;
}

.section {
  padding: clamp(42px, 8vw, 86px) 0 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-header div {
  max-width: 720px;
}

.section-header h2,
.split-copy h2,
.policy-section h2,
.service-card h2,
.software-detail h2 {
  margin: 0;
  color: var(--text);
  font-size: 2.65rem;
  line-height: 1.05;
}

.section-header p,
.split-copy p,
.software-card p,
.service-card p,
.software-detail p,
.policy-section p,
.policy-section li {
  color: var(--muted);
}

.section-header p {
  margin: 12px 0 0;
}

.software-grid,
.services-grid,
.stats-grid {
  display: grid;
  gap: 14px;
}

.software-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.software-card,
.service-card,
.stat-card,
.policy-section,
.contact-panel,
.contact-note,
.software-detail {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.software-card,
.service-card,
.stat-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.software-card {
  min-height: 250px;
}

.software-card:hover,
.site-button:hover {
  border-color: var(--accent);
}

.software-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.software-logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.software-card h3,
.stat-card strong {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
}

.software-card p,
.service-card p,
.stat-card span {
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  padding: 0 9px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.split-list,
.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.split-list li,
.detail-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 14px;
}

.page-title {
  max-width: 900px;
  padding-bottom: clamp(28px, 5vw, 54px);
}

.page-title h1 {
  font-size: 4.8rem;
}

.software-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.software-detail {
  padding: clamp(20px, 4vw, 34px);
}

.software-detail-logo {
  width: 116px;
  height: 116px;
  margin-bottom: 22px;
}

.detail-list {
  margin-top: 18px;
}

.service-card {
  min-height: 260px;
}

.service-card h2 {
  font-size: 1.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer strong {
  display: block;
  color: var(--text);
}

.site-footer span,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.policy-document {
  width: min(920px, 100%);
  display: grid;
  gap: 14px;
}

.policy-section {
  padding: clamp(20px, 4vw, 32px);
}

.policy-section h2 {
  font-size: 2rem;
}

.policy-section p {
  margin: 12px 0 0;
}

.policy-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.policy-pill-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px 10px;
}

.legal-main {
  padding-top: 42px;
  padding-bottom: 76px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 2.65rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-meta {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(18, 23, 34, 0.07);
  padding: 18px;
}

html[data-tools-theme="dark"] .legal-meta {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.legal-meta div + div {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.legal-meta dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.45;
}

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

.legal-toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.legal-toc strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.86rem;
}

.legal-toc a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 740;
  line-height: 1.35;
  padding: 8px;
}

.legal-toc a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.legal-document {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(18, 23, 34, 0.07);
}

html[data-tools-theme="dark"] .legal-document {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.legal-section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 30px;
  scroll-margin-top: 100px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
}

.legal-section-number {
  width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.legal-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.28;
}

.legal-section p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
}

.legal-section a,
.legal-meta a {
  color: var(--accent);
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  align-items: start;
}

.contact-note {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.contact-note article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-note article:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-note h2,
.public-contact-form-heading h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.15;
}

.contact-note p,
.public-contact-form-heading p,
.public-contact-field span,
.public-contact-drop-top small,
.public-contact-drop-zone span,
.public-contact-empty-preview,
.public-contact-message,
.public-contact-file-details small,
.public-contact-toast p {
  color: var(--muted);
}

.public-contact-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px);
}

.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-contact-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.public-contact-field span {
  font-size: 0.9rem;
  font-weight: 800;
}

.public-contact-field input,
.public-contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--page-bg);
  color: var(--text);
  padding: 13px 14px;
}

.public-contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.public-contact-field input:focus,
.public-contact-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.public-contact-drop-section {
  display: grid;
  gap: 12px;
}

.public-contact-drop-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.public-contact-drop-top h3 {
  margin: 0;
  color: var(--text);
}

.public-contact-drop-zone {
  min-height: 154px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 22px;
}

.public-contact-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.public-contact-drop-zone strong {
  color: var(--text);
}

.public-contact-drop-zone.is-dragging {
  border-color: var(--accent-2);
}

.public-contact-file-preview {
  display: grid;
  gap: 10px;
}

.public-contact-empty-preview {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.public-contact-file-chip {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.public-contact-file-visual {
  width: 52px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
}

.public-contact-file-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-contact-file-details {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.public-contact-file-details strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-contact-file-remove {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.public-contact-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.public-contact-submit {
  min-width: 166px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

html[data-tools-theme="dark"] .public-contact-submit {
  color: #07111f;
}

.public-contact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.public-contact-message[data-state="success"] {
  color: var(--accent-2);
  font-weight: 850;
}

.public-contact-message[data-state="error"] {
  color: var(--danger);
  font-weight: 850;
}

.public-contact-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(390px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 14px;
}

.public-contact-toast[hidden] { display: none; }
.public-contact-toast p { margin: 4px 0 0; line-height: 1.4; }

.public-contact-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: public-contact-spin 0.9s linear infinite;
}

.public-contact-toast[data-state="success"] .public-contact-spinner,
.public-contact-toast[data-state="error"] .public-contact-spinner {
  animation: none;
  border-color: var(--accent-2);
}

@keyframes public-contact-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 920px) {
  .hero h1 {
    font-size: 4.3rem;
  }

  .page-title h1 {
    font-size: 3.7rem;
  }

  .section-header h2,
  .split-copy h2,
  .policy-section h2,
  .software-detail h2 {
    font-size: 2.2rem;
  }

  .legal-hero {
    grid-template-columns: 1fr;
  }

  .legal-hero h1 {
    font-size: 2.35rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .public-menu-btn {
    display: grid;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 8px;
  }

  .site-nav.active {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero::before {
    background-position: right -4rem bottom 2rem;
    background-size: 340px;
  }

  .home-hero::before {
    background-position: center, center, center, right -2rem bottom 2rem;
    background-size: cover, cover, cover, min(760px, 96vw) auto;
  }

  .home-hero-content {
    min-height: 560px;
  }

  .software-grid,
  .services-grid,
  .stats-grid,
  .split-section,
  .software-detail-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .site-main,
  .site-footer-inner,
  .hero-content {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    min-height: auto;
  }

  .home-hero {
    padding-top: 46px;
    padding-bottom: clamp(250px, 62vw, 340px);
  }

  .home-hero::before {
    background-image:
      linear-gradient(180deg, var(--page-bg) 0%, color-mix(in srgb, var(--page-bg) 94%, transparent) 43%, color-mix(in srgb, var(--page-bg) 42%, transparent) 72%, transparent 100%),
      radial-gradient(circle at 72% 58%, color-mix(in srgb, var(--accent) 18%, transparent) 0, transparent 34%),
      radial-gradient(circle at 42% 82%, color-mix(in srgb, var(--accent-2) 15%, transparent) 0, transparent 28%),
      var(--active-hero-image);
    background-position: center, center, center, center bottom 26px;
    background-size: cover, cover, cover, min(620px, 118vw) auto;
  }

  .home-hero-content {
    min-height: auto;
  }

  .home-hero .hero-copy {
    width: min(360px, calc(100vw - 28px));
    max-width: min(360px, calc(100vw - 28px));
  }

  .home-hero .hero-copy h1 {
    max-width: 12ch;
  }

  .home-hero .hero-copy p,
  .home-hero .hero-actions {
    max-width: min(360px, calc(100vw - 28px));
  }

  .hero h1,
  .page-title h1 {
    font-size: 2.35rem;
  }

  .hero p,
  .page-title p {
    font-size: 1.03rem;
  }

  .section-header h2,
  .split-copy h2,
  .policy-section h2,
  .software-detail h2 {
    font-size: 1.85rem;
    max-width: min(360px, calc(100vw - 28px));
    overflow-wrap: break-word;
  }

  .service-card h2 {
    font-size: 1.45rem;
  }

  .legal-main {
    padding-top: 30px;
    padding-bottom: 52px;
  }

  .legal-hero {
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 22px;
  }

  .legal-hero h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .legal-hero p:not(.eyebrow),
  .legal-section p {
    font-size: 0.94rem;
  }

  .legal-meta {
    padding: 14px;
  }

  .legal-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 18px;
  }

  .legal-section h2 {
    font-size: 1.08rem;
  }

  .section-header,
  .site-footer-inner,
  .public-contact-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .public-contact-grid {
    grid-template-columns: 1fr;
  }

  .public-contact-file-chip {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .public-contact-file-remove {
    grid-column: 1 / -1;
  }
}
