/* =========================================================
   SIMAPPS Privacy Policy — tokens
   ========================================================= */
:root{
  --bg: #F5F6F8;
  --bg-elevated: #FFFFFF;
  --text: #182230;
  --text-muted: #5B6673;
  --border: #E1E4EA;
  --border-strong: #C7CCD6;

  --blue: #1D6FB8;
  --blue-soft: #EAF3FC;
  --red: #D42A24;
  --red-soft: #FBEAEA;
  --yellow: #C9A70E;
  --yellow-soft: #FBF6DE;

  --shadow: 0 1px 2px rgba(20,26,36,.04), 0 8px 24px rgba(20,26,36,.05);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --sidebar-w: 258px;
  --content-max: 700px;
}

html[data-theme="dark"]{
  --bg: #0D131C;
  --bg-elevated: #141B27;
  --text: #E7EBF1;
  --text-muted: #93A0B2;
  --border: #24303F;
  --border-strong: #33415440;

  --blue: #5AA6EE;
  --blue-soft: #16283B;
  --red: #FF6B62;
  --red-soft: #34191A;
  --yellow: #E8D24A;
  --yellow-soft: #332C11;

  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

a{ color: var(--blue); }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-elevated);
}
.header-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-rule{
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--yellow) 33% 66%, var(--red) 66% 100%);
  opacity: .85;
}
.brand{ display:flex; align-items:center; }
.brand-logo{ height: 34px; width: auto; display:block; }

.toc-toggle{
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem;
  padding: 8px 12px;
  cursor: pointer;
}
.toc-toggle svg{ transition: transform .2s ease; }
.toc-toggle[aria-expanded="true"] svg{ transform: rotate(180deg); }

.header-controls{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: .92rem;
}
.lang-btn{
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 2px;
}
.lang-btn.is-active{ color: var(--blue); }
.lang-sep{ color: var(--border-strong); }

.theme-toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle .icon-moon{ display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display: block; }

/* =========================================================
   Layout
   ========================================================= */
.layout{
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 56px;
  align-items: start;
}

.sidebar{
  position: sticky;
  top: 78px;
  align-self: start;
}
.sidebar-eyebrow{
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.toc-list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.toc-list li{ margin: 0; }
.toc-list a{
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem;
  transition: color .15s ease, border-color .15s ease;
}
.toc-list a:hover{ color: var(--text); }
.toc-list a.is-active{
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 500;
}

/* =========================================================
   Content
   ========================================================= */
.content{ min-width: 0; max-width: var(--content-max); }

.hero{ padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.hero-eyebrow{
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--blue);
  margin: 0 0 10px;
}
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 14px;
}
.hero-lede{
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 18px;
}
.hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-muted);
}
.hero-meta strong{ color: var(--text); font-weight: 600; }
.hero-dot{ color: var(--border-strong); }

.hero-stripe{
  display: flex;
  height: 5px;
  width: 140px;
  margin-top: 24px;
  transform: skewX(-20deg);
  overflow: hidden;
  border-radius: 1px;
}
.hero-stripe span{ flex: 1; }
.stripe-a{ background: var(--blue); }
.stripe-b{ background: var(--yellow); }
.stripe-c{ background: var(--red); }

.policy-section{
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.policy-section:last-of-type{ border-bottom: none; }

.policy-section h2{
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 16px;
}
.policy-section h2 .num{
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-body);
}

.policy-section p{ margin: 0 0 14px; color: var(--text); }
.policy-section p:last-child{ margin-bottom: 0; }
.policy-section ul{ margin: 0 0 14px; padding-left: 1.2em; }
.policy-section li{ margin-bottom: 8px; }
.policy-section li:last-child{ margin-bottom: 0; }
.policy-section strong{ font-weight: 600; }

.note-box{
  border-left: 3px solid var(--border-strong);
  background: var(--bg-elevated);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px 4px;
  box-shadow: var(--shadow);
}
.note-yellow{ border-left-color: var(--yellow); background: var(--yellow-soft); }
.note-blue{ border-left-color: var(--blue); background: var(--blue-soft); }
.note-box p, .note-box ul{ color: var(--text); }

.contact-card{
  margin-top: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 20px;
  box-shadow: var(--shadow);
}
.contact-row{
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.contact-row:last-child{ border-bottom: none; }
.contact-label{
  flex: 0 0 110px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 28px 24px 40px;
}
.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo{ height: 22px; width: auto; opacity: .8; }
.footer-inner p{
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px){
  .layout{
    grid-template-columns: 1fr;
    padding-top: 20px;
    gap: 8px;
  }
  .toc-toggle{ display: flex; }
  .sidebar{
    position: static;
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px 4px;
    margin-bottom: 28px;
  }
  .sidebar.is-open{ display: block; }
  .toc-list{ border-left: none; }
  .toc-list a{ border-left: none; padding-left: 0; }
  .toc-list a.is-active{ padding-left: 10px; border-left: 2px solid var(--blue); }
}

@media (max-width: 560px){
  .header-inner{ padding: 12px 16px; gap: 12px; }
  .brand-logo{ height: 28px; }
  .header-controls{ gap: 12px; }
  .layout{ padding-left: 16px; padding-right: 16px; }
  .site-footer{ padding-left: 16px; padding-right: 16px; }
  .hero h1{ font-size: 1.7rem; }
  .contact-row{ flex-direction: column; gap: 4px; }
  .contact-label{ flex-basis: auto; }
}
