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

:root {
    --navy:       #1a3560;
    --nav-bg:     #1e90c2;
    --nav-active: #0d6a9a;
    --footer-bg:  #0f2741;
    --text:       #222;
    --text-light: #555;
    --white:      #fff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: #fff; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER */
header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #ddd; }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

/* NAV */
nav { background: var(--nav-bg); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: stretch; padding: 0 24px; }
nav a { display: block; padding: 12px 20px; color: var(--white); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; transition: background 0.15s; }
nav a:hover { background: rgba(0,0,0,0.15); }

/* MAIN CONTENT */
main { flex: 1; }

.legal-content { max-width: 900px; margin: 0 auto; padding: 52px 24px 72px; }
.legal-content h1 { font-size: 30px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.legal-content .version { font-size: 13px; color: #888; margin-bottom: 28px; }
.legal-content p { font-size: 15px; line-height: 1.75; color: var(--text-light); margin-bottom: 14px; }
.legal-content p strong { color: var(--text); }
.legal-content h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 32px 0 10px; }
.legal-content h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 22px 0 8px; }
.legal-content h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 16px 0 6px; }
.legal-content ul { list-style: none; margin: 8px 0 14px 0; }
.legal-content ul li { padding: 4px 0 4px 18px; position: relative; font-size: 15px; line-height: 1.65; color: var(--text-light); }
.legal-content ul li::before { content: "–"; position: absolute; left: 0; color: #999; }
.legal-content ol { margin: 8px 0 14px 20px; }
.legal-content ol li { padding: 3px 0; font-size: 15px; line-height: 1.65; color: var(--text-light); }
.legal-content .toc { margin: 0 0 32px 20px; }
.legal-content .toc li { color: var(--navy); font-size: 15px; }
.legal-content .uppercase { text-transform: uppercase; font-size: 14px; font-weight: 600; }
.legal-content a { color: var(--nav-bg); text-decoration: underline; }
.legal-content hr { border: none; border-top: 1px solid #e0e0e0; margin: 32px 0; }
.legal-content .address-block { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-top: 8px; }

/* FOOTER */
footer { background: var(--footer-bg); color: #c8d8e8; padding: 48px 24px 0; }
.footer-cols { max-width: 1100px; margin: 0 auto; display: flex; gap: 40px; justify-content: space-around; flex-wrap: wrap; padding-bottom: 40px; }
.footer-col { min-width: 180px; }
.footer-col .icon-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-col .icon-label svg { width: 28px; height: 28px; color: #c8d8e8; }
.footer-col .icon-label span { font-size: 14px; font-weight: 600; color: #c8d8e8; }
.footer-col p { font-size: 14px; color: #8aa4bc; line-height: 1.6; }
.footer-col a { color: #8aa4bc; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e3d5a; max-width: 1100px; margin: 0 auto; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom .copy { font-size: 13px; color: #6a8aaa; }
.footer-bottom .links { display: flex; align-items: center; gap: 20px; }
.footer-bottom .links a { font-size: 13px; color: #6a8aaa; text-decoration: none; }
.footer-bottom .links a:hover { color: #fff; }
.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icons a { color: #6a8aaa; transition: color 0.15s; }
.social-icons a:hover { color: #fff; }
.social-icons svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .footer-cols { flex-direction: column; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .legal-content h1 { font-size: 24px; }
}
