/* ============================================
   PRIVACY POLICY PAGE STYLES
   Professional, modern design for legal pages
   ============================================ */

/* Theme Variables */
:root {
    --color-primary: #34B8C1;
    --color-primary-dark: #27949C;
    --color-primary-light: #6DD6DC;
    --color-accent: #FF6B35;
    --color-bg: #F7F9FA;
    --color-surface: #FFFFFF;
    --text-primary: #0F1720;
    --text-secondary: #5B6B73;
    --color-border: #E1E6E8;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E0F7F8 0%, #B3FBFD 50%, #E0F7F8 100%);
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        /* Large circles */
        radial-gradient(circle at 20% 30%, rgba(52, 184, 193, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(109, 214, 220, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 35%),
        
        /* Rectangles */
        linear-gradient(45deg, transparent 0%, rgba(52, 184, 193, 0.08) 25%, transparent 50%),
        linear-gradient(-30deg, transparent 0%, rgba(109, 214, 220, 0.06) 30%, transparent 60%),
        
        /* Lines */
        repeating-linear-gradient(90deg, transparent 0%, transparent 40px, rgba(52, 184, 193, 0.05) 40px, rgba(52, 184, 193, 0.05) 42px),
        repeating-linear-gradient(0deg, transparent 0%, transparent 60px, rgba(109, 214, 220, 0.04) 60px, rgba(109, 214, 220, 0.04) 62px),
        
        /* Diagonal lines */
        repeating-linear-gradient(45deg, transparent 0%, transparent 80px, rgba(255, 107, 53, 0.04) 80px, rgba(255, 107, 53, 0.04) 82px),
        repeating-linear-gradient(-45deg, transparent 0%, transparent 100px, rgba(52, 184, 193, 0.03) 100px, rgba(52, 184, 193, 0.03) 102px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(109, 214, 220, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* Additional Geometric Shapes */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 120px;
    height: 80px;
    background: linear-gradient(45deg, rgba(52, 184, 193, 0.2), rgba(109, 214, 220, 0.1));
    border-radius: 20px;
    transform: rotate(-15deg);
    animation: floatShape 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15), transparent);
    border-radius: 50%;
    animation: floatShape 6s ease-in-out infinite reverse;
}

/* Additional shapes using pseudo-elements on hero-pattern */
.hero-pattern::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 15%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(52, 184, 193, 0.5), transparent);
    transform: rotate(25deg);
    animation: lineMove 10s ease-in-out infinite;
}

.hero-pattern::after {
    content: '';
    position: absolute;
    bottom: 40%;
    left: 20%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(109, 214, 220, 0.3);
    border-radius: 50%;
    animation: circlePulse 7s ease-in-out infinite;
}

/* Additional geometric elements on hero */
.hero::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 70%;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.15);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: triangleFloat 9s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 30%;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.18), rgba(109, 214, 220, 0.1));
    border-radius: 15px;
    transform: rotate(45deg);
    animation: rectangleRotate 12s linear infinite;
    z-index: 0;
}

/* Animations for shapes */
@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0px) rotate(-15deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(-10deg); 
    }
}

@keyframes lineMove {
    0%, 100% { 
        transform: rotate(25deg) translateX(0px); 
        opacity: 0.5;
    }
    50% { 
        transform: rotate(30deg) translateX(10px); 
        opacity: 0.8;
    }
}

@keyframes circlePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.6;
    }
}

@keyframes triangleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(180deg); 
    }
}

@keyframes rectangleRotate {
    0% { 
        transform: rotate(45deg); 
    }
    100% { 
        transform: rotate(405deg); 
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== MAIN CONTAINER ========== */
.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-bg) 0%, #e8ecf1 100%);
    padding-top: 0;
}

.legal-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== CONTENT SECTION ========== */
.legal-content {
    padding: 0 0 80px 0;
}

.company-info {
    background: white;
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border-left: 4px solid var(--color-primary);
}

.company-info p {
    margin: 8px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.company-info strong {
    color: #333;
    font-weight: 600;
}

.company-info a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.company-info a:hover {
    text-decoration: underline;
}

/* ========== LAYOUT: TOC + BODY ========== */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ========== TABLE OF CONTENTS ========== */
.legal-toc {
    position: sticky;
    top: 100px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(52, 184, 193, 0.1);
}

.legal-toc h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    counter-increment: toc-counter;
    margin-bottom: 12px;
}

.legal-toc li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.legal-toc li a:before {
    content: counter(toc-counter, decimal-leading-zero);
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 12px;
    font-size: 13px;
    min-width: 25px;
}

.legal-toc li a:hover {
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.08) 0%, rgba(109, 214, 220, 0.08) 100%);
    color: var(--color-primary);
    transform: translateX(5px);
}

.legal-toc li a:active {
    transform: scale(0.98);
}

/* ========== LEGAL BODY ========== */
.legal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ========== SECTIONS ========== */
.legal-section {
    scroll-margin-top: 120px;
}

