:root {
  color-scheme: dark;
  font-family:
    Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --background: #020304;
  --surface: #18181b;
  --foreground: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(16, 185, 129, 0.54);
  --primary: #10b981;
  --primary-strong: #05a874;
  --accent: #6366f1;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--foreground);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(16, 185, 129, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), transparent 23%),
    var(--background);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 55%);
}

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

.site-shell {
  min-height: 100vh;
  margin-inline: 2rem;
}

.site-header,
.legal-page,
.site-footer {
  width: min(100%, 960px);
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark,
.footer-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--foreground);
  mask: url("/assets/eastern-shore-it-logo.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/eastern-shore-it-logo.svg") center / contain no-repeat;
}

.brand-copy,
.footer-brand span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.brand-note,
.footer-brand small {
  color: var(--dim);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  display: inline-flex;
  justify-content: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a,
.ghost-link,
.header-cta,
.footer-links a,
.legal-section a {
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.nav-links a:hover,
.ghost-link:hover,
.footer-links a:hover,
.legal-section a:hover {
  color: var(--foreground);
}

.header-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
}

.ghost-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.05rem;
  border-radius: var(--radius);
  color: #042319;
  background: var(--primary);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
}

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

.legal-hero {
  max-width: 780px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  color: rgba(244, 244, 245, 0.86);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

h1 {
  margin: 1.1rem 0 0;
  color: var(--foreground);
  font-size: 4.9rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.92;
}

.legal-hero p {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.6;
}

.legal-date {
  display: block;
  margin-top: 1.1rem;
  color: var(--dim);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-content {
  display: grid;
  margin-top: 2.8rem;
  border-top: 1px solid var(--border);
}

.legal-section {
  padding: 1.65rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.12;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.62;
}

.legal-section p {
  margin: 0.9rem 0 0;
}

.legal-section ul {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.legal-section strong {
  color: var(--foreground);
  font-weight: 850;
}

.legal-section a {
  color: #d4d4ff;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0 5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-brand {
  color: var(--foreground);
  font-weight: 850;
}

.footer-mark {
  width: 1.8rem;
  height: 1.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.4rem;
}

@media (max-width: 760px) {
  .site-shell {
    margin-inline: 1rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .header-actions .ghost-link {
    display: none;
  }

  h1 {
    font-size: 3.45rem;
  }

  .legal-page {
    padding-top: 2.6rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-note,
  .header-actions {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  .legal-section {
    padding: 1.35rem 0 1.45rem;
  }
}
