/* style_17.css — Privacy Policy Page */
/* Based on style_16.css structure, adapted for privacy content */
:root {
    --primary-color: #6d4aff;
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --surface-bg: #f5f5f5;
    --border-color: #ddd;
    --link-color: #5c3dff;
    --link-hover: #4a30d9;
    --heading-font: system-ui, -apple-system, sans-serif;
    --body-font: Georgia, 'Times New Roman', serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --bg-color: #121212;
        --surface-bg: #1e1e1e;
        --border-color: #444;
        --link-color: #b3a3ff;
        --link-hover: #c4b6ff;
    }
}

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 800px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Utility: visually hidden text for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 100;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

.site-header {
    padding-block: 1.5rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.site-title {
    margin: 0.5rem 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.5rem;
}
.site-title a:hover {
    color: var(--link-color);
}

.site-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5ch;
    align-items: center;
    font-family: var(--heading-font);
    font-size: 0.875rem;
}
.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5ch;
    color: var(--text-color);
    opacity: 0.6;
}

.breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-color);
    opacity: 0.7;
}

.privacy-page {
    padding-block: 2rem;
}

.privacy-page article {
    counter-reset: section;
}

.privacy-page h1 {
    font-family: var(--heading-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.privacy-page h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.privacy-page h3 {
    font-family: var(--heading-font);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.privacy-intro {
    background: var(--surface-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-intro p {
    margin: 0;
}

/* Details/Summary for key practices */
.key-practices {
    margin-bottom: 2rem;
}

.key-practices > summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-family: var(--heading-font);
    font-weight: 600;
    list-style: none;
    background: rgba(109, 74, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.key-practices > summary::-webkit-details-marker {
    display: none;
}

.key-practices > summary::marker {
    display: none;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 0 0.5rem;
}

.practice-item {
    background: var(--surface-bg);
    border-radius: 4px;
    padding: 1.25rem;
}

.practice-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.practice-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Lists with enhanced styling */
.data-types,
section > ul {
    margin: 1rem 0;
    padding-inline-start: 1.25rem;
}

.data-types li,
section > ul li {
    margin-bottom: 0.75rem;
}

.data-types strong,
section > ul strong {
    color: var(--primary-color);
}

/* Description lists for technical sections */
dl {
    margin: 1.5rem 0;
    padding-inline-start: 0;
}

dt {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
    color: var(--text-color);
}

dd {
    margin-inline-start: 1rem;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid var(--border-color);
    font-size: 0.95rem;
}

dd p {
    margin: 0;
}

/* Contact section styling */
.contact-section {
    background: var(--surface-bg);
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-section address {
    font-style: normal;
    line-height: 1.8;
    margin: 1rem 0;
}

.contact-section a {
    color: var(--link-color);
    text-decoration: none;
}
.contact-section a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Related links section */
.related-links {
    background: var(--surface-bg);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.related-links h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.125rem;
}

.related-links nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.related-links nav a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}
.related-links nav a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Last updated timestamp */
.last-updated {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0;
    margin-bottom: 2rem;
    font-family: var(--heading-font);
}

/* Code blocks for technical terms (if needed) */
code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--surface-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

/* Links throughout */
.privacy-page a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.privacy-page a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

.site-footer {
    margin-top: 3rem;
    padding-block: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    text-align: center;
    opacity: 0.75;
}

.site-footer a {
    color: var(--link-color);
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .practice-grid {
        grid-template-columns: 1fr;
    }

    .related-links nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .privacy-page h1 {
        font-size: 1.5rem;
    }

    .privacy-page h2 {
        font-size: 1.25rem;
    }

    dd {
        margin-inline-start: 0;
        padding-inline-start: 0.75rem;
    }
}

/* Print styles */
@media print {
    .related-links,
    .site-footer,
    .site-header,
    .skip-link {
        display: none;
    }

    body {
        max-width: 100%;
        padding: 0;
    }

    .privacy-page {
        padding-block: 1rem;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
