/* Legal pages (terms, privacy, contact) */

.legal-page .legal-article {
  max-width: 48rem;
}

.legal-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-toc a {
  color: var(--text);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--accent-cyan);
}

.legal-body blockquote {
  margin: 1rem 0;
  padding: 0.65rem 1rem;
  border-left: 3px solid var(--accent-fuchsia);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

mark.placeholder {
  background: rgba(251, 191, 36, 0.25);
  color: inherit;
  padding: 0 0.15rem;
  border-radius: 0.15rem;
}

.footer-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.25rem;
}

.footer-disclaimer {
  width: 100%;
  max-width: 42rem;
  margin: 0.65rem auto 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-disclaimer a {
  color: var(--text-muted);
}

.footer-copy {
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-disclaimer {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  max-width: 42rem;
}

.site-disclaimer a {
  color: var(--text-muted);
  white-space: nowrap;
}

.chat-disclaimer {
  flex-shrink: 0;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.25rem;
}

.auth-consent-line {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0.65rem 0 0;
}

.auth-consent-line a {
  color: var(--text-muted);
}

.guide-disclaimer-block {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact page */
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr min(16rem, 32vw);
    align-items: start;
  }
}

.contact-notice {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.contact-aside {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-aside h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.contact-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-field--error input,
.contact-field--error select,
.contact-field--error textarea {
  border-color: #f87171;
}

.contact-field-error {
  font-size: 0.75rem;
  color: #f87171;
  margin: 0.3rem 0 0;
}

.contact-char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
}

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

.contact-consent label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.contact-submit {
  align-self: flex-start;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-fuchsia), var(--accent-cyan));
  color: #050508;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-status {
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.contact-form-status[hidden] {
  display: none !important;
}