/* Shared styles for CGU/Privacy Policy pages */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.78;
    color: #2d3748;
    background: #edf2f7;
    margin: 0;
    padding: 0;
}

/* ---- Branded header ---- */
.app-header {
    background: linear-gradient(135deg, var(--primary, #287BB2) 0%, var(--primary-dark, #1a5a87) 100%);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 22px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 14px rgba(0,0,0,0.28);
}

.app-header img {
    height: 54px;
    max-width: 190px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.22));
}

.app-header .header-text {
    flex: 1;
    min-width: 0;
}

.app-header .app-name {
    color: #fff !important;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 3px;
    letter-spacing: 0.15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header .doc-title {
    color: rgba(255,255,255,0.85) !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 520px) {
    .app-header {
        padding: 14px 16px;
        gap: 14px;
    }
    .app-header img {
        height: 40px;
    }
    .app-header .app-name {
        font-size: 15px;
    }
    .app-header .doc-title {
        font-size: 9.5px;
        letter-spacing: 1.2px;
    }
}

/* ---- Content wrapper ---- */
.content-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 44px 56px;
    min-height: calc(100vh - 110px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

@media (max-width: 640px) {
    .content-wrapper {
        padding: 24px 18px 40px;
    }
}

/* ---- Footer ---- */
.content-footer {
    background: var(--primary-dark, #1a5a87);
    color: rgba(255,255,255,0.68);
    text-align: center;
    padding: 20px 24px;
    font-size: 12.5px;
    letter-spacing: 0.3px;
}

.content-footer p { margin: 0; }

/* ---- Page title (H1) ---- */
h1.cgu-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary, #287BB2);
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-light, rgba(40,123,178,0.2));
    letter-spacing: -0.2px;
}

/* ---- Override legacy OpenOffice styles ---- */
HTML, BODY { margin: 0; padding: 0; }

P {
    margin-top: 0 !important;
    margin-bottom: 0.5em !important;
    line-height: 1.78 !important;
    color: #2d3748 !important;
    widows: auto !important;
    orphans: auto !important;
}

/* Collapse empty <BR>-only paragraphs */
P:empty,
P > BR:only-child {
    margin: 0 !important;
    line-height: 0.25 !important;
}

H2, H2.western, H2.cjk, H2.ctl {
    font-family: inherit !important;
    font-size: 17px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    color: var(--primary, #287BB2) !important;
    border-left: 4px solid var(--primary, #287BB2) !important;
    border-bottom: none !important;
    background: var(--primary-light, rgba(40,123,178,0.08)) !important;
    padding: 8px 14px !important;
    border-radius: 0 5px 5px 0 !important;
    margin-top: 38px !important;
    margin-bottom: 14px !important;
    widows: auto !important;
    orphans: auto !important;
}

H3, H3.western, H3.cjk, H3.ctl {
    font-family: inherit !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    color: var(--primary-dark, #1a5a87) !important;
    border-bottom: 1px solid var(--primary-light, rgba(40,123,178,0.25)) !important;
    padding-bottom: 5px !important;
    margin-top: 28px !important;
    margin-bottom: 10px !important;
    widows: auto !important;
    orphans: auto !important;
}

H4, H4.western, H4.cjk, H4.ctl {
    font-family: inherit !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-top: 22px !important;
    margin-bottom: 6px !important;
    widows: auto !important;
    orphans: auto !important;
}

H5, H5.western, H5.cjk, H5.ctl {
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    color: #606a78 !important;
    margin-top: 16px !important;
    margin-bottom: 4px !important;
    widows: auto !important;
    orphans: auto !important;
}

/* Red warning callout */
FONT[COLOR="#ff0000"],
font[color="#ff0000"] {
    color: #c0392b !important;
    background: #fff5f5;
    padding: 10px 14px;
    border-left: 3px solid #e53e3e;
    display: block;
    border-radius: 0 4px 4px 0;
    margin: 10px 0;
}

A:link { color: var(--primary, #287BB2); }
A:visited { color: var(--primary-dark, #1a5a87); }
