/* Image AI — legal & support pages theme
   Palette grounded in the app's design tokens:
   teal accent (oklch 55% .105 185) · warm orange CTA (oklch 66% .170 50) */

:root {
    --bg:          #eef4f4;
    --card:        #ffffff;
    --ink:         #16292b;
    --ink-soft:    #3a4d4f;
    --muted:       #6b7c7d;
    --line:        #e6edec;
    --line-strong: #d3dedd;
    --teal:        #0e8a8d;
    --teal-deep:   #0b6f78;
    --teal-tint:   #e4f3f2;
    --orange:      #ea8a3e;
    --orange-deep: #cf6f22;

    --radius:  16px;
    --radius-sm: 10px;
    --shadow:  0 1px 2px rgba(16, 40, 42, .05), 0 20px 48px -22px rgba(16, 40, 42, .24);
    --shadow-sm: 0 1px 2px rgba(16, 40, 42, .06), 0 8px 20px -12px rgba(16, 40, 42, .18);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:          #0d1414;
        --card:        #15201f;
        --ink:         #e9f1f0;
        --ink-soft:    #bccac9;
        --muted:       #869594;
        --line:        #233230;
        --line-strong: #2f403d;
        --teal:        #45bcbc;
        --teal-deep:   #6fd0cf;
        --teal-tint:   rgba(69, 188, 188, .12);
        --orange:      #f0a25f;
        --orange-deep: #f4b177;
        --shadow:  0 1px 2px rgba(0, 0, 0, .4), 0 20px 48px -22px rgba(0, 0, 0, .6);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -12px rgba(0, 0, 0, .5);
    }
}

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

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

body {
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */

.site-header {
    background: linear-gradient(135deg, #12959a 0%, var(--teal-deep) 55%, #0a5f6a 100%);
    color: #fff;
    padding: 40px 20px 44px;
    text-align: center;
}

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

.brand-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    text-shadow: 0 1px 12px rgba(255, 255, 255, .25);
}

.brand-tagline {
    margin-top: 12px;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}

/* ---------- Card container ---------- */

.container {
    max-width: 760px;
    margin: -24px auto 0;
    padding: 40px clamp(20px, 5vw, 48px) 44px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

/* ---------- Typography ---------- */

h1 {
    font-size: 1.7rem;
    line-height: 1.25;
    text-align: center;
    color: var(--ink);
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

h2 {
    font-size: 1.28rem;
    line-height: 1.4;
    color: var(--ink);
    padding: 26px 0 10px;
}

h2 b { font-weight: 700; }

h3 {
    font-size: 1.12rem;
    color: var(--teal-deep);
    padding: 20px 0 8px;
}

h4 { font-size: 1.05rem; color: var(--ink); padding: 16px 0 6px; }

h5 {
    font-size: 1rem;
    color: var(--ink);
    padding: 16px 0 6px;
    font-weight: 600;
}

h6 { font-size: .95rem; color: var(--ink-soft); padding: 12px 0 4px; }

p, div {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

/* the card is a div too — keep its own layout rules intact */
.container.container { margin-bottom: 0; }

b { color: var(--ink); font-weight: 700; }

u {
    text-decoration: none;
    display: inline;
    background: linear-gradient(transparent 62%, var(--teal-tint) 62%);
    padding: 0 1px;
}

u b { color: var(--teal-deep); }

a {
    color: var(--teal);
    text-decoration: none;
    word-break: break-word;
}

a:hover { color: var(--teal-deep); text-decoration: underline; }

/* ---------- Meta line (dates) ---------- */

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: center;
    margin: -14px 0 26px;
}

.doc-meta span {
    font-size: 13px;
    color: var(--muted);
    background: var(--teal-tint);
    border-radius: 999px;
    padding: 4px 12px;
}

/* ---------- Contact chip (email) ---------- */

.mail-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff !important;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.mail-chip:hover { background: var(--orange-deep); color: #fff !important; text-decoration: none; }

.mail-chip svg { width: 18px; height: 18px; }

/* ---------- Table (privacy: third-party SDK) ---------- */

table {
    border-collapse: collapse;
    width: 100% !important;
    margin: 8px 0 20px;
    font-size: .92rem;
    table-layout: fixed !important;
    word-break: break-all;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

tr { border: none; }

th, td {
    padding: 12px 14px !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--ink-soft);
    vertical-align: top;
}

table tr:first-child td {
    background: var(--teal-tint);
    color: var(--ink);
    font-weight: 600;
}

td div { margin-bottom: 4px; color: inherit; }

/* ---------- Footer ---------- */

.site-footer {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 24px 20px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.site-footer a { color: var(--teal); }

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
    body { font-size: 15px; }
    .site-header { padding: 32px 16px 40px; }
    .brand-name { font-size: 22px; }
    .container { padding: 30px 18px 34px; border-radius: 14px; }
    h1 { font-size: 1.45rem; }
}
