/* KitchenHub merged theme stylesheet
   --------------------------------
   One stylesheet for the public KitchenHub pages.

   Default theme: playful / showroom.
   Corporate theme: add class="theme-corporate" to <body> for dark manufacturer mode.
*/

/* =========================================================
   Theme tokens
   ========================================================= */

:root,
body.theme-playful {
  --bg: #fff8ef;
  --panel: #ffffff;
  --panel2: #fff2df;
  --text: #243040;
  --muted: #667085;
  --copper: #d88745;
  --copper2: #ffbd6b;
  --blue: #1f9cff;
  --blue2: #53d7ff;
  --line: rgba(36, 48, 64, 0.12);
  --shadow: 0 24px 55px rgba(87, 64, 38, 0.16);
  --radius: 32px;

  --body-bg: radial-gradient(circle at 72% 8%, rgba(83, 215, 255, 0.3), transparent 34%),
    radial-gradient(circle at 12% 22%, rgba(255, 189, 107, 0.32), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(96, 235, 178, 0.18), transparent 30%), var(--bg);
  --header-bg: rgba(255, 248, 239, 0.78);
  --header-border: rgba(36, 48, 64, 0.08);
  --nav-text: #59677a;
  --btn-bg: rgba(255, 255, 255, 0.75);
  --btn-border: rgba(36, 48, 64, 0.12);
  --btn-primary-text: #241204;
  --eyebrow-text: #244055;
  --eyebrow-bg: rgba(31, 156, 255, 0.11);
  --eyebrow-border: rgba(38, 168, 255, 0.28);
  --lead-text: #59677a;
  --proof-bg: rgba(255, 255, 255, 0.72);
  --proof-strong: #243040;
  --device-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 233, 0.8));
  --device-border: rgba(36, 48, 64, 0.1);
  --screen-bg: linear-gradient(180deg, #ffffff, #fff4e3);
  --screen-border: rgba(36, 48, 64, 0.1);
  --appbar-text: #243040;
  --pill-bg: rgba(36, 48, 64, 0.12);
  --plan-card-bg: rgba(255, 255, 255, 0.78);
  --plan-card-border: rgba(255, 255, 255, 0.12);
  --canvas-border: rgba(36, 48, 64, 0.1);
  --row-bg: rgba(255, 255, 255, 0.78);
  --row-text: #4a586b;
  --row-bold: #243040;
  --status: #0a90e8;
  --section-text: #667085;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.88));
  --card-border: rgba(255, 255, 255, 0.12);
  --card-text: #667085;
  --path-bg: rgba(255, 255, 255, 0.78);
  --path-border: rgba(255, 255, 255, 0.12);
  --path-list-text: #59677a;
  --cta-bg: linear-gradient(135deg, rgba(83, 215, 255, 0.24), rgba(255, 189, 107, 0.32));
  --cta-border: rgba(36, 48, 64, 0.1);
  --cta-text: #59677a;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-text: #7a8698;
  --playful-pattern-opacity: 0.45;
}

