/* ETV1gene.com legal pages — shared styles */
:root {
  --bg: #0a192f;
  --bg-elevated: #112240;
  --bg-table: #0d2137;
  --text: #e6f1ff;
  --text-secondary: #a8b2d1;
  --text-muted: #8892b0;
  --accent-teal: #14b8a6;
  --accent-coral: #f43f5e;
  --border: rgba(136, 146, 176, 0.25);
  --link: #64ffda;
  --link-hover: #14b8a6;
  --max-width: 46rem;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 25, 47, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.site-header-inner {
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent-teal);
}

.brand span {
  color: var(--accent-coral);
  font-weight: 700;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a[aria-current="page"] {
  color: var(--accent-teal);
}

.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.short-note {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-coral);
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.short-note strong {
  color: var(--text);
}

.meta-line {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent-teal);
}

p,
ul,
ol {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--accent-teal);
}

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

div.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

td {
  background: var(--bg-table);
  color: var(--text-secondary);
}

.legal-caps {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #071222;
  padding: 1.5rem 1.25rem 2rem;
  margin-top: auto;
}

.site-footer-inner {
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent-teal);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding: 1.5rem 1rem 2.5rem;
  }

  th,
  td {
    padding: 0.5rem;
  }
}
