/* ==========================================
   PRIVACY POLICY - SHOBHIKA FEEDBACK
   Design System & Styles
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #C01E3D;
    --primary-dark: #9A1831;
    --primary-light: #E8CAD0;
    --primary-subtle: #FDF2F4;
    --text: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #777777;
    --bg: #FFFFFF;
    --bg-soft: #F9F9FB;
    --bg-card: #FFFFFF;
    --border: #E8E8EE;
    --border-light: #F0F0F5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --max-width: 820px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.5px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--primary);
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 100px;
    transition: all var(--transition);
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 30, 61, 0.3);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 140px 2rem 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #6E1225 100%);
    overflow: hidden;
    text-align: center;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.015) 40px,
        rgba(255,255,255,0.015) 80px
    );
    animation: patternDrift 60s linear infinite;
}

@keyframes patternDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Table of Contents (Sidebar) ---------- */
.toc-sidebar {
    position: fixed;
    top: 90px;
    left: max(calc((100vw - 1200px) / 2), 1rem);
    width: 210px;
    z-index: 100;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toc-sidebar.visible {
    opacity: 1;
    transform: translateX(0);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
}

.toc-link {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.toc-link:hover {
    color: var(--text);
    background: var(--bg-soft);
}

.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-subtle);
    font-weight: 600;
}

/* ---------- TOC Mobile Toggle ---------- */
.toc-toggle {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 200;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.toc-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ---------- Main Content ---------- */
.content {
    position: relative;
    z-index: 5;
    padding: 60px 2rem 80px;
}

.content-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ---------- Sections ---------- */
.section {
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border-light);
    animation: fadeIn 0.6s ease-out;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.3;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.subsection-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

.section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15.5px;
}

/* ---------- Definitions Grid ---------- */
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.definition-card {
    padding: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.definition-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.definition-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.definition-card p {
    font-size: 13.5px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0 !important;
    line-height: 1.6;
}

/* ---------- Data Type Blocks ---------- */
.data-type-block {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.data-type-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.data-type-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

.data-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.data-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.data-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ---------- Use Cases Grid ---------- */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.use-case-card {
    padding: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.use-case-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.use-case-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.use-case-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.use-case-card p {
    font-size: 13.5px !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
    line-height: 1.55;
}

/* ---------- Sharing List ---------- */
.sharing-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.sharing-item {
    padding: 18px 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.sharing-item:hover {
    border-color: var(--primary-light);
}

.sharing-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sharing-item p {
    font-size: 14.5px !important;
    margin-bottom: 0 !important;
}

/* ---------- Retention Table ---------- */
.retention-table {
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.retention-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14.5px;
    color: var(--text-secondary);
    transition: background var(--transition);
}

.retention-row:last-child {
    border-bottom: none;
}

.retention-row:not(.retention-header):hover {
    background: var(--bg-soft);
}

.retention-header {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retention-row strong {
    color: var(--text);
}

/* ---------- Info Callout ---------- */
.info-callout {
    display: flex;
    gap: 14px;
    padding: 20px 22px;
    background: var(--primary-subtle);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    margin: 24px 0;
    align-items: flex-start;
}

.info-callout.warning {
    background: #FFF8E7;
    border-color: #F5DFA0;
}

.info-callout.warning .callout-icon {
    color: #C88A0A;
}

.callout-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-callout strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.info-callout p {
    font-size: 14px !important;
    margin-bottom: 0 !important;
    line-height: 1.6;
}

/* ---------- Styled List ---------- */
.styled-list {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.styled-list li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.7;
}

.styled-list li strong {
    color: var(--text);
}

/* ---------- Contact Card ---------- */
.contact-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-method svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

a.contact-value {
    color: var(--primary);
    font-weight: 600;
}

a.contact-value:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 40px 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 30, 61, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
    .toc-sidebar {
        display: none;
    }

    .toc-toggle {
        display: flex;
    }

    .toc-sidebar.mobile-open {
        display: block;
        position: fixed;
        top: auto;
        bottom: 150px;
        left: auto;
        right: 20px;
        width: 240px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 20px;
        box-shadow: var(--shadow-xl);
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 1.5rem 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .nav-inner {
        padding: 0 1.5rem;
    }

    .content {
        padding: 40px 1.5rem 60px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .definitions-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .retention-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .retention-header {
        display: none;
    }

    .retention-row span:first-child::after {
        content: ':';
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 110px 1rem 60px;
    }

    .content {
        padding: 30px 1rem 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 14px;
    }

    .data-type-block {
        padding: 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.2rem;
        gap: 10px;
    }

    .section-number {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* ---------- Selection Highlight ---------- */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- Print Styles ---------- */
@media print {
    .navbar,
    .toc-sidebar,
    .toc-toggle,
    .back-to-top,
    .hero-wave,
    .hero-bg-pattern {
        display: none !important;
    }

    .hero {
        background: var(--primary) !important;
        padding: 40px 20px;
    }

    .section {
        page-break-inside: avoid;
    }

    .content {
        padding: 20px;
    }
}
