/* user-agreements.css : Plain, Clean Legal Document Presentation (Midnight Emerald Green Theme) */
:root {
  --white: #ffffff;
  --dark-forest: #031815;
  --dark-forest-card: #052822;
  --dark-forest-deep: #02120f;
  --color-green: #10b981;
  --color-green-dark: #059669;
  --color-green-mint: #34d399;
  --color-green-light: #6ee7b7;
  --color-heading: #0f172a;
  --color-text: #334155;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --font-default: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: #f8fafc;
  color: var(--color-text);
  font-family: var(--font-default);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header / Navbar (Midnight Emerald Green Theme)
   ============================================================ */
nav.navbar {
  padding: 20px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all .35s ease;
  background: transparent;
}

nav.navbar.sticked {
  position: fixed;
  top: 0;
  background: rgba(3, 24, 21, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.08) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25) !important;
}

nav.navbar ul.nav > li > a,
nav.navbar.sticked ul.nav > li > a {
  color: #ffffff !important;
  opacity: 0.92;
}

nav.navbar ul.nav > li.active > a,
nav.navbar ul.nav > li > a:hover,
nav.navbar.sticked ul.nav > li.active > a,
nav.navbar.sticked ul.nav > li > a:hover {
  color: #34d399 !important;
  opacity: 1;
}

nav.navbar ul.nav > li.dropdown > a::after,
nav.navbar.sticked ul.nav > li.dropdown > a::after {
  border-right-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

nav.navbar ul.nav > li.active.dropdown > a::after,
nav.navbar.sticked ul.nav > li.active.dropdown > a::after,
nav.navbar ul.nav > li.dropdown:hover > a::after,
nav.navbar.sticked ul.nav > li.dropdown:hover > a::after {
  border-right-color: #34d399 !important;
  border-bottom-color: #34d399 !important;
}

.dropdown-menu {
  background: #04221d !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dropdown-menu li a {
  color: #cbd5e1 !important;
}

.dropdown-menu li a:hover {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  padding-left: 26px;
}

.dropdown-menu li.active a,
.dropdown-menu li a.active {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.14) !important;
  font-weight: 600;
}

nav.navbar .attr-nav a.btn,
nav.navbar.sticked .attr-nav a.btn {
  border-color: rgba(52, 211, 153, 0.45) !important;
  color: #ffffff !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

nav.navbar .attr-nav a.btn:hover,
nav.navbar.sticked .attr-nav a.btn:hover {
  background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
  color: #ffffff !important;
  border-color: rgba(52, 211, 153, 0.8) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4) !important;
}

.navbar-toggle span {
  background-color: #34d399 !important;
}

@media (max-width: 991px) {
  nav.navbar.open ul.nav {
    background: #031815 !important;
    border-top: 1px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
  }
  nav.navbar.open ul.nav > li > a {
    color: #ffffff !important;
  }
  nav.navbar.open ul.nav > li.dropdown .dropdown-menu {
    background: rgba(5, 40, 34, 0.85) !important;
    border: 1px solid rgba(52, 211, 153, 0.2) !important;
  }
}

/* ============================================================
   Page Hero Header (Deep Emerald & Midnight Forest Theme)
   ============================================================ */
.page-hero-agreements {
  position: relative;
  background: var(--dark-forest);
  padding: 140px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.page-hero-agreements::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(5, 150, 105, 0.24) 0%, transparent 50%),
              linear-gradient(180deg, rgba(3, 24, 21, 0.95) 0%, rgba(2, 18, 15, 0.98) 100%);
  z-index: 1;
}

.page-hero-agreements .container {
  position: relative;
  z-index: 2;
}

.hero-agreements-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-agreements {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-green-mint);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}

.hero-agreements-content h1 {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.hero-agreements-content p.lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 700px;
}

.hero-agreements-content p.lead a {
  color: var(--color-green-mint);
  text-decoration: underline;
  font-weight: 500;
}

.hero-agreements-content p.lead a:hover {
  color: var(--color-green-light);
}

/* Main Content Area */
.agreements-main-section {
  padding: 48px 0 90px;
  background: #f8fafc;
}

/* Document Navigation Bar (Tabs & Actions) */
.agreements-tabs-wrapper {
  max-width: 920px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.agreements-tabs-nav {
  display: inline-flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 8px;
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.agreements-tabs-nav::-webkit-scrollbar {
  display: none;
}

.agreements-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-default);
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.agreements-tab-btn:hover {
  color: var(--color-green-dark);
  background: rgba(255, 255, 255, 0.7);
}

.agreements-tab-btn.active {
  background: #ffffff;
  color: var(--color-green-dark);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.12);
}

/* Print Toolbar */
.agreements-toolbar {
  display: inline-flex;
  align-items: center;
}

.btn-print-doc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-default);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-print-doc svg {
  color: #64748b;
  transition: color 0.15s ease;
}

.btn-print-doc:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: var(--color-green-dark);
}

