:root {
  color-scheme: light;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #4a4a4a;
  background: #f6f6f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --legal-ink: #4a4a4a;
  --legal-muted: #7b7b7b;
  --legal-border: #eeeeee;
  --legal-surface: #fff;
  --legal-sunken: #f6f6f6;
  --legal-accent: #2563eb;
  --legal-accent-hover: #1d4ed8;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
}

a {
  color: var(--legal-accent);
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.legal-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.legal-header,
.legal-footer {
  background: var(--legal-surface);
  border-color: var(--legal-border);
  border-style: solid;
}

.legal-header { border-width: 0 0 1px; }
.legal-footer { border-width: 1px 0 0; }

.legal-nav,
.legal-footer-inner {
  display: flex;
  width: min(100% - 32px, 1200px);
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.legal-brand {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

.legal-content {
  width: min(100% - 40px, 760px);
  flex: 1;
  margin: 24px auto;
  padding: 20px;
  border: 1px solid var(--legal-border);
  border-radius: 8px;
  background: var(--legal-surface);
}

h1,
h2 {
  color: var(--legal-ink);
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.4;
}

h2 {
  margin: 24px 0 8px;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
}

p,
li {
  font-size: 0.875rem;
  line-height: 1.65;
}

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 18px; padding-left: 1.35rem; }
li + li { margin-top: 5px; }

.legal-updated {
  margin-bottom: 20px;
  color: var(--legal-muted);
  font-size: 0.75rem;
}

.legal-note {
  border-left: 3px solid var(--legal-border);
  margin: 18px 0;
  padding: 4px 0 4px 12px;
  color: var(--legal-muted);
}

.legal-form {
  display: grid;
  max-width: 600px;
  gap: 8px;
  margin: 18px 0 28px;
}

.legal-form label {
  margin-top: 8px;
  color: var(--legal-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.legal-form input,
.legal-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: var(--legal-surface);
  padding: 10px 12px;
  color: var(--legal-ink);
  font: inherit;
  font-size: 1rem;
}

.legal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.legal-form input:focus-visible,
.legal-form textarea:focus-visible,
.legal-form button:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 2px;
}

.legal-form button {
  width: fit-content;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--legal-accent);
  padding: 0 16px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  touch-action: manipulation;
}

.legal-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.legal-field-help {
  margin: 0;
  color: var(--legal-muted);
  font-size: 0.75rem;
}

.legal-form-status {
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 0.8125rem;
}

.legal-form-status.is-success { color: #18794e; }
.legal-form-status.is-error { color: #b42318; }

.legal-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .legal-form button:hover:not(:disabled) { background: var(--legal-accent-hover); }
}

.legal-footer-inner {
  min-height: 51px;
  color: var(--legal-muted);
  font-size: 0.75rem;
}

@media (max-width: 520px) {
  .legal-nav,
  .legal-footer-inner {
    gap: 10px;
  }

  .legal-content {
    width: min(100% - 24px, 760px);
    margin: 12px auto;
    padding: 16px;
  }
}
