/* Page-level layouts. */

/* Give every card/box a slight drop shadow (theme-aware via --shadow-1).
   Elements with their own stronger/intentional shadow (svc-card hover, hero
   badge, modal, CTA) keep theirs because those rules come later and win. */
.svc-card,
.step-card,
.highlight,
.aside-card,
.expect-col,
.expect-zabulan,
.expect-client,
.related-card,
.detail-hero,
.legal-disclaimer,
.card {
  box-shadow: var(--shadow-1);
}

.hero { text-align: center; padding: 56px 0 72px; }
.hero h1 { font-size: 3rem; margin: 0 0 16px; }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; }

/* "What we do" (Services) section — extra breathing room above it. */
.services { padding: 72px 0 8px; }
.section-heading { text-align: center; font-size: 2rem; margin: 0 0 10px; }
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: var(--maxw-text);
  margin: 0 auto 44px;
  font-size: 1.05rem;
}

/* Each category: header + grid of item cards */
.category-stack { display: flex; flex-direction: column; gap: 56px; }
.category-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-700);
}
.service-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: linear-gradient(160deg, var(--role-grad-from), var(--role-grad-to));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.service-title { font-size: 1.5rem; margin: 0 0 4px; }
.service-blurb { color: var(--text-muted); margin: 0; font-size: 0.98rem; }

/* Grid of animated, linked item cards */
.svc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* --- The animated card --- */
.svc-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  padding: 2px;                 /* this gap is the border ring */
  text-decoration: none;
  color: var(--text);
  background: var(--gray-700);  /* static border color at rest */
  overflow: hidden;             /* clip the spinning disc to the rounded rect */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.svc-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  text-decoration: none;
}

/* Highlight that travels around the border on hover.
   A large conic-gradient disc spins (plain transform:rotate, which animates
   in every browser). It sits above the static border color but below the card
   surface, so only the 2px padding ring reveals the moving highlight. */
.svc-card::before {
  content: "";
  position: absolute;
  width: 200%;
  aspect-ratio: 1 / 1;
  left: 50%;
  top: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 215deg,
    var(--accent-cyan) 295deg,
    #ffffff 330deg,
    var(--accent-cyan) 345deg,
    transparent 360deg
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 0;
}
.svc-card:hover::before {
  opacity: 1;
  animation: svc-spin 2s linear infinite;
}

/* The card's actual surface — sits on top of the disc, leaving the ring. */
.svc-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--bg-elevated);
  padding: 20px 20px 18px;
  overflow: hidden;
}
/* Shimmer sweep across the surface on hover */
.svc-card-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
}
.svc-card:hover .svc-card-inner::after { animation: svc-shimmer 0.9s ease forwards; }

.svc-card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.svc-card-tagline { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.svc-card-more {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  opacity: 0.85;
}

/* Rotate the gradient disc a full turn, preserving the centering translate.
   Plain transform animation — works in every browser (no @property needed). */
@keyframes svc-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes svc-shimmer { to { left: 130%; } }

/* Reduced motion: keep the pop, drop the animations */
@media (prefers-reduced-motion: reduce) {
  .svc-card:hover::before { animation: none; }
  .svc-card:hover .svc-card-inner::after { animation: none; }
}

/* How it works */
.steps { padding: 64px 0 8px; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 760px) { .step-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(160deg, var(--role-grad-from), var(--role-grad-to));
}
.step-title { margin: 0 0 8px; font-size: 1.15rem; }
.step-text { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Why Zabulan highlights */
.highlights { padding: 56px 0 8px; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .highlight-grid { grid-template-columns: 1fr 1fr; } }
.highlight {
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
}
.highlight-value { font-size: 1.25rem; font-weight: 700; color: var(--accent-cyan); margin-bottom: 6px; }
.highlight-label { color: var(--text-muted); font-size: 0.9rem; }

/* Closing call-to-action band */
.cta-band {
  text-align: center;
  margin: 64px 0 8px;
  padding: 48px 28px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-modal));
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
}
.cta-band h2 { font-size: 1.9rem; margin: 0 0 10px; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 24px; }

/* === Service detail page === */
.breadcrumb { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 22px; }
.breadcrumb .sep { margin: 0 8px; color: var(--gray-500); }
.breadcrumb .crumb-current { color: var(--text-muted); }

/* --- Split hero --- */
.detail-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-700);
  /* background set per-category below */
}
@media (max-width: 760px) {
  .detail-hero { grid-template-columns: 1fr; padding: 28px 24px; text-align: left; }
  .detail-hero-panel { display: none; }
}
/* Subtle per-category accent in the hero glow so each area feels distinct. */
.detail-hero--websites    { --cat-accent: 58,115,170; }
.detail-hero--applications{ --cat-accent: 95,160,210; }
.detail-hero--marketing   { --cat-accent: 127,212,245; }
.detail-hero {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(var(--cat-accent, 58,115,170), 0.22), transparent 60%),
    linear-gradient(160deg, var(--bg-elevated), var(--bg-modal));
}
.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.detail-title { font-size: 2.5rem; line-height: 1.1; margin: 0 0 14px; }
.detail-tagline { color: var(--text-muted); font-size: 1.18rem; margin: 0 0 24px; max-width: 560px; }
.detail-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gray-600);
}
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); filter: none; text-decoration: none; }

