/* Shared styles for the Privacy Policy, Child Safety Policy and Delete Account pages.
   Colours and shapes match the homepage and the Nearby app. */

:root {
    --bg-app: #FBF5F6;
    --bg-nav: #F7F4FF;
    --bg-panel: #D3D2F4;
    --bg-selected: #FFEEF1;

    --pink-soft: #F6A9BD;
    --pink-dark: #AA4A64;
    --purple-btn: #5256B5;
    --purple-dark: #2E3192;

    --text-dark: #424242;
    --text-light: #5A656E;

    --radius: 16px;
    --shadow: 0 10px 30px rgba(46, 49, 146, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-app);
}

h1, h2 { color: var(--purple-dark); line-height: 1.2; letter-spacing: -0.02em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nav (same as the homepage) ---------- */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 244, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E6E3F7;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--purple-dark); text-decoration: none; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { text-decoration: none; color: var(--purple-dark); font-weight: 500; transition: color .2s ease; }
.nav-links a:not(.btn):hover { color: var(--pink-dark); }
.btn {
    display: inline-block; text-decoration: none; font-weight: 600; text-align: center;
    padding: .55rem 1.25rem; font-size: .95rem; border-radius: 12px; border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--purple-btn); color: #fff; box-shadow: 0 4px 10px rgba(82, 86, 181, 0.28); }
.nav-links .btn-primary { color: #fff; }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(46, 49, 146, 0.3); }

/* ---------- Page heading ---------- */
.page-head {
    background: linear-gradient(135deg, var(--bg-selected) 0%, var(--bg-nav) 100%);
    padding: 3.5rem 0 5rem;
    text-align: center;
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.updated {
    display: inline-block; background: var(--bg-selected); color: var(--purple-dark);
    border: 2px solid var(--pink-soft); border-radius: 14px;
    padding: .25rem 1rem; font-size: .9rem; font-weight: 600;
}

/* ---------- Document card ---------- */
.doc { max-width: 820px; margin: -3rem auto 4rem; padding: 0 1.5rem; position: relative; }
.doc-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3rem); }
.doc-card > :first-child { margin-top: 0; }
.doc-card h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.doc-card p { margin-bottom: 1rem; }
.doc-card a { color: var(--purple-btn); text-decoration: underline; text-underline-offset: 2px; }
.doc-card a:hover { color: var(--purple-dark); }

.doc-card ul { list-style: none; margin: 0 0 1.25rem; }
.doc-card ul li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.doc-card ul li::before {
    content: ""; position: absolute; left: .15rem; top: .72em;
    width: .5rem; height: .5rem; border-radius: 50%; background: var(--pink-soft);
}

/* Numbered steps, styled like the step badges on the homepage */
.doc-card ol.steps { list-style: none; counter-reset: step; margin: 0 0 1.5rem; }
.doc-card ol.steps li { counter-increment: step; position: relative; padding: .3rem 0 0 3.25rem; min-height: 2.4rem; margin-bottom: 1rem; }
.doc-card ol.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 2.4rem; height: 2.4rem; border-radius: 12px;
    background: var(--bg-selected); border: 2px solid var(--pink-soft);
    color: var(--purple-dark); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* Callouts: lavender panel like the app's info box, pink panel for warnings */
.callout {
    background: var(--bg-panel); border-left: 6px solid var(--purple-btn);
    border-radius: 12px; padding: 1rem 1.4rem; margin: 0 0 1.25rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-pink { background: var(--bg-selected); border: 2px solid var(--pink-soft); }

/* ---------- Footer (same as the homepage) ---------- */
footer { background: var(--bg-nav); border-top: 1px solid #E6E3F7; text-align: center; padding: 2.5rem 1.5rem; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-bottom: 1rem; }
footer a { color: var(--purple-dark); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }
footer small { color: var(--text-light); }

@media (max-width: 800px) {
    .nav-links a:not(.btn) { display: none; }
    .page-head { padding: 2.5rem 0 4.5rem; }
    .doc-card h2 { margin-top: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
