/* Shared stylesheet for the TrakkerAI legal site. Plain typography, single
   brand accent, no JS, no framework. Tuned for WCAG AA contrast in both
   light and dark mode. */

:root {
    /* Brand */
    --navy-900: #0A2540;
    --navy-700: #1E3A6D;
    --accent:   #60A5FA;

    /* Surface */
    --bg:       #FFFFFF;
    --bg-soft:  #F3F4F6;
    --line:     #E5E7EB;

    /* Text */
    --text:     #111827;   /* near-black for body */
    --muted:    #4B5563;   /* gray-600, still ~7:1 on white */

    /* Links — saturated blue, clearly distinguishable from body text. */
    --link:        #1D4ED8;   /* blue-700, ~8.6:1 on #FFF */
    --link-hover:  #1E40AF;   /* blue-800, slightly darker on hover */
    --link-visited:#6D28D9;   /* violet-700 */
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:      #0B1020;
        --bg-soft: #111827;
        --line:    #1F2A3D;
        --text:    #F3F4F6;
        --muted:   #B7BDC9;

        --link:        #93C5FD;   /* blue-300, ~9:1 on #0B1020 */
        --link-hover:  #BFDBFE;   /* blue-200 */
        --link-visited:#C4B5FD;   /* violet-300 */
    }
}

* { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

header.site-header {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff;
    padding: 48px 24px 40px;
}

header.site-header .wrap {
    max-width: 720px;
    margin: 0 auto;
}

header.site-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    color: #fff;
}

header.site-header .tagline {
    margin-top: 8px;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #fff;
}

nav.lang-switch {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

nav.lang-switch a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 120ms ease;
}

nav.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.26);
}

nav.lang-switch a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy-900);
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

main h2 {
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--navy-700);
    font-weight: 700;
}

main h3 {
    font-size: 1.05rem;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--navy-700);
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    main h2, main h3 {
        color: #BFDBFE;
    }
}

main p {
    margin: 12px 0;
}

main ul {
    margin: 12px 0;
    padding-left: 22px;
}

main li {
    margin: 6px 0;
}

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

/* Links: high-contrast saturated blue, distinguishable from body text both
   by hue and by underline. Underline lives below the baseline so the
   descenders don't collide. */
main a,
footer.site-footer a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: color-mix(in srgb, var(--link) 50%, transparent);
    transition: color 120ms ease, text-decoration-color 120ms ease;
}

main a:hover,
footer.site-footer a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

main a:visited {
    color: var(--link-visited);
}

main a:focus-visible,
footer.site-footer a:focus-visible,
nav.lang-switch a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.updated {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.intro {
    font-size: 1.05rem;
    color: var(--text);
}

.divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.94rem;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    color: var(--text);
}

th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--navy-700);
}

@media (prefers-color-scheme: dark) {
    th { color: #BFDBFE; }
}

footer.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