.btn-print-doc:hover svg {
  color: var(--color-green-dark);
}

/* Document Paper Layout */
.agreements-panes-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.agreement-tab-pane {
  display: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 56px 64px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.agreement-tab-pane.active {
  display: block;
}

/* Legal Document Header */
.legal-doc-header {
  text-align: center;
  margin-bottom: 28px;
}

.legal-doc-org {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.legal-doc-title {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.legal-doc-audience {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 16px;
}

.legal-doc-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.meta-item strong {
  color: #1e293b;
}

.meta-sep {
  color: #cbd5e1;
}

.legal-doc-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 0;
}

/* Legal Preamble */
.legal-preamble {
  margin: 28px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-preamble p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 14px;
  text-align: justify;
}

.legal-preamble p:last-child {
  margin-bottom: 0;
}

.legal-preamble a {
  color: var(--color-green-dark);
  text-decoration: underline;
  font-weight: 500;
}

.legal-preamble a:hover {
  color: #047857;
}

/* Legal Sections */
.legal-sections-list {
  display: flex;
  flex-direction: column;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.4;
}

.legal-section-content p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 14px;
  text-align: justify;
}

.legal-section-content p:last-child {
  margin-bottom: 0;
}

.subsection-lead {
  font-weight: 700;
  color: #0f172a;
}

/* Legal Lists & Bullet Points */
.agreement-tab-pane ul,
.legal-section-content ul,
.legal-preamble ul,
.legal-schedule-wrapper ul {
  list-style: disc outside !important;
  list-style-type: disc !important;
  padding-left: 30px !important;
  margin: 14px 0 18px !important;
}

.agreement-tab-pane ol,
.legal-section-content ol,
.legal-preamble ol,
.legal-schedule-wrapper ol {
  list-style: decimal outside !important;
  list-style-type: decimal !important;
  padding-left: 30px !important;
  margin: 14px 0 18px !important;
}

.agreement-tab-pane li,
.legal-section-content li,
.legal-preamble li,
.legal-schedule-wrapper li {
  display: list-item !important;
  list-style: disc outside !important;
  list-style-type: disc !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
  padding-left: 4px !important;
}

.agreement-tab-pane ol > li,
.legal-section-content ol > li,
.legal-preamble ol > li,
.legal-schedule-wrapper ol > li {
  list-style: decimal outside !important;
  list-style-type: decimal !important;
}

.legal-section-content a {
  color: var(--color-green-dark);
  text-decoration: underline;
  font-weight: 500;
}

.legal-section-content a:hover {
  color: #047857;
}

/* Schedule 1 (Data Processing Addendum) */
.legal-schedule-wrapper {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid #0f172a;
}

.legal-schedule-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-schedule-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-schedule-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.legal-appendix-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 36px 0 14px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.legal-schedule-wrapper p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 12px;
  text-align: justify;
}

.legal-schedule-wrapper strong {
  color: #0f172a;
}

/* Classic Legal Signature Block */
.legal-signature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 32px 0 36px;
  padding: 24px 0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.legal-sig-party {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 12px;
}

.legal-sig-entity {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: -6px 0 12px;
}

.legal-sig-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 14px;
  font-size: 13.5px;
}

.legal-sig-lbl {
  min-width: 155px;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}

.legal-sig-line {
  flex: 1;
  border-bottom: 1px solid #94a3b8;
  min-height: 16px;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .agreement-tab-pane {
    padding: 40px 32px;
  }
  .hero-agreements-content h1 {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .agreements-tabs-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .agreements-tabs-nav {
    width: 100%;
    display: flex;
  }
  .agreements-tab-btn {
    flex: 1;
    padding: 9px 10px;
    font-size: 13px;
    text-align: center;
  }
  .agreements-toolbar {
    justify-content: flex-end;
  }
  .agreement-tab-pane {
    padding: 28px 18px;
    border-radius: 6px;
  }
  .legal-doc-title {
    font-size: 24px;
  }
  .legal-preamble p,
  .legal-section-content p,
  .legal-schedule-wrapper p {
    text-align: left;
  }
  .legal-signature-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-sig-lbl {
    min-width: 130px;
    font-size: 13px;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .navbar,
  #footer,
  footer,
  .page-hero-agreements,
  .agreements-tabs-wrapper {
    display: none !important;
  }
  .agreements-main-section {
    padding: 0 !important;
    background: transparent !important;
  }
  .agreements-panes-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
  }
  .agreement-tab-pane {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .agreement-tab-pane.active {
    display: block !important;
  }
  .legal-section-title {
    page-break-after: avoid;
  }
  .legal-signature-block {
    page-break-inside: avoid;
  }
  a {
    color: #000000 !important;
    text-decoration: none !important;
  }
}

/* Korean & Japanese font fallbacks */
html[lang="ko"] body { --font-default: 'Outfit', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --font-heading: 'Outfit', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
html[lang="ja"] body { --font-default: 'Outfit', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'Meiryo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --font-heading: 'Outfit', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif; }
