/* Privacy Policy Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #330552;
    --primary-medium: #470374;
    --accent-bright: #B13DFF;
    --accent-light: #E4BBFF;
    --background-light: #EFD7FF;
    --background-lighter: #FBF6FF;
    --background-white: #FFFFFF;
    --text-dark: #330552;
    --text-medium: #470374;
    --text-light: #666666;
    --text-muted: #6B5B7A;
    --border-light: #E4BBFF;
    --linkedin-brand: #0077B5;
    /* Near-black body copy + neutral secondary text, so the long-form policy
       reads cleanly. Brand purple is kept for headings, title, and links. */
    --text-body: #1A1A1A;
    --text-secondary: #595959;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-body);
    background: var(--background-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ----- Header ----- */
.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-name {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    /* Filter chain converts the logo to --primary-dark (#330552) - see styles.css */
    filter: brightness(0) saturate(100%) invert(11%) sepia(25%) saturate(5932%) hue-rotate(263deg) brightness(74%) contrast(116%);
}

.back-home {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-bright);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: var(--primary-medium);
}

/* ----- Content ----- */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 24px;
}

.legal-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content .last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.legal-content section {
    margin-bottom: 36px;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-body);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    padding-top: 8px;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-body);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px 24px;
    padding-left: 8px;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--accent-bright);
}

.legal-content strong {
    font-weight: 600;
    color: var(--text-body);
}

.legal-content hr {
    border: none;
    border-top: 1px solid rgba(51, 5, 82, 0.15);
    margin: 40px 0;
}

/* Contact / address block (e.g. Privacy Officer) */
.contact-block {
    font-style: normal;
    line-height: 1.8;
    margin: 0 0 16px;
    padding: 20px 24px;
    background: var(--background-lighter);
    border-left: 3px solid var(--accent-bright);
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-body);
}

/* Muted note, used for the forward-looking appendix intro.
   Scoped under .legal-content to outrank the `.legal-content p` colour rule. */
.legal-content .legal-note {
    color: var(--text-secondary);
    font-style: italic;
}

/* Closing entity / ABN line */
.legal-content .legal-colophon {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(51, 5, 82, 0.15);
    font-size: 13px;
    color: var(--text-secondary);
}

/* Optional data tables within the policy */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 15px;
}

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

.legal-content th {
    background: var(--background-lighter);
    font-weight: 600;
    color: var(--primary-medium);
}

/* ----- Footer ----- */
.legal-footer {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 32px 24px 48px;
    text-align: left;
    border-top: 1px solid rgba(51, 5, 82, 0.2);
}

.footer-email {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-dark);
}

.footer-email a {
    color: var(--accent-bright);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-email a:hover {
    text-decoration: underline;
    color: var(--primary-medium);
}

.footer-divider {
    margin: 0 12px;
    color: var(--text-light);
    opacity: 0.5;
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-linkedin:hover {
    color: var(--linkedin-brand);
}

.footer-linkedin svg {
    width: 14px;
    height: 14px;
}

.footer-legal {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

.footer-legal a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    text-decoration: underline;
    color: var(--primary-medium);
}

/* Global focus styles for accessibility */
a:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
    .legal-title {
        font-size: 32px;
    }
    .legal-content h2 {
        font-size: 21px;
    }
    .legal-content h3 {
        font-size: 17px;
    }
    .legal-header {
        padding-top: 24px;
    }
    .contact-block {
        padding: 16px 18px;
    }
}
