/*
 * mydeux.com pages other than home, on top of base.css: the legal pages
 * (made by `npm --prefix backend run legal:export`), the contact form and
 * the 404 page. Same top bar and footer as the home page.
 */

/* ---------- Legal pages: plain, calm reading ---------- */
.doc { width: min(760px, 100% - 48px); margin: 0 auto; padding: 72px 0 120px; }
.doc h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.045em; }
.doc .meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 56px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.025em; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.doc p, .doc ul { margin-top: 16px; }
.doc .meta + p { margin-top: 40px; }
.doc ul { display: grid; gap: 10px; padding-left: 22px; list-style: disc; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--blue-ink); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Contact: a title panel, then the form ---------- */
.page-head { width: min(1392px, 100% - 48px); margin: 8px auto 0; padding: clamp(64px, 8vw, 100px) 24px clamp(110px, 12vw, 150px); border-radius: 32px; background: var(--butter-soft); color: var(--butter-ink); text-align: center; }
.page-head h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.045em; }
.page-head .lead { max-width: 560px; margin: 20px auto 0; color: rgba(41, 40, 36, 0.8); }
.page-body { position: relative; width: min(760px, 100% - 48px); margin: -72px auto 0; padding-bottom: 120px; }

.contact-card { padding: 34px; border-radius: 28px; background: var(--white); box-shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 24px 60px rgba(22, 24, 29, 0.09); }
.contact-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.contact-field { display: grid; gap: 8px; min-width: 0; margin-bottom: 22px; }
.contact-field label { font-size: 16px; font-weight: 700; }
.contact-field label span, .contact-field small { color: var(--muted); font-weight: 500; }
.contact-field small { font-size: 14px; }
.contact-field input, .contact-field select, .contact-field textarea { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 13px 16px; border: 1px solid rgba(22, 24, 29, 0.18); border-radius: 14px; background: var(--page); color: var(--ink); font: 500 16px/1.4 var(--body); transition: border-color 0.2s ease, background-color 0.2s ease; }
.contact-field :is(input, select, textarea):hover { border-color: rgba(22, 24, 29, 0.38); }
.contact-field :is(input, select, textarea):focus-visible { border-color: var(--ink); background: var(--white); outline: 3px solid var(--blue); outline-offset: 2px; }
.contact-field textarea { min-height: 150px; resize: vertical; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-privacy { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.contact-privacy a { color: var(--blue-ink); font-weight: 700; }
.contact-card button { border: 0; cursor: pointer; }
.contact-card button:disabled { cursor: wait; opacity: 0.6; }
.contact-status { margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-status:focus { outline: none; }
.contact-after { margin-top: 26px; color: var(--muted); font-size: 15px; text-align: center; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .doc { padding: 48px 0 90px; }
  .doc p, .doc li { font-size: 16.5px; }
  .page-head { width: calc(100% - 24px); margin-top: 4px; border-radius: 26px; }
  .page-body { width: calc(100% - 24px); margin-top: -64px; padding-bottom: 90px; }
  .contact-card { padding: 22px; border-radius: 24px; }
  .contact-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card button { width: 100%; }
  .panel .cta .btn { width: 100%; }
}