/* Hero panel: glowing badge with the category icon */
.detail-hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.hero-glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,212,245,0.30), transparent 70%);
  filter: blur(8px);
}
.hero-badge {
  position: relative;
  width: 130px; height: 130px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(160deg, var(--role-grad-from), var(--role-grad-to));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* --- Body --- */
.detail-body { max-width: var(--maxw); margin: 44px auto 0; }
.detail-block { margin-bottom: 48px; }
.block-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  margin: 0 0 18px;
}
.heading-bar {
  width: 4px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--role-grad-from));
}
.detail-lead { max-width: var(--maxw-text); }
.lead-text { color: var(--text-muted); margin: 0; line-height: 1.8; font-size: 1.08rem; }

/* Split: process timeline + aside */
.detail-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 820px) { .detail-split { grid-template-columns: 1fr; } }

/* Numbered vertical timeline */
.process-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.process-timeline::before {
  content: "";
  position: absolute;
  left: 15px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--gray-700));
  opacity: 0.5;
}
.process-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 8px 0 18px 0;
}
.process-dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, var(--role-grad-from), var(--role-grad-to));
  border: 1px solid rgba(255,255,255,0.18);
}
.process-text { color: var(--text-muted); line-height: 1.6; padding-top: 5px; }

/* Aside card */
.detail-split-aside { position: sticky; top: 20px; }
@media (max-width: 820px) { .detail-split-aside { position: static; } }
.aside-card {
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.aside-title { margin: 0 0 14px; font-size: 1.1rem; }

/* Check lists */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-muted);
  line-height: 1.5;
}
.check-ico {
  flex: none;
  display: inline-flex;
  color: var(--success);
  margin-top: 2px;
}

/* Mutual expectations */
.expect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .expect-grid { grid-template-columns: 1fr; } }
.expect-col {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-700);
}
.expect-zabulan {
  background: linear-gradient(160deg, rgba(58,115,170,0.16), rgba(26,58,92,0.10));
  border-color: rgba(127,212,245,0.30);
}
.expect-client { background: var(--bg-elevated); }
.expect-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.expect-head h3 { margin: 0; font-size: 1.1rem; }
.expect-ico { display: inline-flex; color: var(--accent-cyan); }
.expect-client .expect-ico { color: var(--text-muted); }

/* CTA */
.detail-cta {
  margin: 8px auto 0;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--role-grad-from), var(--accent-cyan), var(--role-grad-to));
}
.detail-cta-inner {
  text-align: center;
  padding: 44px 28px;
  border-radius: calc(var(--radius-lg) - 3px);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-modal));
}
.detail-cta h2 { margin: 0 0 10px; font-size: 1.7rem; }
.detail-cta p { color: var(--text-muted); margin: 0 auto 22px; max-width: 460px; }

/* Related */
.detail-related { margin-top: 60px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  text-decoration: none;
}
.related-card-arrow { color: var(--accent-cyan); display: inline-flex; flex: none; }

/* --- Samples card (under the hero on the brochure page) --- */
.samples-card-wrap { max-width: var(--maxw); margin: 22px auto 0; }
.samples-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  box-shadow: var(--shadow-1);
}
.samples-card-text { text-align: left; }
.samples-card-title { margin: 0 0 4px; font-size: 1.25rem; }
.samples-card-sub { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.samples-card-link { display: inline-flex; align-items: center; gap: 8px; flex: none; }

/* --- Samples gallery grid --- */
.samples-section { margin-top: 8px; }
.samples-intro { color: var(--text-muted); margin: 0 0 22px; max-width: var(--maxw-text); line-height: 1.7; }
.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.sample-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.sample-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  text-decoration: none;
}
.sample-thumb {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--role-grad-from), var(--role-grad-to));
  border: 1px solid rgba(255,255,255,0.14);
}
.sample-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sample-name { font-weight: 700; font-size: 0.98rem; }
.sample-industry { color: var(--text-muted); font-size: 0.85rem; }
.sample-arrow { color: var(--accent-cyan); display: inline-flex; flex: none; }

/* Centered card (login, verify, error) */
.card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.card h2 { margin: 0 0 20px; }
.card-wide { max-width: 560px; }

.center-stack { text-align: center; padding: 48px 0; }
.center-stack h1 { font-size: 2.6rem; margin: 0 0 12px; }
.center-stack p { color: var(--text-muted); margin: 0 auto 28px; max-width: 480px; }