body.theme-corporate {
  --bg: #000812;
  --panel: #07111d;
  --panel2: #0b1725;
  --text: #f5f7fb;
  --muted: #9ca8b7;
  --copper: #d4864c;
  --copper2: #f2b078;
  --blue: #26a8ff;
  --blue2: #4dd8ff;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;

  --body-bg: radial-gradient(circle at 70% 10%, rgba(38, 168, 255, 0.13), transparent 36%),
    radial-gradient(circle at 20% 30%, rgba(212, 134, 76, 0.12), transparent 35%), var(--bg);
  --header-bg: rgba(0, 8, 18, 0.7);
  --header-border: rgba(255, 255, 255, 0.08);
  --nav-text: #c8d0da;
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.14);
  --btn-primary-text: #170a02;
  --eyebrow-text: #d9e6f8;
  --eyebrow-bg: rgba(38, 168, 255, 0.08);
  --eyebrow-border: rgba(38, 168, 255, 0.28);
  --lead-text: #c9d3df;
  --proof-bg: rgba(255, 255, 255, 0.035);
  --proof-strong: #ffffff;
  --device-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  --device-border: rgba(255, 255, 255, 0.14);
  --screen-bg: linear-gradient(180deg, #0b1725, #050a12);
  --screen-border: rgba(255, 255, 255, 0.1);
  --appbar-text: #dfe7f2;
  --pill-bg: rgba(255, 255, 255, 0.12);
  --plan-card-bg: rgba(255, 255, 255, 0.055);
  --plan-card-border: rgba(255, 255, 255, 0.12);
  --canvas-border: rgba(255, 255, 255, 0.1);
  --row-bg: rgba(255, 255, 255, 0.055);
  --row-text: #d7e0ea;
  --row-bold: #ffffff;
  --status: #7ce2ff;
  --section-text: #b7c3d0;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  --card-border: rgba(255, 255, 255, 0.12);
  --card-text: #aeb8c5;
  --path-bg: rgba(255, 255, 255, 0.055);
  --path-border: rgba(255, 255, 255, 0.12);
  --path-list-text: #c6d0dc;
  --cta-bg: linear-gradient(135deg, rgba(38, 168, 255, 0.18), rgba(212, 134, 76, 0.2));
  --cta-border: rgba(255, 255, 255, 0.14);
  --cta-text: #c9d3df;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-text: #7f8b99;
  --playful-pattern-opacity: 0;
}

/* =========================================================
   Base layout
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--body-bg);
  font-family:
    Avenir Next,
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--playful-pattern-opacity);
  background-image: radial-gradient(circle, rgba(31, 156, 255, 0.16) 0 5px, transparent 6px),
    radial-gradient(circle, rgba(216, 135, 69, 0.16) 0 4px, transparent 5px);
  background-position:
    12px 18px,
    48px 64px;
  background-size:
    92px 92px,
    128px 128px;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* =========================================================
   Header and navigation
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 54px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--nav-text);
  font-size: 14px;
}

/* =========================================================
   Buttons and reusable utilities
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn.primary {
  border: none;
  color: var(--btn-primary-text);
  background: linear-gradient(135deg, var(--copper2), var(--copper));
  box-shadow: 0 16px 35px rgba(212, 134, 76, 0.22);
}

.copper {
  color: transparent;
  background: linear-gradient(135deg, var(--copper2), var(--copper));
  background-clip: text;
  -webkit-background-clip: text;
}

.logo-large {
  display: block;
  width: 170px;
  margin: 0 auto 10px;
  border-radius: 22px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 58px;
  padding: 72px 0 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--eyebrow-border);
  border-radius: 999px;
  color: var(--eyebrow-text);
  background: var(--eyebrow-bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

h1 {
  margin: 26px 0 22px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 650px;
  margin: 0 0 34px;
  color: var(--lead-text);
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.mini-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 640px;
}

.proof {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--proof-bg);
}

.proof strong {
  display: block;
  margin-bottom: 3px;
  color: var(--proof-strong);
  font-size: 23px;
}

.proof span {
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   App preview mockup
   ========================================================= */

.device {
  position: relative;
  padding: 18px;
  border: 1px solid var(--device-border);
  border-radius: 36px;
  background: var(--device-bg);
  box-shadow: var(--shadow);
}

.screen {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--screen-border);
  border-radius: 26px;
  background: var(--screen-bg);
}

.screen::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(38, 168, 255, 0.22), transparent 68%);
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--appbar-text);
}

.pills {
  display: flex;
  gap: 8px;
}

.pill {
  width: 48px;
  height: 9px;
  border-radius: 999px;
  background: var(--pill-bg);
}

.pill.active {
  background: var(--blue);
}

.plan-card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--plan-card-border);
  border-radius: 22px;
  background: var(--plan-card-bg);
}

.canvas {
  position: relative;
  height: 245px;
  margin-top: 12px;
  border: 1px solid var(--canvas-border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(38, 168, 255, 0.08), rgba(212, 134, 76, 0.08));
}

.bench {
  position: absolute;
  border-radius: 8px;
  background: rgba(212, 134, 76, 0.82);
}

.b1 {
  left: 44px;
  top: 54px;
  width: 220px;
  height: 38px;
}

