/* Cielle AI marketing site — shared styles
   Brand palette mirrors the admin UI light theme. */

html {
    height: 100%;
}

:root {
    --background: #eff5f9;
    --foreground: #0d3042;
    --card: #ffffff;
    --primary: #194d6c;
    --primary-foreground: #ffffff;
    --accent: #2bafd8;
    --muted: #dfe8ef;
    --muted-foreground: #397ea2;
    --border: #c5d5e0;
    --max-width: 760px;
    --radius: 0.5rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover,
a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    border-bottom: none;
}

.site-header__brand:hover,
.site-header__brand:focus-visible {
    border-bottom: none;
}

.site-header__brand img {
    height: 28px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.site-nav a {
    font-size: 0.95rem;
    color: var(--foreground);
    border-bottom: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--primary);
    border-bottom: none;
}

.site-nav a[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

/* ── Main content ───────────────────────────────────────────────────── */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.legal h1,
.landing h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

.legal h2 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 2.5rem 0 0.75rem;
    color: var(--primary);
    letter-spacing: -0.005em;
}

.legal h3 {
    font-size: 1.05rem;
    margin: 1.75rem 0 0.5rem;
    color: var(--foreground);
}

.legal p,
.legal li {
    color: var(--foreground);
}

.legal ul,
.legal ol {
    padding-left: 1.5rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
}

.legal th,
.legal td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.legal th {
    background: var(--muted);
    color: var(--foreground);
    font-weight: 600;
}

.effective-date {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

/* ── Landing page ───────────────────────────────────────────────────── */
.landing {
    text-align: center;
    padding-top: 4rem;
}

.landing__logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.landing__tagline {
    font-size: 1.15rem;
    color: var(--muted-foreground);
    margin: 0.75rem auto 2.5rem;
    max-width: 520px;
}

.landing__links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.landing__links a {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--primary);
    font-weight: 500;
}

.landing__links a:hover,
.landing__links a:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.landing__contact {
    margin-top: 2.5rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--card);
    padding: 1.5rem;
    margin-top: auto;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .site-header {
        padding: 0.875rem 1rem;
    }

    .site-header__inner {
        gap: 0.75rem;
    }

    .site-nav {
        gap: 1rem;
    }

    main {
        padding: 2rem 1.125rem 3rem;
    }

    .legal h1,
    .landing h1 {
        font-size: 1.6rem;
    }

    .legal h2 {
        font-size: 1.15rem;
        margin-top: 2rem;
    }

    .landing {
        padding-top: 2rem;
    }

    .landing__logo {
        max-width: 280px;
    }
}
