/* ============================================================
   DOCUMENT CONTAINER
   Wrap your markdown/HTML output inside a main tag or a 
   container wrapper (e.g. <main> or <article>) for best layout.
   ============================================================ */

main, article, .privacy-container {
    max-width: 900px;
    margin: var(--spacing-xl, 2.5rem) auto;
    padding: clamp(2rem, 5vw, 4rem);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05),
                0 2px 6px -1px rgba(0, 0, 0, 0.02);
    color: var(--color-gray-900, #1e293b);
    font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
    line-height: 1.7;
    box-sizing: border-box;
}

/* ============================================================
   TYPOGRAPHY & HEADINGS
   ============================================================ */

/* Main Document Title (H1) */
h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-primary-dark, #055a65);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary-lighter, #e6f5f7);
}

/* Section Headings (H2) */
h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 600;
    color: var(--color-primary, #0c7a85);
    letter-spacing: -0.015em;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* Decorative accent bar next to H2 sections */
h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 1.25em;
    background-color: var(--color-primary, #0c7a85);
    border-radius: 4px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Sub-headings (H3) */
h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-gray-900, #0f172a);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

/* Body Paragraphs */
p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #475569;
    font-size: 1rem;
}

/* Emphasized Text */
strong {
    color: var(--color-gray-900, #0f172a);
    font-weight: 600;
}

/* ============================================================
   LISTS & CALLOUT CARDS (CLEAN ACCENT STYLE)
   ============================================================ */

ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: flex-col;
    flex-direction: column;
    gap: 0.75rem;
}

/* Styled card blocks with left accent border (bullet point removed) */
li {
    position: relative;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--color-primary-light, #088a9a);
    border-radius: 10px;
    color: #334155;
    font-size: 0.975rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

li:hover {
    border-left-color: var(--color-primary, #0c7a85);
    border-top-color: #cbd5e1;
    border-right-color: #cbd5e1;
    border-bottom-color: #cbd5e1;
    transform: translateX(2px);
}

/* Nested lists inside card items */
li ul {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Nested list items switch to clean, subtle inline blocks */
li li {
    background: #ffffff;
    border-left-width: 3px;
    border-left-color: var(--color-primary, #0c7a85);
    padding: 0.75rem 1rem;
}

/* ============================================================
   LINKS & CONTACT CARDS
   ============================================================ */

a {
    color: var(--color-primary, #0c7a85);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(12, 122, 133, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark, #055a65);
    text-decoration-color: var(--color-primary-dark, #055a65);
}

/* Dedicated styling for DPO/Contact details card */
ul:has(a[href^="mailto:"]) {
    background: var(--color-primary-lighter, #e6f5f7);
    border: 1px solid rgba(12, 122, 133, 0.2);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    gap: 0.5rem;
}

ul:has(a[href^="mailto:"]) li {
    background: transparent;
    border: none;
    padding: 0.35rem 0;
    border-radius: 0;
}

ul:has(a[href^="mailto:"]) li:hover {
    transform: none;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 640px) {
    main, article, .privacy-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }

    h2::before {
        width: 4px;
        margin-right: 0.5rem;
    }

    li {
        padding: 0.85rem 1rem;
    }
}