/* ============================================
   Resonare Privacy Policy Styles
   Modern, responsive, and accessible design
   ============================================ */

/* CSS Variables for theming */
:root {
    --primary-color: #6200ee;
    --primary-dark: #3700b3;
    --accent-color: #03dac6;
    --background: #ffffff;
    --surface: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --link-color: #6200ee;
    --link-hover: #3700b3;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #121212;
        --surface: #1e1e1e;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --border-color: #333333;
        --shadow: rgba(255, 255, 255, 0.05);
    }
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* ============================================
   Header
   ============================================ */

header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.app-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .app-name {
        font-size: 1.125rem;
    }
}

/* ============================================
   Typography
   ============================================ */

h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
}

/* ============================================
   Sections
   ============================================ */

section {
    margin-bottom: var(--spacing-xl);
}

section:first-of-type {
    margin-top: 0;
}

/* ============================================
   Lists
   ============================================ */

ul {
    list-style-position: outside;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

ul li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.7;
}

ul ul {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
    ul {
        margin-left: var(--spacing-md);
    }
}

/* ============================================
   Links
   ============================================ */

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 4px var(--shadow);
}

.service-card h4 {
    margin-top: 0;
}

.service-card p {
    margin-bottom: var(--spacing-sm);
}

.service-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Contact Information
   ============================================ */

.contact-info {
    background-color: var(--surface);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin: var(--spacing-md) 0;
}

.contact-info p {
    margin-bottom: var(--spacing-xs);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */

footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.footer-content {
    color: var(--text-secondary);
}

.footer-content p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.footer-links {
    margin: var(--spacing-sm) 0;
}

.footer-links a {
    margin: 0 var(--spacing-sm);
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.version {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: var(--spacing-sm);
    }
    
    header {
        margin-bottom: var(--spacing-lg);
    }
    
    section {
        margin-bottom: var(--spacing-lg);
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    header, footer {
        border-color: #000 !important;
    }
    
    h2, h3, h4 {
        page-break-after: avoid;
    }
    
    ul, p {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
    
    .service-card {
        border: 1pt solid #000;
        page-break-inside: avoid;
    }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ee;
        --border-color: #000000;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}
