/* =========================================================
   MI9 STATIC PAGES
   for: about / dmca / privacy / terms / how
   aligned with main.css variables
   ========================================================= */

/* ---------- shared wrappers ---------- */
.about-us,
.legal-container,
.how-to-guide{
    max-width: 900px;
    margin: 36px auto;
    padding: 32px 24px;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    line-height: 1.7;
}

/* ---------- headings ---------- */
.about-us h1,
.legal-header h1,
.how-to-guide h1{
    margin: 0 0 14px;
    color: var(--text-dark);
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.about-us h2,
.legal-content h2,
.how-to-guide h2{
    margin: 30px 0 12px;
    color: var(--brand-color);
    font-size: 1.35rem;
    line-height: 1.3;
}

.about-us h3,
.legal-content h3,
.how-to-guide h3{
    margin: 22px 0 8px;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.4;
}

.about-us p,
.legal-content p,
.how-to-guide p{
    margin: 0 0 14px;
    color: var(--text-dark);
}

.about-intro p,
.legal-content li,
.how-to-guide li,
.last-updated,
figcaption{
    color: var(--text-light);
}

/* ---------- links ---------- */
.about-us a,
.legal-content a,
.how-to-guide a{
    color: var(--brand-color);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: var(--transition);
}

.about-us a:hover,
.legal-content a:hover,
.how-to-guide a:hover{
    color: var(--brand-dark);
    border-bottom-style: solid;
}

/* ---------- lists ---------- */
.legal-content ul,
.how-to-guide ul,
.about-us ul{
    margin: 10px 0 18px;
    padding-left: 20px;
}

.legal-content li,
.how-to-guide li,
.about-us li{
    margin-bottom: 8px;
}

.step ul{
    padding-left: 20px;
}

/* ---------- dividers ---------- */
.legal-header{
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.divider{
    width: 72px;
    height: 4px;
    margin: 0 auto 24px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-color);
}

/* ---------- about page ---------- */
.about-us{
    max-width: 1100px;
}

.about-us h1,
.team-title,
.team-card{
    text-align: center;
}

.about-us h1{
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.team-title{
    margin: 2.5rem 0 .5rem;
    font-size: 1.7rem;
}

.team-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 24px;
    justify-items: stretch;
    margin-top: 24px;
}

.team-card{
    padding: 20px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.team-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-color: rgba(0,123,255,.25);
}

.team-card img{
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.team-card h5{
    margin: 8px 0 4px;
    font-size: 1rem;
    color: var(--text-dark);
}

.team-card h5 a{
    color: inherit;
    border-bottom: 0;
}

.team-card h5 a:hover{
    color: var(--brand-color);
}

.team-card p{
    margin: 0;
    font-size: .92rem;
    color: var(--text-light);
}

/* ---------- legal pages ---------- */
body.legal-page-body{
    background: var(--bg-color);
}

.legal-container{
    max-width: 860px;
}

.last-updated{
    margin: 0;
    font-size: .9rem;
}

.legal-content section{
    margin-bottom: 28px;
}

.legal-content h2{
    padding-left: 12px;
    border-left: 4px solid var(--brand-color);
}

.legal-content h3{
    font-size: 1rem;
}

.legal-content p{
    text-align: left;
}

.legal-content ul li::marker{
    color: var(--brand-color);
}

.contact-box{
    margin: 20px 0;
    padding: 18px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
}

.contact-box p{
    margin: 6px 0;
}

.contact-box a{
    font-weight: 600;
    border-bottom: 0;
}

.dmca-list{
    padding: 18px 18px 18px 32px !important;
    background: rgba(16,185,129,.06);
    border: 1px solid rgba(16,185,129,.18);
    border-radius: 10px;
}

.dmca-list li{
    margin-bottom: 10px;
}

.dmca-list strong{
    color: var(--text-dark);
}

/* ---------- how page ---------- */
.how-to-guide{
    max-width: 860px;
}

.how-to-guide h1{
    margin-bottom: 18px;
}

.featured-image{
    margin: 0 0 24px;
}

.featured-image img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.featured-image figcaption{
    margin-top: 8px;
    text-align: center;
    font-size: .88rem;
}

.intro-box{
    margin-bottom: 20px;
}

.toc-container{
    margin: 18px 0 20px;
    padding: 16px 18px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.toc-container ul{
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0;
}

.toc-container li{
    margin-bottom: 8px;
}

.toc-container a{
    font-weight: 600;
}

.note{
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid var(--brand-color);
    background: rgba(0,123,255,.06);
    font-size: .95rem;
}

.note p{
    margin: 0;
    line-height: 1.7;
}

.note.warning{
    color: var(--text-dark);
    background: rgba(245,158,11,.10);
    border-left-color: #f59e0b;
}

.note.tip{
    color: var(--text-dark);
    background: rgba(16,185,129,.08);
    border-left-color: var(--primary-color);
}

.step{
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--border-color);
}

.step h3{
    margin-top: 0;
    margin-bottom: 8px;
}

.guide-section{
    margin-bottom: 28px;
}

.how-to-guide table{
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    overflow: hidden;
    border-radius: 10px;
    background: var(--card-bg);
}

.how-to-guide th,
.how-to-guide td{
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.how-to-guide thead th{
    background: var(--bg-color);
    color: var(--text-dark);
    font-weight: 700;
}

.faq-item{
    margin-bottom: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary{
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text-dark);
    outline: 0;
    position: relative;
}

.faq-item summary::-webkit-details-marker{
    display: none;
}

.faq-item summary::after{
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--brand-color);
}

.faq-item[open] summary::after{
    content: '−';
}

.faq-item div{
    padding: 0 16px 16px;
    color: var(--text-light);
}

.how-to-guide code{
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.how-to-guide em{
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---------- mobile ---------- */
@media (max-width: 768px){
    .about-us,
    .legal-container,
    .how-to-guide{
        margin: 20px 10px;
        padding: 24px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .about-us h1,
    .legal-header h1,
    .how-to-guide h1{
        font-size: 1.6rem;
    }

    .about-us h2,
    .legal-content h2,
    .how-to-guide h2{
        font-size: 1.2rem;
    }

    .about-us p,
    .legal-content p,
    .how-to-guide p,
    .legal-content li,
    .how-to-guide li{
        font-size: .95rem;
    }

    .team-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .team-card{
        padding: 16px 12px;
    }

    .team-card img{
        width: 84px;
        height: 84px;
    }

    .toc-container,
    .contact-box,
    .dmca-list,
    .note{
        border-radius: 8px;
    }

    .how-to-guide table{
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ---------- dark mode refinement ---------- */
body.dark-mode .team-card,
body.dark-mode .faq-item,
body.dark-mode .how-to-guide table,
body.dark-mode .featured-image img{
    box-shadow: none;
}

body.dark-mode .note.warning{
    background: rgba(245,158,11,.12);
}

body.dark-mode .note.tip{
    background: rgba(16,185,129,.12);
}

body.dark-mode .dmca-list{
    background: rgba(16,185,129,.08);
}

.mi9-about {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  color: var(--text-dark);
}

/* HERO */
.mi9-about__hero {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.mi9-about__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft-bg);
  color: var(--brand-color);
  font-size: 13px;
  font-weight: 600;
}

.mi9-about__hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.mi9-about__hero p {
  margin: 0 0 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* TIMELINE */
.mi9-about__timeline {
  margin-bottom: 48px;
}

.mi9-about__timeline h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.mi9-timeline {
  display: grid;
  gap: 14px;
}

.mi9-timeline__item {
  padding: 16px 18px;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.mi9-timeline__item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-color);
  font-size: 14px;
}

.mi9-timeline__item p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
}

/* GRID */
.mi9-about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.mi9-about__card {
  padding: 22px;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.mi9-about__card:hover {
  background: var(--hover-bg);
  box-shadow: var(--shadow-md);
}

.mi9-about__card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.mi9-about__card p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* TEAM */
.mi9-about__section {
  text-align: center;
  margin-bottom: 48px;
}

.mi9-about__section h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.mi9-about__section-desc {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--text-light);
  font-size: 14px;
}

.mi9-team {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.mi9-team__card {
  padding: 18px 12px;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.mi9-team__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mi9-team__card img {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
}

.mi9-team__card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.mi9-team__card p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-light);
}

.mi9-team__card small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* SUPPORT */
.mi9-about__support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--border-radius);
  background: var(--soft-bg);
  border: 1px solid var(--border-color);
}

.mi9-about__support h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.mi9-about__support p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
}

.mi9-about__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--download-bg);
  color: var(--download-text);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.mi9-about__button:hover {
  background: var(--download-bg-hover);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .mi9-about__grid {
    grid-template-columns: 1fr;
  }

  .mi9-team {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .mi9-about {
    padding-top: 32px;
  }

  .mi9-about__hero {
    text-align: left;
  }

  .mi9-team {
    grid-template-columns: repeat(2, 1fr);
  }

  .mi9-about__support {
    flex-direction: column;
    align-items: flex-start;
  }

  .mi9-about__button {
    width: 100%;
    margin-top: 12px;
  }
}