/* ==========================================================================
   VISIOGON PRIVACY POLICY - CLEAN & ACCESSIBLE STYLING
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-color-subtle: #edf2f7;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --brand-color: #2563eb;
  --brand-color-hover: #1d4ed8;
  
  --box-bg: #f1f5f9;
  --box-border: #cbd5e1;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 2.5rem 1rem 4rem 1rem;
}

.page-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--box-bg);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Main Document */
.document {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.doc-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color-subtle);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.last-updated {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Intro Box */
.intro-box {
  background-color: var(--box-bg);
  border-left: 4px solid var(--brand-color);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
}

.intro-box p {
  margin-bottom: 0.75rem;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

/* Sections */
.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section:last-of-type {
  margin-bottom: 0;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

p {
  margin-bottom: 1rem;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background-color: var(--box-bg);
  color: var(--text-primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

a {
  color: var(--brand-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-color-hover);
}

/* Service List / SDKs */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.service-item {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.service-item p {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.service-link {
  font-size: 0.875rem !important;
  color: var(--text-muted);
  margin-bottom: 0 !important;
  word-break: break-all;
}

/* Notice / Callout */
.notice-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-top: 1rem;
}

.notice-box p {
  color: #1e3a8a;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.notice-box strong {
  color: #1e3a8a;
}

/* Contact Box */
.contact-box {
  background-color: var(--box-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.contact-item {
  margin-bottom: 0.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1.5rem 0.75rem 2.5rem 0.75rem;
  }

  .document {
    padding: 1.75rem 1.25rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.2rem;
  }
}

/* Print */
@media print {
  body {
    background-color: #ffffff;
    color: #000000;
    padding: 0;
  }

  .document {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .header-tag, .footer {
    display: none;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
