/* =========================================
   Euniron Privacy Policy - Styles
   ========================================= */

:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #0f3460;
  --accent-hover: #0a2647;
  --bg: #f5f6fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e2e2e2;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   Header
   ========================================= */

.header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.logo-text p {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.2;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--white);
}

.header-nav .btn-download {
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.header-nav .btn-download:hover {
  background: var(--accent-hover);
}

/* =========================================
   Hero
   ========================================= */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 60px 24px 50px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
}

/* =========================================
   PDF Viewer
   ========================================= */

.viewer-section {
  padding: 40px 24px 60px;
}

.viewer-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border-bottom: 1px solid var(--border);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-toolbar button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.viewer-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.viewer-toolbar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-info {
  font-size: 14px;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.zoom-level {
  font-size: 13px;
  font-weight: 500;
  min-width: 45px;
  text-align: center;
}

.toolbar-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.toolbar-download:hover {
  background: var(--accent-hover);
}

/* Canvas */
.canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  min-height: 500px;
  background: #eaeaea;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#pdfCanvas {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
  text-align: center;
  color: var(--text-light);
}

/* =========================================
   Download Section
   ========================================= */

.download-section {
  padding: 50px 24px;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.download-inner {
  max-width: 500px;
  margin: 0 auto;
}

.download-inner h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}

.download-inner p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.btn-download-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-download-large:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* =========================================
   Footer
   ========================================= */

.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 24px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-left strong {
  color: var(--white);
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.footer-left p,
.footer-right p {
  font-size: 13px;
  line-height: 1.6;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 18px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  opacity: 0.5;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .logo-group {
    flex-direction: column;
    gap: 8px;
  }

  .header-nav {
    gap: 16px;
  }

  .hero {
    padding: 40px 20px 35px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .viewer-toolbar {
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
  }

  .canvas-wrapper {
    padding: 8px;
  }

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

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-info {
    font-size: 12px;
    min-width: 90px;
  }

  .zoom-level {
    display: none;
  }
}
