/* Shared layout for the inner pages (contact + legal/): top bar, blue header band
   and the white content card. The homepage has its own styles in index.html. */

/* Same design tokens as index.html */
:root {
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --orange: #F36F21;
    --orange-deep: #C6560F;
    --accent-blue: #2563EB;
    --blue-deep: #005FBC;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --line: #E2E8F0;
    --error: #B91C1C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Assistant', sans-serif;
    line-height: 1.65;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

h1, h2, .brand { font-family: 'Heebo', sans-serif; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent-blue); outline-offset: 2px;
}

/* --- Top bar --- */
.topbar { background: var(--bg-white); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text-dark); text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.back-link { color: var(--text-gray); text-decoration: none; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.back-link:hover { color: var(--accent-blue); }

/* --- Header band --- */
.page-head { background: var(--blue-deep); color: #fff; text-align: center; padding: 48px 20px 96px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.15; }

/* --- Content card (overlaps the header band) --- */
main { flex: 1; }
.page-body { padding: 0 16px 60px; }
.card {
    max-width: 760px; margin: -64px auto 0; position: relative;
    background: var(--bg-white); border-radius: 28px; padding: 44px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

/* --- Text pages (legal/): sections divided by a thin line --- */
.prose { line-height: 1.75; }
.prose p, .prose ul { font-size: 1.05rem; color: var(--text-gray); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-inline-start: 22px; }
.prose li + li { margin-top: 10px; }
.prose > section { scroll-margin-top: 16px; }
.prose > section:not(:first-child) { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.prose strong { color: var(--text-dark); }
.prose a { color: var(--accent-blue); font-weight: 700; }
.prose a.email { direction: ltr; unicode-bidi: isolate; }
.prose .updated { margin-top: 36px; font-size: 0.95rem; text-align: center; }

@media (max-width: 600px) {
    .page-head { padding: 36px 16px 88px; }
    .card { padding: 28px 20px; border-radius: 22px; }
}
