/* Northgrid digital business card
   Static, responsive, no framework, no external fonts. */

:root {
  --page-bg: #f3f3f1;
  --card-bg: #ffffff;
  --text: #111111;
  --muted: #6f6f6f;
  --line: #e8e8e5;
  --soft: #f8f8f6;
  --button: #141414;
  --button-hover: #242424;
  --shadow: 0 24px 70px rgba(20, 20, 20, 0.09);
  --radius: 34px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, #ffffff 0%, rgba(255,255,255,.7) 26%, transparent 54%),
    var(--page-bg);
}

a {
  color: inherit;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
}

.business-card {
  width: min(100%, 720px);
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 64px);
}

.logo-area {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(34px, 6vw, 58px);
}

.logo {
  display: block;
  width: min(100%, 260px);
  max-height: 84px;
  object-fit: contain;
}

.identity {
  text-align: center;
  margin-bottom: 34px;
}

.identity h1 {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 740;
}

.identity p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.35;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  text-decoration: none;
  background: var(--soft);
  border: 1px solid #efefec;
  border-radius: 22px;
  overflow: hidden;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.contact-item:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #deded9;
}

.icon-box {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid #ecece8;
  background: rgba(255,255,255,.72);
}

.icon-box svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-copy {
  min-width: 0;
  padding: 0 22px;
  font-size: clamp(17px, 2.6vw, 21px);
  font-weight: 520;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.save-contact {
  min-height: 72px;
  margin-top: 20px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 16px 24px;
  background: var(--button);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(18px, 2.7vw, 22px);
  font-weight: 650;
  transition: background-color .18s ease, transform .18s ease;
}

.save-contact:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.save-contact svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-links {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.legal-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7a7a78;
  text-decoration: none;
  border-radius: 14px;
  font-size: 15px;
  transition: color .18s ease, background-color .18s ease;
}

.legal-links a:hover {
  color: var(--text);
  background: var(--soft);
}

.legal-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablets / small laptops */
@media (max-width: 820px) {
  .page {
    align-items: start;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .business-card {
    width: min(100%, 650px);
    border-radius: 28px;
  }
}

/* Phones */
@media (max-width: 560px) {
  body {
    background: #ffffff;
  }

  .page {
    display: block;
    min-height: 100svh;
    padding: 0;
  }

  .business-card {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 34px 20px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .logo-area {
    margin-bottom: 32px;
  }

  .logo {
    width: min(100%, 210px);
    max-height: 68px;
  }

  .identity {
    margin-bottom: 28px;
  }

  .identity h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .identity p {
    margin-top: 10px;
    font-size: 17px;
  }

  .contact-item {
    min-height: 68px;
    grid-template-columns: 54px minmax(0, 1fr);
    border-radius: 19px;
  }

  .icon-box svg {
    width: 23px;
    height: 23px;
  }

  .contact-copy {
    padding: 0 16px;
    font-size: 16px;
  }

  .save-contact {
    min-height: 66px;
    border-radius: 19px;
    font-size: 18px;
  }

  .legal-links {
    margin-top: 32px;
    padding-top: 22px;
    gap: 6px;
  }

  .legal-links a {
    font-size: 14px;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .business-card {
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact-copy {
    font-size: 14.5px;
  }

  .legal-links {
    grid-template-columns: 1fr;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.legal-page {
  min-height: 100svh;
  padding: clamp(20px, 4vw, 52px);
}

.legal-shell {
  width: min(100%, 900px);
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.legal-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(20,20,20,.06);
  padding: clamp(28px, 5vw, 52px);
}

.legal-panel h1 {
  margin: 0 0 30px;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -.04em;
}

.legal-panel h2 {
  margin: 32px 0 10px;
  font-size: 20px;
}

.legal-panel p,
.legal-panel li {
  color: #4d4d4b;
  line-height: 1.75;
}

.legal-panel a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .legal-page {
    padding: 18px 14px 34px;
    background: #fff;
  }

  .legal-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 4px;
  }
}