.section-card {
    background: white;
    padding: 40px 45px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-card:hover {
    box-shadow: 0 8px 30px rgba(52, 184, 193, 0.15);
    transform: translateY(-2px);
}

.section-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

.section-card h2 {
    color: #1a202c;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-card h3 {
    color: #2d3748;
    font-size: 22px;
    font-weight: 600;
    margin: 35px 0 20px 0;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.section-card h3:first-of-type {
    margin-top: 25px;
}

.section-card h4 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.section-card p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.section-card ul,
.section-card ol {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0;
    padding-left: 25px;
}

.section-card li {
    margin: 12px 0;
    padding-left: 10px;
}

.section-card li strong {
    color: #2d3748;
    font-weight: 600;
}

.section-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.section-card a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ========== INFO BOXES ========== */
.info-box {
    background: linear-gradient(135deg, #e0f7f8 0%, #d1f4f6 100%);
    border-left: 4px solid var(--color-primary);
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.7;
}

.warning-box {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe9d0 100%);
    border-left: 4px solid #ff9800;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #663c00;
}

.important-notice {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #1b5e20;
}

.note {
    font-size: 14px;
    color: #718096;
    font-style: italic;
    margin-top: 15px;
}

/* ========== USE CASE GRID ========== */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.use-case {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9fa 0%, #e0f7f8 100%);
    border-radius: 12px;
    border: 1px solid rgba(52, 184, 193, 0.15);
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 184, 193, 0.15);
}

.use-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.use-case h4 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.use-case p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========== SHARING CATEGORIES ========== */
.sharing-category {
    margin: 25px 0;
    padding: 25px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sharing-category h4 {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

/* ========== SECURITY MEASURES ========== */
.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.security-item {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 1px solid #86efac;
    align-items: flex-start;
}

.security-badge {
    font-size: 32px;
    flex-shrink: 0;
}

.security-item strong {
    display: block;
    color: #166534;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.security-item p {
    color: #15803d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========== COOKIE TYPES ========== */
.cookie-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.cookie-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cookie-type:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(52, 184, 193, 0.1);
}

.cookie-type strong {
    display: block;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cookie-type p {
    color: #718096;
    font-size: 14px;
    margin: 0;
    max-width: 600px;
}

.cookie-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.cookie-status.required {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.cookie-status.optional {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* ========== RIGHTS LIST ========== */
.rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.right-item {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #e0f7f8 0%, #c8eff2 100%);
    border-radius: 12px;
    border: 1px solid var(--color-primary-light);
    transition: all 0.3s ease;
}

.right-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 184, 193, 0.2);
}

.right-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.right-item h4 {
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.right-item p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.exercise-rights {
    background: linear-gradient(135deg, #e0f7f8 0%, #c8eff2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid var(--color-primary-light);
}

.exercise-rights h4 {
    color: var(--color-primary-dark);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.exercise-rights p {
    color: var(--text-primary);
    margin: 0;
}

/* ========== RETENTION PERIODS ========== */
.retention-periods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.retention-item {
    padding: 20px;
    background: linear-gradient(135deg, #e0f7f8 0%, #c8eff2 100%);
    border-radius: 12px;
    border: 1px solid var(--color-primary-light);
}

.retention-item strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.retention-item p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========== THIRD PARTY SERVICES ========== */
.third-party-services {
    background: #fafbfc;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.third-party-services h4 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

/* ========== CONTACT INFO ========== */
.contact-info {
    margin: 30px 0;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: linear-gradient(135deg, #e0f7f8 0%, #d1f4f6 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--color-primary-light);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(52, 184, 193, 0.15);
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-method p {
    color: var(--text-primary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.final-note {
    background: linear-gradient(135deg, #e0f7f8 0%, #c8eff2 100%);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid var(--color-primary-light);
}

.final-note p {
    color: var(--color-primary-dark);
    font-size: 16px;
    margin: 10px 0;
}

.final-note p:first-child {
    font-size: 18px;
    font-weight: 700;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .hero {
        padding: 4rem 0 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: relative;
        top: 0;
        max-width: 100%;
    }

    .legal-toc ol {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-card {
        padding: 30px 25px;
    }

    .section-card h2 {
        font-size: 26px;
    }

    .legal-toc ol {
        grid-template-columns: 1fr;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .security-measures {
        grid-template-columns: 1fr;
    }

    .rights-list {
        grid-template-columns: 1fr;
    }

    .retention-periods {
        grid-template-columns: 1fr;
    }

    .cookie-type {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-status {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .legal-page .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-card {
        padding: 25px 20px;
    }

    .section-card h2 {
        font-size: 22px;
    }

    .legal-toc {
        padding: 20px;
    }

    .company-info {
        padding: 20px;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .legal-header {
        height: auto;
        background: white;
        color: black;
        border-radius: 0;
        padding: 20px;
    }

    .header-bg-elements,
    .scroll-indicator {
        display: none;
    }

    .legal-toc {
        display: none;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

