.legal-page {
  background: var(--bg);
  min-height: 100dvh;
  padding-bottom: calc(1.5rem + var(--safe-b));
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  padding-top: calc(0.85rem + var(--safe-t));
  background: var(--ifigo-ink);
  color: #fff;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.legal-brand .header__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.legal-back {
  color: #fdba74;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
}

.legal-main h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.legal-main h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 1.35rem 0 0.45rem;
}

.legal-main p,
.legal-main li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.legal-main ul {
  padding-left: 1.2rem;
  margin: 0 0 0.75rem;
}

.legal-main a {
  color: var(--ifigo-orange-dark);
  font-weight: 600;
  text-decoration: none;
}

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

.legal-main code {
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.legal-nav {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem !important;
}

.footer__links {
  margin-top: 0.5rem;
}

.footer__links a,
.footer a {
  color: var(--ifigo-orange-dark);
  font-weight: 600;
  text-decoration: none;
}

.footer__links a:hover,
.footer a:hover {
  text-decoration: underline;
}

.legal-page .footer {
  max-width: 720px;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
}

.contact-form label span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #fdba74;
  outline-offset: 1px;
}

.contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.contact-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #f59e0b;
  color: #111;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
}

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

.contact-status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}

.contact-status.is-ok {
  color: #15803d;
  font-weight: 600;
}

.contact-status.is-error {
  color: #b91c1c;
  font-weight: 600;
}
