/* FindInk Legal Pages — shared stylesheet
   Tokens from tailwind.config.js: findink-green #108e8b, ink-950 #050507 */

:root {
  --brand: #108e8b;
  --brand-dark: #0a6e6c;
  --bg: #050507;
  --surface: #0c0c11;
  --text: #e5e5e5;
  --text-muted: #9ea0a8;
  --border: #1a1b20;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Main content */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--brand);
  line-height: 1.3;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

h1 {
  font-size: 1.9rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
p {
  margin: 0 0 1rem;
}

/* Links */
a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-dark); }

/* Lists */
ol, ul {
  padding-left: 1.6rem;
  margin: 0 0 1rem;
}
li { margin-bottom: 0.4rem; }
li p { margin: 0 0 0.25rem; }

/* Nested lists */
ol ol, ol ul, ul ol, ul ul {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

/* Definitions */
dl { margin: 0 0 1rem; }
dt { font-weight: 700; margin-top: 0.8rem; }
dd { margin-left: 1.5rem; margin-bottom: 0.5rem; }

/* Blockquote / callout */
blockquote {
  border-left: 3px solid var(--brand);
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  background: var(--surface);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
th {
  background: var(--surface);
  color: var(--brand);
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--border);
}
td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 3rem;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--brand);
  padding: 0.55rem 1.2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.back-link:hover {
  background: var(--brand);
  color: #fff;
}
.back-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  .back-link { border-color: #000; color: #000; }
  h1, h2, h3, h4 { color: #000; }
}

/* Mobile */
@media (max-width: 600px) {
  main { padding: 2rem 1rem 3rem; }
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  table { font-size: 0.85rem; }
}
