/* Shiryon Security — shared stylesheet for legal/policy pages
   Variables and base rules mirror the inline <style> in index.html so these
   pages stay visually consistent with the main site. */

:root{
  --ink: #0A0B0D;
  --graphite: #16191E;
  --graphite-2: #1D2129;
  --line: #2A2F38;
  --bone: #E8E6E0;
  --steel: #8A94A6;
  --radar: #4FD8E8;
  --signal: #FF4438;
}

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

body{
  background: var(--ink);
  color: var(--bone);
  font-family: 'IBM Plex Sans','Noto Sans JP',sans-serif;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- MINIMAL TOP BAR (legal pages only) ---- */
.legal-topbar{
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.legal-topbar .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.legal-logo{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-weight:600;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: var(--bone);
  text-decoration:none;
}
.legal-logo .accent{ color: var(--radar); }
.legal-back{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 12px;
  color: var(--bone);
  text-decoration:none;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 3px;
  transition: border-color .15s ease, color .15s ease;
}
.legal-back:hover{ border-color: var(--radar); color: var(--radar); }

.legal-topbar-right{
  display:flex;
  align-items:center;
  gap: 16px;
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 12px;
  color: var(--steel);
}

/* ---- LANG TOGGLE (legal pages) ---- */
.lang-toggle{
  display:flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow:hidden;
}
.lang-toggle span{
  padding: 5px 10px;
  cursor:pointer;
  user-select:none;
}
.lang-toggle span.active{
  background: var(--graphite-2);
  color: var(--bone);
}
body.lang-jp{ letter-spacing: 0; }
body.lang-jp .legal h1{ letter-spacing: 0.02em; }

/* ---- LEGAL CONTENT ---- */
.legal{
  padding: 64px 0 110px;
  max-width: 820px;
}
.legal .eyebrow{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--radar);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.legal h1{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-weight:600;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.legal .meta{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.legal h2{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 19px;
  font-weight:600;
  color: var(--bone);
  margin: 44px 0 14px;
}
.legal h3{
  font-size: 15px;
  font-weight:600;
  color: var(--bone);
  margin: 26px 0 10px;
}
.legal p{
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--steel);
  margin: 0 0 16px;
}
.legal ul, .legal ol{
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li{
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--steel);
  margin-bottom: 8px;
}
.legal strong, .legal b{ color: var(--bone); }
.legal a.inline-link{
  color: var(--radar);
  text-decoration:none;
  border-bottom: 1px solid rgba(79,216,232,0.4);
}
.legal a.inline-link:hover{ border-bottom-color: var(--radar); }

.legal table{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}
.legal table th, .legal table td{
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 13.5px;
  text-align: left;
  color: var(--steel);
  vertical-align: top;
}
.legal table th{
  color: var(--bone);
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tbc{
  color: var(--signal);
  font-weight: 600;
}

/* ---- SHARED FOOTER (index.html + legal pages) ---- */
footer.site-footer{
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
}
.footer-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 13px;
  color: var(--steel);
  max-width: 340px;
  line-height: 1.6;
}
.footer-brand-name{
  font-weight:600;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--bone);
  margin-bottom: 10px;
}
.footer-brand .accent{ color: var(--radar); }
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 28px;
}
.footer-links a{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 12.5px;
  color: var(--steel);
  text-decoration:none;
  transition: color .15s ease;
}
.footer-links a:hover{ color: var(--radar); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 11.5px;
  color: var(--steel);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap: 10px;
}
.footer-bottom a{ color: var(--radar); text-decoration:none; }

/* ---- COOKIE CONSENT BANNER (index.html + legal pages) ---- */
.cookie-banner{
  position: fixed;
  left:0; right:0; bottom:0;
  z-index: 200;
  background: var(--graphite);
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display:none;
}
.cookie-banner.show{ display:block; }
.cookie-banner .wrap{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.cookie-text{
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
  max-width: 640px;
}
.cookie-text a{
  color: var(--radar);
  text-decoration:none;
  border-bottom: 1px solid rgba(79,216,232,0.4);
}
.cookie-actions{
  display:flex;
  gap: 10px;
  flex-shrink:0;
}
.cookie-actions button{
  font-family:'IBM Plex Mono','Noto Sans JP',monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border-radius: 3px;
  cursor:pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  transition: border-color .15s ease, color .15s ease;
}
.cookie-actions button.accept{
  background: var(--radar);
  color: var(--ink);
  font-weight:600;
  border-color: var(--radar);
}
.cookie-actions button.decline:hover{ border-color: var(--steel); }

@media (max-width: 700px){
  .legal h1{ font-size: 28px; }
  .footer-bottom{ flex-direction: column; }
}
