@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

html, body {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px; /* increased side padding so logo isn't flush with edge */
    min-height: 100vh; /* ensure container fills viewport */
    display: flex;
    flex-direction: column;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 28px;
    border-radius: 8px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.nav-links {
    display: flex;
    gap: 14px;
}

.nav-button {
    padding: 8px 14px;
    background: #f8f9fa;
    color: #1f4fb3;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.15s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-button:hover {
    background: #1f4fb3;
    color: white;
}

.nav-button.active {
    background: #0b254b;
    color: white;
}

/* Simple nav variant (used by Terms page) */
.nav-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.nav-simple .logo {
    font-size: 20px;
    font-weight: 700;
    color: #0f1724;
}

.nav-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-action {
    color: #1f4fb3;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-action:hover {
    text-decoration: underline;
}

.nav-action.active {
    color: #0b254b;
    font-weight: 700;
}

/* Centered site logo placed above the nav */
.site-logo {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 8px;
}

.site-logo img {
    max-height: 64px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .site-logo img { max-height: 48px; }
}

.content {
    background: #fff;
    padding: 36px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* allow main content to expand so footer stays at bottom */
.content { flex: 1 0 auto; }

h1 {
    color: #000000;
    margin-bottom: 18px;
    font-size: 2em;
}

h2 {
    color: #000000;
    margin-top: 26px;
    margin-bottom: 14px;
    font-size: 1.25em;
}

.subtitle {
    font-size: 1.05em;
    color: #3a3a3a;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 22px 0;
}

.feature {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #061121;
}

.feature h3 {
    color: #1f4fb3;
    margin-bottom: 10px;
}

.cta {
    text-align: center;
    margin-top: 38px;
    padding: 28px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    border: 2px solid #000;
}

.cta h2 {
    color: #fff;
    margin-top: 0;
    font-family: 'Georgia', serif;
}

.privacy-section {
    margin-bottom: 18px;
}

footer {
    text-align: center;
    margin-top: 28px;
    padding: 18px;
    color: #666;
    font-size: 0.92em;
}

@media (max-width: 600px) {
    .container { padding: 12px; }
    nav { flex-direction: column; gap: 12px; text-align: center; }
    .content { padding: 18px; }
    h1 { font-size: 1.6em; }
}

/* Header grid: brand left, nav centered, optional right slot */
.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0 10px 0;
    padding-left: 20px; /* extra spacing so logo isn't flush to the very edge */
    padding-right: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo { max-height: 40px; width: auto; display: block; }
.brand-text { font-size: 20px; font-weight: 700; color: #0f1724; }

/* Center the nav actions inside the middle column */
.header-grid .nav-actions { justify-self: center; }

@media (max-width: 600px) {
    .brand-logo { max-height: 32px; }
    .header-grid { grid-template-columns: 1fr; grid-auto-rows: auto; justify-items: center; }
    .header-grid .nav-actions { justify-self: center; }
}
