/* Watch It 2.0 design system -- public site.
 *
 * Same tokens as the sponsor portal (sponsor-theme.css); this file exists
 * separately because the public pages are plain HTML with no AdminLTE under
 * them, so none of the framework overrides apply here.
 */

:root {
    --radius: 12px;
    --radius-lg: 16px;

    --primary: #6D28D9;
    --deep-purple: #241044;
    --accent-violet: #8B5CF6;
    --background: #F7F5FF;
    --card: #FFFFFF;
    --foreground: #17132D;
    --muted-foreground: #6B6680;
    --border: #E8E1F5;
    --success: #16A34A;
    --destructive: #EF4444;

    --primary-foreground: #FFFFFF;
    --primary-light: #A78BFA;
    --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --accent: #F0EAFF;
    --muted: #F4F0FE;
    --shadow-sm: 0 1px 2px rgba(109, 40, 217, 0.05), 0 2px 8px rgba(109, 40, 217, 0.06);
    --shadow-md: 0 2px 4px rgba(109, 40, 217, 0.05), 0 10px 28px rgba(109, 40, 217, 0.08);
    --shadow-violet: 0 8px 20px rgba(109, 40, 217, 0.3);
}

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

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--background);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.16), transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(109, 40, 217, 0.12), transparent 42%);
    background-attachment: fixed;
    color: var(--foreground);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--foreground);
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- shell ---------- */

.wi-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.wi-header,
.wi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.wi-header {
    padding-bottom: 1.75rem;
}

.wi-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.wi-footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- logo lockup ---------- */

/* Purple play on transparent + live Poppins wordmark (WATCH deep / IT violet). */
.wi-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
}

.wi-logo img {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
}

.wi-logo__word {
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--deep-purple);
    text-transform: uppercase;
}

.wi-logo__word b {
    font-weight: 800;
    color: var(--accent-violet);
}

/* ---------- surfaces ---------- */

.wi-card,
.privacy {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.25rem;
}

.wi-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.wi-hero p {
    color: var(--muted-foreground);
    max-width: 68ch;
}

.wi-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: var(--shadow-violet);
}

.wi-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    text-decoration: none;
}

/* ---------- legal pages ---------- */

/* These templates use <h2> for the document title and <h1> for the section
 * headings beneath it. Restyled in place rather than re-tagged, so the legal
 * copy is untouched. */
.privacy {
    max-width: 900px;
    margin: 0 auto;
}

.privacy h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.privacy h1 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 2rem 0 0.5rem;
}

.privacy p,
.privacy ul li {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.privacy ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.privacy b {
    color: var(--foreground);
}

/* The legal pages carry long mailto links and unbroken URLs; without this one
 * of them widens the viewport and pushes the whole page off-centre. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.privacy p,
.privacy li,
.wi-hero p {
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    .wi-shell {
        padding: 1.25rem 1rem 2rem;
    }

    .wi-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .wi-card,
    .privacy {
        padding: 1.25rem;
        border-radius: var(--radius);
    }

    .wi-logo img {
        width: 2rem;
        height: 2rem;
    }

    .wi-logo__word {
        font-size: 1.15rem;
    }

    body {
        font-size: 0.95rem;
    }
}
