/* IVG LegalHub - Minimalist Corporate Design */
:root {
  --navy: #101E35;
  --navy-light: #1A2F52;
  --gold: #C9A66B;
  --gold-dark: #9E7B42;
  --creme: #F6F2E9;
  --white: #FFFFFF;
  --text: #101E35;
  --text-muted: #4A5568;
  --border: #DFD8C8;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--creme);
  color: var(--text);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover, a:focus {
  color: var(--gold-dark);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--creme);
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

header {
  background-color: var(--navy);
  color: var(--creme);
  border-bottom: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
}

.header-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--creme);
  display: flex;
  flex-direction: column;
}

.brand:hover, .brand:focus {
  color: var(--gold);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--creme);
  opacity: 0.9;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--creme);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
}

nav a:hover, nav a:focus, nav a[aria-current="page"] {
  background-color: var(--navy-light);
  color: var(--gold);
}

main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(16, 30, 53, 0.04);
}

h1 {
  color: var(--navy);
  font-size: 1.85rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.badge {
  display: inline-block;
  background-color: var(--creme);
  color: var(--navy);
  border: 1px solid var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.tile {
  display: block;
  background-color: var(--creme);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tile:hover, .tile:focus {
  transform: translateY(-2px);
  border-left-color: var(--navy);
  color: var(--navy);
}

.tile-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: block;
}

.tile-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
}

.source-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer {
  background-color: var(--navy);
  color: var(--creme);
  padding: 1.5rem;
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover, footer a:focus {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .card {
    padding: 1.35rem;
  }
  h1 {
    font-size: 1.5rem;
  }
}
