/*
 * Color Formula Vault — public (logged-out) content pages: privacy policy, terms,
 * contact support, about. These are the URLs the mobile app's Settings screen opens
 * in a web view, so they carry no admin chrome and load no Metronic bundle: this
 * file is the whole stylesheet.
 *
 * Palette is the same one the admin panel uses (public/css/cfv-theme.css) so the
 * pages read as the same product.
 */

:root {
    --cfv-deep-purple: #2d1b4e;
    --cfv-mid-purple: #534ab7;
    --cfv-accent: #7f77dd;
    --cfv-lavender: #eeedfe;
    --cfv-indigo: #3c3489;

    --cfv-ink: #1c1830;
    --cfv-body: #4a4763;
    --cfv-muted: #6f6c86;
    --cfv-border: #e6e4f2;
    --cfv-surface: #ffffff;
    --cfv-canvas: #f6f5fb;

    --cfv-radius: 18px;
    --cfv-shadow: 0 24px 60px -30px rgba(45, 27, 78, 0.45);
    --cfv-max-width: 1080px;
}

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

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

body {
    margin: 0;
    background-color: var(--cfv-canvas);
    color: var(--cfv-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--cfv-mid-purple);
    text-decoration: none;
}

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

.cms-container {
    width: 100%;
    max-width: var(--cfv-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Top bar ─────────────────────────────────────────────────── */

.cms-topbar {
    background-color: var(--cfv-deep-purple);
    padding: 14px 0;
}

.cms-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cms-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.cms-brand:hover {
    color: #fff;
    text-decoration: none;
}

.cms-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #fff;
    padding: 5px;
    flex-shrink: 0;
}

.cms-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    /* Without this the nav's min-content width props the flex row open and the whole
       page scrolls sideways on a phone. */
    min-width: 0;
}

.cms-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cms-nav a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.cms-nav a.is-active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
}

/* ── Page header band ────────────────────────────────────────── */

.cms-hero {
    background: linear-gradient(160deg, var(--cfv-deep-purple) 0%, #4a2d7a 55%, #6f42d6 100%);
    padding: 56px 0 96px;
    text-align: center;
    color: #fff;
}

.cms-hero__title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.cms-hero__subtitle {
    margin: 14px auto 0;
    max-width: 640px;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.82);
}

/* ── Content card ────────────────────────────────────────────── */

.cms-main {
    flex: 1 0 auto;
    padding-bottom: 72px;
}

.cms-card {
    margin-top: -56px;
    background-color: var(--cfv-surface);
    border-radius: var(--cfv-radius);
    box-shadow: var(--cfv-shadow);
    padding: 48px 56px 56px;
}

.cms-updated {
    display: inline-block;
    margin-bottom: 28px;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: var(--cfv-lavender);
    color: var(--cfv-indigo);
    font-size: 0.82rem;
    font-weight: 600;
}

.cms-content > *:first-child {
    margin-top: 0;
}

.cms-content h2 {
    margin: 40px 0 14px;
    color: var(--cfv-ink);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 16px;
    border-left: 5px solid var(--cfv-accent);
}

.cms-content h3 {
    margin: 28px 0 10px;
    color: var(--cfv-ink);
    font-size: 1.12rem;
    font-weight: 700;
}

.cms-content p {
    margin: 0 0 16px;
}

.cms-content ul,
.cms-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.cms-content li {
    margin-bottom: 8px;
}

.cms-content strong {
    color: var(--cfv-ink);
    font-weight: 600;
}

.cms-content hr {
    margin: 36px 0;
    border: 0;
    border-top: 1px solid var(--cfv-border);
}

.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
}

.cms-content th,
.cms-content td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--cfv-border);
    vertical-align: top;
}

.cms-content th {
    background-color: var(--cfv-lavender);
    color: var(--cfv-indigo);
    font-weight: 600;
}

.cms-table-wrap {
    overflow-x: auto;
}

/* Callout used for "how to reach us" / delete-account style blocks. */
.cms-callout {
    margin: 28px 0;
    padding: 22px 26px;
    border-radius: 14px;
    background-color: var(--cfv-lavender);
    border: 1px solid #ddd9f6;
}

.cms-callout h3 {
    margin-top: 0;
}

.cms-callout > *:last-child {
    margin-bottom: 0;
}

/* Contact page tiles. */
.cms-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 0 0 32px;
}

.cms-tile {
    padding: 24px;
    border: 1px solid var(--cfv-border);
    border-radius: 14px;
    background-color: #fdfdff;
}

.cms-tile h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.cms-tile p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--cfv-muted);
}

.cms-tile a {
    font-weight: 600;
    word-break: break-word;
}

/* ── Footer ──────────────────────────────────────────────────── */

.cms-footer {
    flex-shrink: 0;
    background-color: #17131f;
    color: rgba(255, 255, 255, 0.6);
    border-top: 6px solid var(--cfv-mid-purple);
}

.cms-footer__inner {
    padding: 26px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.cms-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    flex-wrap: wrap;
}

.cms-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.cms-footer__links a:hover {
    color: #fff;
    text-decoration: none;
}

.cms-footer__copyright {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .cms-container {
        padding: 0 16px;
    }

    .cms-topbar__inner {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .cms-nav {
        /* Stacked under the logo, the nav is a cross-axis-centred flex item, which
           sizes it to max-content — it has to be told to take the container width
           or it never wraps and the page scrolls sideways. */
        width: 100%;
        gap: 4px;
    }

    .cms-nav a {
        padding: 6px 10px;
        font-size: 0.84rem;
    }

    .cms-hero {
        padding: 40px 0 80px;
    }

    .cms-card {
        margin-top: -48px;
        padding: 32px 22px 40px;
    }

    .cms-content h2 {
        font-size: 1.25rem;
        padding-left: 12px;
    }
}

@media print {
    .cms-topbar,
    .cms-nav,
    .cms-footer {
        display: none;
    }

    .cms-hero {
        background: none;
        color: #000;
        padding: 0 0 20px;
    }

    .cms-card {
        margin-top: 0;
        box-shadow: none;
        padding: 0;
    }
}
