/* Shared styling for DocPat legal & contact pages */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sky: #0284c7;
  --sky2: #075985;
  --sky3: #0ea5e9;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(2, 132, 199, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f0f9ff;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  height: 32px;
  width: auto;
  display: block;
}

.back-link {
  color: var(--sky);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.page-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 44px;
}

h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 40px 0 12px;
  color: var(--text);
}

h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 8px;
}

p,
li {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

ul,
ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--text);
  font-weight: 700;
}

a {
  color: var(--sky);
}

.callout {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-left: 3px solid var(--sky);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
  box-shadow: 0 2px 18px rgba(14, 165, 233, 0.06);
}

.callout p {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(14, 165, 233, 0.06);
}

th,
td {
  text-align: left;
  font-size: 13px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.10);
  color: var(--muted);
  line-height: 1.6;
  vertical-align: top;
}

th {
  background: rgba(14, 165, 233, 0.07);
  color: var(--sky2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

footer {
  padding: 32px 60px;
  border-top: 1px solid rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  font-size: 12px;
  margin: 0;
}

.foot-links {
  display: flex;
  gap: 22px;
}

.foot-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--sky);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 2px 20px rgba(14, 165, 233, 0.06);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.contact-card:hover {
  border-color: rgba(14, 165, 233, 0.32);
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.contact-card .c-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-card .c-ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--sky);
  fill: none;
  stroke-width: 1.8;
}

.contact-card h3 {
  margin: 0 0 6px;
}

.contact-card p {
  font-size: 13px;
  margin: 0 0 10px;
}

.contact-card a.cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.contact-card a.cta:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  nav {
    padding: 14px 20px;
  }

  main {
    padding: 52px 18px 72px;
  }

  footer {
    padding: 26px 20px;
    justify-content: center;
    text-align: center;
  }

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

  th,
  td {
    font-size: 12px;
    padding: 10px;
  }
}