.b2 {
  left: 226px;
  top: 54px;
  width: 38px;
  height: 142px;
}

.b3 {
  left: 44px;
  top: 158px;
  width: 145px;
  height: 38px;
}

.blue-node {
  position: absolute;
  left: 206px;
  top: 36px;
  width: 76px;
  height: 76px;
  border: 10px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(38, 168, 255, 0.35);
}

.rows {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--row-text);
  background: var(--row-bg);
}

.row b {
  color: var(--row-bold);
}

.status {
  color: var(--status);
}

/* =========================================================
   Content sections
   ========================================================= */

.section {
  padding: 68px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.04em;
}

.section p {
  max-width: 760px;
  margin: 0;
  color: var(--section-text);
  font-size: 18px;
  line-height: 1.6;
}

.cards,
.split {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(38, 168, 255, 0.22), rgba(212, 134, 76, 0.22));
  font-weight: 900;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 25px;
}

.card p {
  color: var(--card-text);
  font-size: 16px;
}

.split {
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.path {
  padding: 32px;
  border: 1px solid var(--path-border);
  border-radius: var(--radius);
  background: var(--path-bg);
}

.path h3 {
  margin: 0 0 12px;
  font-size: 30px;
}

.path ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--path-list-text);
  list-style: none;
}

.path li::before {
  content: "•";
  margin-right: 10px;
  color: var(--copper);
  font-size: 24px;
  vertical-align: middle;
}

/* =========================================================
   Call to action and footer
   ========================================================= */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 72px auto;
  padding: 46px;
  border: 1px solid var(--cta-border);
  border-radius: 38px;
  background: var(--cta-bg);
}

.cta h2 {
  margin: 0 0 10px;
  font-size: 44px;
  letter-spacing: -0.04em;
}

.cta p {
  margin: 0;
  color: var(--cta-text);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 0 42px;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
  font-size: 14px;
}

.footer a,
.legal-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* =========================================================
   Playful theme personality
   Keeps the default theme lively without affecting corporate mode.
   ========================================================= */

:where(body.theme-playful, body:not(.theme-corporate)) :is(h1, .section h2, .cta h2) {
  letter-spacing: -0.055em;
}

:where(body.theme-playful, body:not(.theme-corporate)) .hero h1::after {
  content: "";
  display: block;
  width: 136px;
  height: 14px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue2), var(--copper2));
  transform: rotate(-1.5deg);
}

:where(body.theme-playful, body:not(.theme-corporate)) .btn:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 14px 30px rgba(31, 156, 255, 0.13);
}

:where(body.theme-playful, body:not(.theme-corporate)) .btn.primary:hover {
  box-shadow: 0 18px 34px rgba(216, 135, 69, 0.24);
}

:where(body.theme-playful, body:not(.theme-corporate)) :is(.card, .proof, .path, .plan-card, .device, .cta) {
  box-shadow: var(--shadow);
}

:where(body.theme-playful, body:not(.theme-corporate)) :is(.card, .path, .proof) {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

:where(body.theme-playful, body:not(.theme-corporate)) :is(.card, .path, .proof):hover {
  transform: translateY(-5px);
  border-color: rgba(31, 156, 255, 0.22);
}

:where(body.theme-playful, body:not(.theme-corporate)) .card:nth-child(2) {
  transform: rotate(0.6deg);
}

:where(body.theme-playful, body:not(.theme-corporate)) .card:nth-child(3) {
  transform: rotate(-0.6deg);
}

:where(body.theme-playful, body:not(.theme-corporate)) .card:nth-child(2):hover,
:where(body.theme-playful, body:not(.theme-corporate)) .card:nth-child(3):hover {
  transform: translateY(-5px) rotate(0deg);
}

:where(body.theme-playful, body:not(.theme-corporate)) .icon {
  border-radius: 18px 18px 22px 14px;
  color: #0a90e8;
  background: linear-gradient(135deg, rgba(31, 156, 255, 0.18), rgba(255, 189, 107, 0.34));
}

:where(body.theme-playful, body:not(.theme-corporate)) .canvas {
  background: linear-gradient(90deg, rgba(36, 48, 64, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(36, 48, 64, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 156, 255, 0.1), rgba(255, 189, 107, 0.18));
  background-size:
    26px 26px,
    26px 26px,
    auto;
}

:where(body.theme-playful, body:not(.theme-corporate)) .bench {
  background: linear-gradient(135deg, #ffc173, #d88745);
  box-shadow: 0 10px 18px rgba(216, 135, 69, 0.18);
}

:where(body.theme-playful, body:not(.theme-corporate)) .blue-node {
  background: rgba(255, 255, 255, 0.76);
}

/* =========================================================
   Optional theme switch
   ========================================================= */

.theme-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switch label {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 32px;
}

.theme-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.theme-switch .slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--blue);
  cursor: pointer;
  transition: 0.3s;
}

.theme-switch .slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: 0.3s;
}

