/* Brand-aligned legal pages */
:root {
  --mb-bg: #0e0d0b;
  --mb-text: #f2ede4;
  --mb-muted: #a39a8c;
  --mb-accent: #eab308;
  --mb-border: rgba(242, 237, 228, 0.12);
  --mb-panel: #1a1714;
}
:root {
  color-scheme: light dark;
  --bg: #0e0d0b;
  --bg-elevated: #12151c;
  --text: #eef1f6;
  --muted: #8b93a3;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #eab308;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --max: 42rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f9fc;
    --bg-elevated: #ffffff;
    --text: #0f1219;
    --muted: #5a6270;
    --border: rgba(15, 18, 25, 0.1);
    --accent: #3b5bdb;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 3.5rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.topnav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.topnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.topnav-links a {
  color: var(--muted);
  text-decoration: none;
}

.topnav-links a:hover {
  color: var(--accent);
}

article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
}

article h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.55rem;
}

article p,
article li {
  color: var(--text);
  opacity: 0.94;
}

article ul {
  padding-left: 1.2rem;
}

article li {
  margin: 0.35rem 0;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.5rem;
}

.panel p:first-child {
  margin-top: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

.app-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.app-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.app-list h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.app-list p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  opacity: 1;
}

.app-list .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.95rem;
}

.footer-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Support contact form (Netlify) */
.support-form {
  display: grid;
  gap: 0.85rem;
  margin: 0.25rem 0 0;
}

.support-form .field {
  display: grid;
  gap: 0.3rem;
}

.support-form label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.support-form .optional {
  color: var(--muted);
  font-weight: 400;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.support-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.support-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-form .submit {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  font-family: var(--font-display);
  color: #0e0d0b;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
}

.support-form .submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.support-form .form-status {
  margin: 0;
  font-size: 0.9rem;
}

.support-form .form-status-ok {
  color: var(--accent);
}

.support-form .form-status-error {
  color: #ef4444;
}

.support-form-success {
  display: none;
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.support-form-success.is-visible {
  display: block;
}

.support-form.is-sent {
  display: none;
}

