:root {
  --primary: #1f4e5f;
  --accent: #c28f5c;
  --bg: #f7f5f1;
  --bg-soft: #efe9df;
  --surface: #fffdf9;
  --text: #1f2933;
  --muted: #5a6772;
  --border: rgba(31, 78, 95, 0.14);
  --shadow: 0 20px 60px rgba(31, 41, 51, 0.08);
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 240px);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

h1,
h2,
.navbar-brand {
  letter-spacing: 0.02em;
}

p,
li,
.nav-link,
.hero-subtitle,
.hero-summary,
.eyebrow,
.footer {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

a:hover {
  color: #173a47;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(194, 143, 92, 0.2), 0 0 0 0.35rem rgba(31, 78, 95, 0.18);
}

.site-nav {
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.navbar-brand {
  color: var(--primary);
  font-weight: 600;
}

.navbar-brand:hover,
.navbar-brand:focus,
.nav-link:hover,
.nav-link:focus {
  color: #173a47;
}

.nav-link {
  color: var(--muted);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.language-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.language-link:hover,
.language-link:focus {
  color: #173a47;
}

.language-link.active {
  color: var(--primary);
  border-color: var(--border);
  background: rgba(255, 253, 249, 0.8);
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831,78,95,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

main {
  padding: 0.35rem 0 4rem;
}

.hero-section {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0.5rem 0 2rem;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-section h1 {
  color: var(--primary);
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin-bottom: 0.85rem;
}

.hero-subtitle {
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin-bottom: 1.25rem;
}

.hero-summary {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 55rem;
  margin-bottom: 2rem;
}

.skill-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-band span {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: var(--shadow);
  color: var(--primary);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.legal-page {
  padding: 1rem 0 2rem;
}

.legal-header {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.legal-header h1 {
  color: var(--primary);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.9rem;
}

.legal-intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.content-card-wide {
  grid-column: span 12;
}

.content-card h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.content-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.focus-grid section {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(239, 233, 223, 0.38);
}

.focus-grid h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.focus-grid p {
  margin: 0;
}

.legal-address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.8;
}

.legal-meta {
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.92rem;
  margin: 1.25rem 0 0;
}

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 0.75rem;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 1rem 0 2rem;
}

@media (max-width: 767.98px) {
  main {
    padding-top: 0.25rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 0.35rem;
  }

  .content-card,
  .content-card-wide {
    grid-column: span 12;
  }

  .language-switch {
    margin: 0.75rem 0 0;
  }

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

  .legal-grid {
    grid-column: span 12;
  }
}
