/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666666;
    --accent-color: #e5a352;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e8e9ea;
    --border-light: #f1f3f4;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #9ca3af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-accent: linear-gradient(135deg, #e5a352 0%, #d4913e 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Structure */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.policy-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition-smooth);
}

.nav-container {
    padding: 20px 0;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.back-btn svg {
    transition: var(--transition-smooth);
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* Main Content */
.policy-main {
    flex: 1;
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Hero Section */
.policy-hero {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.policy-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.policy-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Content Sections */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.policy-section:nth-child(2) { animation-delay: 0.1s; }
.policy-section:nth-child(3) { animation-delay: 0.2s; }
.policy-section:nth-child(4) { animation-delay: 0.3s; }
.policy-section:nth-child(5) { animation-delay: 0.4s; }

.policy-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.policy-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.policy-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 32px 0 16px 0;
}

.policy-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 24px 0 12px 0;
}

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

.policy-section ul {
    margin: 16px 0;
    padding-left: 0;
}

.policy-section li {
    list-style: none;
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-section li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1.6;
}

/* Special Content Blocks */
.notice-box {
    background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.notice-box h4 {
    color: var(--warning-color);
    margin-bottom: 12px;
}

.notice-box p {
    color: #92400e;
}

/* Grid Layouts */
.usage-grid, .rights-grid, .terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.usage-item, .right-item, .term-item {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.usage-item:hover, .right-item:hover, .term-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.usage-item h3, .right-item h4, .term-item h4 {
    color: var(--accent-color);
    margin-bottom: 12px;
}

/* Info Grids */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.info-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.info-item:hover {
    transform: translateY(-4px);
    background: var(--accent-color);
    color: white;
}

.info-item:hover h4,
.info-item:hover p {
    color: white;
}

/* Contact Cards */
.contact-section {
    background: var(--gradient-primary) !important;
    color: white;
}

.contact-section h2 {
    color: white;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Cancellation Policy Specific Styles */
.fee-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.fee-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.fee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 18px;
}

.no-fee {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: var(--success-color);
}

.no-fee::before {
    background: var(--success-color);
}

.with-fee, .no-show {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: var(--danger-color);
}

.with-fee::before, .no-show::before {
    background: var(--danger-color);
}

.fee-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.fee-item:hover::before {
    opacity: 0.05;
}

.fee-icon {
    margin-bottom: 16px;
}

.fee-icon svg {
    transition: var(--transition-smooth);
}

.no-fee .fee-icon svg {
    color: var(--success-color);
}

.with-fee .fee-icon svg, .no-show .fee-icon svg {
    color: var(--danger-color);
}

.fee-item:hover .fee-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.fee-amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-top: 12px;
    color: var(--primary-color);
}

.cancellation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.method-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.method-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-4px);
}

.method-item:hover h4,
.method-item:hover p {
    color: white;
}

.info-boxes {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.info-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    border-left: 4px solid var(--accent-color);
}

/* Cookie Policy Specific Styles */
.cookie-types {
    display: grid;
    gap: 20px;
    margin: 32px 0;
}

.cookie-type {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    position: relative;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.cookie-type:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cookie-necessity {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-necessity.essential {
    background: var(--success-color);
    color: white;
}

.cookie-necessity.optional {
    background: var(--warning-color);
    color: white;
}

.cookie-table {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin: 24px 0;
}

.cookie-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    padding: 16px 20px;
    align-items: center;
}

.cookie-row.header {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--primary-color);
}

.cookie-row:not(.header) {
    border-top: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.cookie-row:not(.header):hover {
    background: var(--bg-secondary);
}

.preference-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.option-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.option-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cookie-controls {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    margin: 24px 0;
}

.third-party-services {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.service-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.service-item:hover {
    background: var(--accent-color);
    color: white;
}

.service-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.service-item:hover a {
    color: white;
}

/* Footer */
.policy-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.policy-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.policy-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.policy-link:hover {
    color: var(--accent-color);
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-content {
        padding: 0 16px;
    }
    
    .policy-title {
        font-size: 36px;
    }
    
    .policy-section {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .policy-section h2 {
        font-size: 24px;
    }
    
    .usage-grid, .rights-grid, .terms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .fee-structure {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cookie-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }
    
    .cookie-row.header {
        display: none;
    }
    
    .cookie-row:not(.header) {
        padding: 16px;
        border: 1px solid var(--border-light);
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .cookie-name {
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .policy-nav {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .policy-main {
        padding: 40px 0;
    }
    
    .policy-hero {
        margin-bottom: 40px;
    }
    
    .policy-title {
        font-size: 28px;
    }
    
    .policy-section {
        padding: 20px;
    }
    
    .logo {
        font-size: 24px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #1a1a1a;
        --bg-card: #1f1f1f;
        --text-primary: #ffffff;
        --text-secondary: #a3a3a3;
        --border-color: #333333;
        --border-light: #2a2a2a;
    }
    
    .policy-header {
        background: rgba(10, 10, 10, 0.95);
    }
    
    .back-btn {
        background: var(--bg-card);
        border-color: var(--border-color);
    }
}

/* Print styles */
@media print {
    .policy-header,
    .policy-footer,
    .back-btn {
        display: none;
    }
    
    .policy-section {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .policy-main {
        padding: 0;
    }
}