.muted { color: var(--text-muted); }
.mt { margin-top: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }

/* Dashboard */
.dash-header { margin-bottom: 28px; }
.dash-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gray-700);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-left: 10px;
}

/* === Admin console === */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 920px) {
  .admin-cols { grid-template-columns: 1fr 1fr; }
}
/* Admin cards stretch full width of their column, overriding the centered card. */
.admin-cols .card,
.admin-stack .card { max-width: none; margin: 0; }

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.stat-value { font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.stat-label { margin-top: 4px; font-weight: 600; }
.stat-sub { font-size: 0.85rem; margin-top: 2px; }

.admin-cols .card h2,
.admin-stack .card h2 { font-size: 1.2rem; margin: 0 0 16px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th {
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--gray-700);
}
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--gray-700);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table a { color: var(--accent-cyan); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gray-700);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}
.status-new      { color: var(--accent-cyan-ink); background: var(--accent-cyan); }
.status-read     { color: var(--text-muted); }
.status-archived { opacity: 0.6; }
.status-active     { color: var(--success); }
.status-suspended  { color: var(--danger); }
/* Project statuses */
.status-lead       { color: var(--accent-cyan-ink); background: var(--accent-cyan); }
.status-on_hold    { color: var(--text-muted); }
.status-completed  { color: var(--success); }
.status-cancelled  { opacity: 0.6; }

.pull-right { float: right; font-size: 0.85rem; font-weight: 500; }

.hint { font-size: 0.85rem; margin-top: -4px; }
.pii-unavailable { font-style: italic; color: var(--text-dim); font-size: 0.85rem; }

/* Developer skill grading */
.skill-grades { display: flex; flex-direction: column; gap: 6px; }
.skill-grade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 12px;
  background: var(--gray-700);
  border-radius: var(--radius);
  max-width: 420px;
}
.skill-name { font-size: 0.92rem; }
.stars { display: inline-flex; gap: 2px; }
.star {
  background: none;
  border: none;
  padding: 0 1px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dim);
}
.star:hover { color: var(--accent-cyan); }
.star.on { color: var(--accent-cyan); }

/* Full-width admin card (list/detail pages), overriding the centered card. */
.admin-full { max-width: none; margin: 0; }

.btn-danger { background: var(--danger); color: #fff; }

/* Key/value detail rows */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; }
.kv-row { display: flex; gap: 8px; }
.kv-label { min-width: 96px; flex: none; }

/* Skill / need chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  background: var(--gray-700);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.85rem;
}
.chip-count { color: var(--accent-cyan); font-weight: 600; margin-left: 2px; }

.plain-list { list-style: none; padding: 0; margin: 8px 0 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--gray-700); }
.plain-list li:last-child { border-bottom: none; }

/* Project form: developer + skill pickers */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-700);
}
.check-row:last-child { border-bottom: none; }
.input-inline { width: auto; flex: 1; padding: 6px 10px; }
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-700);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Client dashboard project cards */
.project-cards { display: grid; gap: 18px; }
@media (min-width: 760px) { .project-cards { grid-template-columns: 1fr 1fr; } }
.project-card { max-width: none; margin: 0; }
.project-card h2 { font-size: 1.25rem; margin: 0; }

/* Client project form: category tabs + service picker */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.cat-tabs .btn.is-active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.service-picker { margin-bottom: 6px; }

/* === Contact page === */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-head { text-align: center; margin-bottom: 28px; }
.contact-head h1 { font-size: 2.3rem; margin: 0 0 10px; }
.contact-head p { max-width: 560px; margin: 0 auto; }
.contact-card { max-width: 720px; }
.contact-card .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .contact-card .field-grid { grid-template-columns: 1fr; } }
.contact-card .field.span2 { grid-column: 1 / -1; }
.contact-card .btn-primary { margin-top: 8px; }

/* === Legal pages (Privacy / Terms / Security) === */
.legal { max-width: var(--maxw-text); margin: 0 auto; }
.legal-head { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--gray-700); }
.legal-head h1 { font-size: 2.3rem; margin: 0 0 8px; }
.legal-updated { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.legal-intro { color: var(--text-muted); line-height: 1.75; font-size: 1.05rem; }
.legal-block { margin: 28px 0; }
.legal-block h2 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  scroll-margin-top: 90px;
}
.legal-block p { color: var(--text-muted); line-height: 1.75; margin: 0 0 12px; }
.legal-list { margin: 0 0 12px; padding: 0; list-style: none; }
.legal-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-list li::before {
  content: "›";
  position: absolute; left: 6px;
  color: var(--accent-cyan); font-weight: 700;
}
.legal-disclaimer {
  margin-top: 36px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--gray-700);
  color: var(--text-muted);
  font-size: 0.92rem;
}