.theme-switch input:checked + .slider {
  background: var(--copper);
}

.theme-switch input:checked + .slider::before {
  transform: translateX(26px);
}

.theme-switch span {
  font-size: 12px;
  opacity: 0.8;
}

/* =========================================================
   Contact modal
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 24, 0.62);
  backdrop-filter: blur(8px);
}

.modal-backdrop.is-open {
  display: flex;
}

.contact-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  color: var(--text);
  background: var(--card-bg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.contact-modal h2,
.contact-modal .modal-intro {
  margin-top: 0;
}

.contact-modal h2 {
  margin-bottom: 10px;
}

.contact-modal .modal-intro {
  margin-bottom: 24px;
  opacity: 0.82;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: rgba(127, 127, 127, 0.12);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(127, 127, 127, 0.22);
  outline: none;
}

.contact-form,
.contact-form label {
  display: grid;
}

.contact-form {
  gap: 16px;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  gap: 7px;
  font-weight: 700;
}

.contact-form :is(input, textarea) {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

body.theme-corporate .contact-form :is(input, textarea) {
  background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form :is(input, textarea):focus {
  border-color: currentColor;
  outline: 3px solid rgba(174, 112, 61, 0.18);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 700;
}

.form-status.success {
  color: #1f7a45;
}

.form-status.error {
  color: #a33124;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   Terms and privacy pages
   ========================================================= */

.legal-page {
  padding: 4rem 0 5rem;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid rgba(80, 52, 28, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(64, 42, 22, 0.08);
}

body.theme-corporate .legal-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(22, 18, 16, 0.78);
}

.legal-card h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  line-height: 1.08;
}

.legal-updated {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 0.96rem;
  opacity: 0.78;
}

.legal-card h2 {
  margin-top: 2.1rem;
  margin-bottom: 0.7rem;
  line-height: 1.22;
}

.legal-card p {
  margin: 0.75rem 0;
  line-height: 1.68;
}

.legal-card ul {
  margin: 0.75rem 0 1rem 1.2rem;
  padding: 0;
}

.legal-card li {
  margin: 0.38rem 0;
  line-height: 1.55;
}

.legal-contact {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(180, 110, 48, 0.08);
}

.legal-footer {
  padding: 2rem 0;
  font-size: 0.95rem;
  opacity: 0.82;
}

.legal-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-footer a {
  margin-left: 1rem;
}

/* =========================================================
   Responsive adjustments
   ========================================================= */

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .cards,
  .mini-proof {
    grid-template-columns: 1fr;
  }

  .cta,
  .footer {
    display: block;
  }

  .cta .btn {
    margin-top: 22px;
  }

  .screen {
    min-height: auto;
  }

  .brand {
    letter-spacing: 0.1em;
  }
}

@media (max-width: 760px) {
  header .nav {
    gap: 1rem;
  }

  header nav {
    display: none;
  }

  .theme-switch {
    margin-left: auto;
  }

  .legal-footer .wrap {
    display: block;
  }

  .legal-footer a {
    display: inline-block;
    margin: 0.75rem 1rem 0 0;
  }
}

@media (max-width: 640px) {
  .modal-backdrop {
    align-items: flex-end;
    padding: 14px;
  }

  .contact-modal {
    max-height: 92vh;
    border-radius: 24px;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }
}
