/* Acadly OS: shared styles for blog, changelog, story and legal pages (after amie.so) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { background: #FAFAFA; color: #1E232A; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #EEF1F5; }
.top-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; gap: 28px; }
.top-logo img { height: 30px; width: auto; }
.top-nav { display: flex; gap: 24px; flex: 1; }
.top-nav a { text-decoration: none; color: #475569; font-weight: 600; font-size: 0.95rem; }
.top-nav a:hover, .top-nav a.on { color: #1E232A; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; background: #1E232A; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 10px 18px; border-radius: 9999px; }
.btn-dark:hover { background: #0F1216; }
.btn-ghost { text-decoration: none; color: #475569; font-weight: 600; font-size: 0.92rem; padding: 10px 6px; }
.btn-ghost:hover { color: #1E232A; }

.page { min-height: 60vh; padding: 56px 32px 96px; }
.post { max-width: 720px; margin: 0 auto; }
.title-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #E8ECF1; margin-bottom: 28px; }
.title-bar h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.18; }
.title-sub { margin-top: 10px; color: #64748B; font-size: 1.05rem; line-height: 1.6; }
.copy-btn { position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #E2E8F0; background: #FFFFFF; color: #334155; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.copy-btn:hover { border-color: #CBD5E1; }
.copy-ok { position: absolute; top: 50px; right: 0; background: #1E232A; color: #FFFFFF; font-size: 0.78rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; opacity: 0; transform: translateY(-4px); transition: all 0.2s ease; pointer-events: none; white-space: nowrap; }
.copy-btn.copied .copy-ok { opacity: 1; transform: translateY(0); }
.post-meta { color: #94A3B8; font-size: 0.92rem; margin: -8px 0 28px; }

.prose { color: #475569; font-size: 1.06rem; line-height: 1.8; }
.prose p, .prose ul, .prose ol { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose h2 { color: #1E232A; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin: 40px 0 12px; }
.prose h3 { color: #1E232A; font-size: 1.12rem; font-weight: 700; margin: 26px 0 8px; }
.prose strong { color: #1E232A; font-weight: 600; }
.prose a { color: #0B63E5; text-decoration: none; font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose .lead { font-size: 1.2rem; color: #334155; }
.prose .notice, .prose .notice-footer { background: #F1F5F9; border-radius: 12px; padding: 16px 18px; margin: 22px 0; font-size: 0.98rem; }
.prose .meta { color: #94A3B8; font-size: 0.9rem; margin-bottom: 24px; }
.prose .statutory-grid, .prose .security-pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 24px; }
.prose .statutory-card, .prose .pillar-card, .prose .statutory-item { background: #FFFFFF; border: 1px solid #E8ECF1; border-radius: 14px; padding: 16px 18px; font-size: 0.97rem; }

.post-cta { margin: 44px 0 8px; background: #FFFFFF; border: 1px solid #E8ECF1; border-radius: 20px; padding: 26px; }
.post-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.post-cta p { color: #64748B; line-height: 1.6; margin-bottom: 16px; }
.back { margin-top: 28px; }
.back a { color: #64748B; text-decoration: none; font-weight: 600; }
.back a:hover { color: #1E232A; }

.list-head { max-width: 640px; margin: 8px auto 44px; text-align: center; }
.list-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; background: #E8F1FF; color: #0B63E5; display: flex; align-items: center; justify-content: center; }
.list-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; }
.list-head p { margin-top: 12px; color: #64748B; font-size: 1.08rem; line-height: 1.6; }
.post-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E8ECF1; border-radius: 18px; padding: 24px; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.post-card:hover { border-color: #CBD5E1; transform: translateY(-2px); }
.post-card h2 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: #1E232A; margin-bottom: 10px; }
.post-card p { color: #64748B; font-size: 0.96rem; line-height: 1.6; flex: 1; }
.post-card-meta { margin-top: 18px; color: #94A3B8; font-size: 0.85rem; }

.update { padding: 8px 0 32px; border-bottom: 1px solid #E8ECF1; margin-bottom: 32px; }
.update:last-child { border-bottom: none; }
.update-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.update-avatar { width: 48px; height: 48px; border-radius: 50%; background: #E8F1FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.update-avatar img { width: 30px; height: auto; }
.update-head h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
.update-head p { color: #94A3B8; font-size: 0.92rem; margin-top: 2px; }
.update .prose h3:first-child { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.contact-grid a { display: block; background: #FFFFFF; border: 1px solid #E8ECF1; border-radius: 14px; padding: 14px 16px; color: #1E232A; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-grid a:hover { border-color: #CBD5E1; text-decoration: none; }
.contact-grid span { display: block; color: #94A3B8; font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .top-wrap { padding: 0 16px; gap: 12px; height: 60px; }
  .top-wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 0; row-gap: 4px; }
  .top-nav { order: 3; flex: 0 0 100%; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { white-space: nowrap; font-size: 0.92rem; }
  .top-nav a.on { box-shadow: inset 0 -2px 0 #1E232A; padding-bottom: 4px; }
  .top-actions { margin-left: auto; }
  .top-logo img { height: 26px; }
  .page { padding: 36px 16px 72px; }
  .post-grid, .contact-grid, .prose .statutory-grid, .prose .security-pillar-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
}
@media (max-width: 380px) { .btn-ghost { display: none; } .btn-dark { white-space: nowrap; padding: 9px 14px; font-size: 0.86rem; } .top-logo img { height: 22px; } }

    /* Footer: brand and contact details on the left, three labelled link columns, a quiet bottom line */
    .site-foot { border-top: 1px solid #EEF1F5; background: #FFFFFF; padding: 64px 0 32px; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
    .foot-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
    .foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
    .foot-logo { display: block; height: 34px; width: auto; }
    .foot-tagline { margin: 12px 0 18px; color: #64748B; font-size: 0.95rem; line-height: 1.5; max-width: 30ch; }
    .foot-contact { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
    .foot-contact li { display: flex; align-items: flex-start; gap: 10px; color: #334155; font-size: 0.92rem; line-height: 1.45; }
    .foot-contact svg { flex: 0 0 auto; margin-top: 2px; color: #5B3FD9; }
    .foot-contact a { color: #334155; text-decoration: none; word-break: break-word; }
    .foot-contact a:hover { color: #0B63E5; }
    .foot-social { display: flex; gap: 10px; }
    .foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #E2E8F0; color: #475569; transition: color .15s, border-color .15s, background .15s; }
    .foot-social a:hover { color: #FFFFFF; background: #1E232A; border-color: #1E232A; }
    .foot-col { display: flex; flex-direction: column; gap: 12px; }
    .foot-head { margin: 0 0 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #94A3B8; }
    .foot-col a { color: #1E232A; text-decoration: none; font-size: 0.96rem; font-weight: 500; width: fit-content; }
    .foot-col a:hover { color: #0B63E5; }
    .foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #EEF1F5; display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
    .foot-sign { font-family: 'Caveat', cursive; font-size: 1.5rem; color: #64748B; margin: 0; }
    .foot-copy { margin: 0; color: #94A3B8; font-size: 0.88rem; }
    @media (max-width: 900px) {
      .foot-grid { grid-template-columns: 1fr 1fr; }
      .foot-brand { grid-column: 1 / -1; }
    }
    @media (max-width: 640px) {
      .site-foot { padding: 48px 0 28px; }
      .foot-wrap { padding: 0 20px; }
      .foot-grid { gap: 32px 20px; }
      .foot-col a { min-height: 32px; display: inline-flex; align-items: center; }
      .foot-bottom { margin-top: 36px; flex-direction: column; align-items: flex-start; }
    }
