/* ===== Shadow Dynasty - Compliance Site Styles ===== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-card-hover: #222233;
  --gold: #c9a96e;
  --gold-light: #e0c98a;
  --gold-dim: #8a7345;
  --red: #8b1a1a;
  --red-light: #b22222;
  --text-primary: #e8e4dc;
  --text-secondary: #9a968e;
  --text-muted: #6a665e;
  --border: #2a2a35;
  --border-gold: rgba(201, 169, 110, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --max-width: 900px;
  --font-body: "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", Georgia, "Times New Roman", serif;
  --font-heading: "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", Georgia, "Times New Roman", serif;
  --font-mono: "SF Mono", "Fira Code", "Courier New", monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Subtle Background Pattern --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 26, 26, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 169, 110, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-logo:hover {
  color: var(--gold-light);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--gold);
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
  z-index: 200;
}

.lang-switcher summary {
  list-style: none;
}
.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.lang-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  pointer-events: none;
}

.lang-btn .lang-current {
  pointer-events: none;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 140px;
  overflow: hidden;
  z-index: 300;
}

.lang-switcher[open] .lang-dropdown {
  display: block;
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}

.lang-dropdown button:hover {
  background: var(--bg-card-hover);
  color: var(--gold);
}

.lang-dropdown button.active {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* --- Landing Page Hero --- */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(201, 169, 110, 0.2);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 40px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.9;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg-primary);
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
  font-family: var(--font-body);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 169, 110, 0.35);
}

.cta-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Page Title (Inner Pages) --- */
.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.page-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 40px;
}

/* --- Content Cards --- */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.content-card:hover {
  border-color: var(--border-gold);
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
}

.content-card h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  margin-top: 20px;
  font-weight: 600;
}

.content-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.9;
}

.content-card ul, .content-card ol {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-card li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-card a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
  transition: border-color 0.2s;
}

.content-card a:hover {
  border-color: var(--gold);
}

/* --- FAQ Section --- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-gold);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--gold-dim);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* --- Contact Card --- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.contact-card h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item .icon {
  color: var(--gold-dim);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item .value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
}

.contact-item a:hover {
  border-color: var(--gold);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .page-container {
    padding: 32px 20px;
  }

  .content-card {
    padding: 24px 20px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .header-nav {
    gap: 14px;
  }

  .header-nav a {
    font-size: 0.8rem;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .header-nav .nav-link-desktop {
    display: none;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 0.88rem;
  }
}
