/* AmbiScript common site styles
   Used for page content across marketing and legal pages.
   Header and footer stay in site-shell.css.
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

:root {
    --slate-950: #0F1626;
    --slate-900: #1E2A44;
    --slate-800: #2A3754;
    --slate-700: #3A4660;
    --slate-600: #4B5675;
    --slate-500: #5A6478;
    --slate-400: #8892A6;
    --slate-200: #C8CDD7;
    --slate-100: #E2E5EA;
    --slate-50: #EEF1F6;
    --slate-25: #F5F6F8;
    --white: #FFFFFF;
    --trust-navy: #1A3C5C;
    --trust-navy-2: #263744;
    --trust-blue: #305A72;
    --trust-blue-soft: #F0F4F8;
    --trust-ink: #1A3C5C;
    --trust-body: #3F5065;
    --trust-line: rgba(0, 26, 63, 0.09);
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --max: 1200px;
    --gutter: 32px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

/* Base */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--trust-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Shared layout */

.shell {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Typography */

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--trust-ink);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(44px, 6vw, 72px);
}

h2 {
    font-size: clamp(34px, 4.5vw, 56px);
}

h3 {
    font-size: clamp(22px, 2vw, 30px);
}

p,
li {
    color: var(--trust-body);
    line-height: 1.65;
}

.lead {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;
    color: var(--trust-body);
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--trust-blue-soft);
    color: var(--trust-navy);
    border: 1px solid rgba(0, 123, 255, 0.18);
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
}
/* Shared centered section headings */
/* Center eyebrow pills without changing heading or body alignment */

.eyebrow {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.as-section-head {
    max-width: 860px;
    margin: 0 auto 56px;
    text-align: center;
}

    .as-section-head.as-section-head-narrow {
        max-width: 720px;
    }

    .as-section-head .eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .as-section-head h1,
    .as-section-head h2 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .as-section-head p,
    .as-section-head .lead {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

/* For sections where heading is centered but body copy should stay readable */

.as-centered-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

    .as-centered-copy p {
        margin-bottom: 24px;
    }

.as-centered-quote {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.as-centered-rule {
    width: 48px;
    height: 2px;
    background: var(--trust-blue);
    margin: 36px auto 36px;
}
/* Shared buttons for page content */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: #002B5E;
    color: #ffffff;
    border-color: #002B5E;
    box-shadow: 0 14px 30px rgba(0, 43, 94, 0.18);
}

    .btn-primary:hover {
        background: #001F44;
        border-color: #001F44;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 18px 42px rgba(0, 43, 94, 0.24);
    }

.btn-secondary {
    background: #ffffff;
    color: var(--trust-navy);
    border-color: var(--slate-200);
}

    .btn-secondary:hover {
        border-color: var(--trust-navy);
        transform: translateY(-1px);
    }

/* Legal pages: privacy, terms, HIPAA / BAA */

.legal-main {
    background: radial-gradient(circle at 84% 18%, rgba(0, 123, 255, 0.10), transparent 28%), radial-gradient(circle at 8% 70%, rgba(0, 26, 63, 0.06), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f7fbff 56%, #ffffff 100%);
    padding: clamp(72px, 8vw, 116px) 0 clamp(72px, 8vw, 104px);
}

.legal-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.legal-hero {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 48px;
}

    .legal-hero h1 {
        margin: 0 0 22px;
        background: linear-gradient(115deg, var(--trust-navy) 0%, #063B7A 58%, var(--trust-blue) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .legal-hero p {
        font-size: clamp(18px, 2vw, 22px);
        line-height: 1.65;
        max-width: 760px;
        margin: 0 auto;
    }

.legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--trust-navy);
    border: 1px solid var(--trust-line);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 28px;
    box-shadow: 0 10px 28px rgba(0, 26, 63, 0.06);
}

.legal-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 26, 63, 0.09);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 56px);
    box-shadow: 0 32px 80px rgba(0, 26, 63, 0.10);
}

    .legal-card > p:first-child {
        font-size: 18px;
        color: var(--trust-body);
        margin-top: 0;
    }

    .legal-card h2 {
        font-size: clamp(24px, 3vw, 34px);
        color: var(--trust-navy);
        margin: 42px 0 14px;
    }

    .legal-card h3 {
        font-family: var(--sans);
        font-size: 17px;
        font-weight: 700;
        color: var(--trust-navy);
        margin: 24px 0 10px;
    }

    .legal-card p,
    .legal-card li {
        font-size: 16px;
        line-height: 1.75;
        color: var(--trust-body);
    }

    .legal-card p {
        margin: 0 0 16px;
    }

    .legal-card ul {
        margin: 12px 0 20px;
        padding-left: 24px;
    }

    .legal-card li {
        margin-bottom: 10px;
    }

    .legal-card strong {
        color: var(--trust-navy);
        font-weight: 700;
    }

.legal-callout {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240, 244, 248, 0.95), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(0, 26, 63, 0.09);
}

    .legal-callout p {
        margin: 0;
    }

    .legal-callout a {
        color: var(--trust-navy);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* Responsive */

@media (max-width: 760px) {
    :root {
        --gutter: 22px;
    }

    .legal-main {
        padding: 56px 0 64px;
    }

    .legal-hero {
        margin-bottom: 34px;
    }

    .legal-card {
        border-radius: 22px;
        padding: 26px 22px;
    }

        .legal-card > p:first-child {
            font-size: 16px;
        }

        .legal-card p,
        .legal-card li {
            font-size: 15px;
            line-height: 1.7;
        }

        .legal-card h2 {
            margin-top: 34px;
        }

    .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}
