:root{
  --bg: #F8F9FF;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6E6E6E;
  --accent: #6B8CFF;
  --border: #E5E5EA;
  --warning: #FF6B6B;
  --success: #4ECDC4;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container{max-width: 980px; margin: 0 auto; padding: 0 20px}

.site-header{
  background: linear-gradient(120deg, #E0C3FC, #8EC5FC);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding: 16px 0}
.brand{display:flex; align-items:center; gap:10px}
.brand-mark{width:28px; height:28px; border-radius:50%; background: rgba(255,255,255,.35); box-shadow: 0 6px 20px rgba(0,0,0,.15)}
.brand-name{font-weight:700; letter-spacing:.2px}
.nav{display:flex; gap:16px}
.nav-link{color:#fff; text-decoration:none; opacity:.95; transition: opacity 0.2s}
.nav-link:hover{text-decoration:underline; opacity: 1}

.doc{padding: 32px 0 64px}
.doc h1{
  margin: 0 0 6px; 
  font-size: 32px;
  background: linear-gradient(120deg, var(--accent), #8B5CF6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doc .doc-meta{color: var(--muted); margin:0 0 20px; font-size: 14px}

/* Document layout */
.doc-layout{
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  margin-top: 20px;
}

.doc-sidebar{
  position: sticky;
  top: 100px;
  height: fit-content;
}

.doc-content{
  min-width: 0; /* Prevent grid overflow */
}

/* Tabs */
.tabs{display:flex; gap:8px; margin: 12px 0 20px}
.tab{
  appearance:none;
  background: var(--card);
  border:1px solid var(--border);
  color: var(--text);
  padding:8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tab:hover{box-shadow: 0 2px 8px rgba(0,0,0,0.06)}
.tab.active{background: var(--accent); color: #fff; border-color: transparent}
.doc-pane.hidden, .hidden{display:none}

/* Support form styles */
.support-form{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.form-group{
  margin-bottom: 20px;
}

.form-group label{
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select{
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.1);
}

.form-group textarea{
  resize: vertical;
  min-height: 120px;
}

.submit-btn{
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover{
  background: #5A7BFF;
  transform: translateY(-1px);
}

.submit-btn:active{
  transform: translateY(0);
}

.support-info{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

.support-info h3{
  margin: 16px 0 12px 0;
  font-size: 18px;
  color: var(--accent);
}

.support-info h3:first-child{
  margin-top: 0;
}

.support-info ul{
  margin: 8px 0;
  padding-left: 20px;
}

.support-info li{
  margin: 6px 0;
  line-height: 1.5;
}

.success-message{
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: #155724;
}

.success-message h3{
  margin: 0 0 8px 0;
  color: #155724;
  font-size: 18px;
}

.success-message p{
  margin: 0;
  color: #155724;
}

.toc{
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding:20px; 
  margin: 0 0 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.toc h2{margin: 0 0 16px; font-size: 18px; color: var(--text)}
.toc ol{margin:0; padding-left: 20px; counter-reset: toc-counter}
.toc li{margin: 6px 0; counter-increment: toc-counter}
.toc a{
  color: var(--accent); 
  text-decoration:none; 
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.toc a:hover{text-decoration:underline; color: #5A7BFF}

.section{
  background: var(--card); 
  border:1px solid var(--border); 
  border-radius: 12px; 
  padding: 24px; 
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  scroll-margin-top: 100px;
}

.section h2{
  margin:0 0 16px; 
  font-size: 22px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.section h3{
  margin: 20px 0 12px 0;
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
}

.section p{
  line-height: 1.65; 
  color: var(--text);
  margin: 12px 0;
}

.section ul{
  margin: 12px 0;
  padding-left: 20px;
}

.section li{
  margin: 8px 0;
  line-height: 1.6;
}

.section address{
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  margin: 16px 0;
  font-style: normal;
}

/* Highlight important disclaimers */
.section#health-disclaimer,
.section#disclaimers,
.section#liability {
  border-left: 4px solid var(--warning);
}

.section#health-disclaimer h2,
.section#disclaimers h2,
.section#liability h2 {
  color: var(--warning);
}

/* Emphasis for legal text */
strong {
  font-weight: 600;
  color: var(--text);
}

/* Links styling */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Back to top functionality would be nice */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

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

.back-to-top:hover {
  background: #5A7BFF;
  transform: translateY(-2px);
}

.site-footer{
  margin-top: 40px; 
  padding: 32px 0; 
  border-top: 1px solid var(--border);
  background: var(--card);
}
.footer-inner{
  display:flex; 
  gap:12px; 
  justify-content:center; 
  color: var(--muted);
  font-size: 14px;
}
.footer-inner a{color: var(--accent); text-decoration:none}
.footer-inner a:hover{text-decoration:underline}

/* Print styles */
@media print {
  .site-header,
  .back-to-top,
  .toc {
    display: none;
  }
  
  .section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    margin: 10px 0;
  }
  
  body {
    background: white;
  }
}

@media (max-width:640px){
  .container {
    padding: 0 16px;
  }
  
  .doc h1 {
    font-size: 28px;
  }
  
  .doc-layout{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .doc-sidebar{
    position: static;
    order: -1;
  }
  
  .tabs{
    flex-direction: row;
    gap: 8px;
  }
  
  .tab{
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .toc{
    padding:16px;
  }
  
  .section{
    padding:20px;
    margin: 16px 0;
  }
  
  .section h2 {
    font-size: 20px;
  }
  
  .section h3 {
    font-size: 16px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width:480px){
  .header-inner {
    padding: 12px 0;
  }
  
  .brand-name {
    font-size: 14px;
  }
  
  .nav {
    gap: 12px;
  }
  
  .nav-link {
    font-size: 14px;
  }
}