:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --muted: #4f4f4f;
  --border: #e3e3e3;
  --accent: #1f2937;
  --hero-photo: none;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Inter", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
textarea,
a {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Sidebar Navigation */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 240px;
  padding: 48px 32px;
  background: #f8f8f8;
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

/* Mobile: Sidebar hidden by default */
@media (max-width: 768px) {
  .sidebar-nav {
    left: -240px;
    transition: left 0.3s ease;
  }

  .sidebar-nav.active {
    left: 0;
  }
}

/* Sidebar Overlay Backdrop */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.sidebar-nav a:hover {
  color: var(--accent);
}

.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-nav a:hover::before {
  opacity: 1;
}

/* Page Shell with Sidebar */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: 240px;
  padding: 32px 48px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.header-logo {
  display: flex;
  justify-content: center;
  flex: 1;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: none;
  background: transparent;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--text);
  font-weight: 600;
}

.lang-divider {
  color: var(--border);
  font-weight: 300;
}

/* Main Content */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  margin: 0 0 72px;
  padding: clamp(48px, 6vw, 96px) clamp(36px, 5vw, 64px);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 28px;
  overflow: hidden;
  background-color: #ffffff;
  background-image: none;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
  border: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline {
  margin: 0 0 24px;
  font-family: "Klavika", system-ui, sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: fadeInUp 1.2s ease-out 0.15s forwards;
  opacity: 0;
}

.hero-subheadline {
  margin: 0;
  font-family: "Inter", "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
  opacity: 0;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 72px;
}

.values-grid article {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.values-grid article:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
  transform: translateY(-4px);
}

.values-grid article h2 {
  margin: 0 0 16px;
  font-family: "Klavika", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.values-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-shell {
    margin-left: 200px;
    padding: 28px 36px;
  }

  .sidebar-nav {
    width: 200px;
    padding: 40px 24px;
  }

  .sidebar-nav a {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 480px;
    padding: clamp(40px, 4vw, 72px) clamp(28px, 4vw, 48px);
  }

  .hero-headline {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
  }

  .hero-subheadline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-shell {
    margin-left: 0;
    padding: 20px 24px;
  }

  .site-header {
    padding-bottom: 24px;
    margin-bottom: 32px;
  }

  .language-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: 400px;
    padding: clamp(36px, 5vw, 56px) 28px;
    margin-bottom: 48px;
  }

  .hero-headline {
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 18px;
  }

  .hero-subheadline {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }

  .values-grid article {
    padding: 32px;
  }

  .values-grid article h2 {
    font-size: 1.2rem;
  }

  .copyright {
    font-size: 0.85rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 56px 0;
  }

  .team-member-info h3 {
    font-size: 1.2rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 16px;
  }

  .site-header {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .header-logo {
    flex: none;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .language-toggle {
    margin-left: 0;
  }

  .hero {
    min-height: 380px;
    padding: 36px 20px;
    margin-bottom: 40px;
    border-radius: 20px;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 16px;
  }

  .hero-subheadline {
    font-size: 0.95rem;
  }

  .values-grid article {
    padding: 24px;
  }

  .values-grid article h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .values-grid article p {
    font-size: 0.95rem;
  }

  .site-footer {
    min-height: 100px;
    padding-top: 28px;
  }

  .copyright {
    font-size: 0.8rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 56px 0;
  }

  .team-member-info h3 {
    font-size: 1.1rem;
  }

  .team-member-title {
    font-size: 0.85rem;
  }

  .team-member-bio {
    font-size: 0.9rem;
  }

  .team-filters h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
}

/* Backward Compatibility for Other Pages */
.page-hero {
  position: relative;
  width: 100%;
  margin: 0 0 72px;
  padding: clamp(48px, 6vw, 96px) clamp(36px, 5vw, 64px);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 28px;
  overflow: hidden;
  background-color: #ffffff;
  background-image: none;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.section-block {
  max-width: 860px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.section-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section-block.split {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  display: grid;
}

.section-block.split article {
  border: none;
  padding: 0;
}

.section-text {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Team Names List */
.team-names-list {
  margin-bottom: 72px;
}

.names-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.team-name-btn {
  padding: 24px;
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-name-btn:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.1);
}

.team-member-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.team-member-role {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Profile Modal */
.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.profile-modal.active {
  opacity: 1;
  visibility: visible;
}

.profile-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s ease;
  z-index: 1;
}

.profile-modal-close:hover {
  color: var(--text);
}

.profile-card {
  display: flex;
  flex-direction: column;
}

.profile-header {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f0f0f0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-body {
  padding: 40px;
}

.profile-name {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.profile-role {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.profile-bio {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.profile-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3.2vw, 4rem);
  max-width: 100%;
  line-height: 1.05;
  color: var(--text);
}

.intro {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--text);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 720px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.06);
}

.form-note {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form .form-group {
  display: grid;
  gap: 8px;
}

.contact-form label {
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8a8a8a;
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .hidden-honeypot {
  display: none;
}

.contact-form button {
  width: fit-content;
  border: 1px solid var(--text);
  background: var(--text);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 72px;
}

.partners-list article {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.partners-list article:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
}

.partners-list article h2 {
  margin: 0 0 16px;
  font-family: "Klavika", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.partner-card {
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.partner-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
  transform: translateY(-3px);
}

.partner-card img {
  width: 100%;
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

/* Team Members Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 72px 0;
}

.team-member {
  display: grid;
  gap: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.team-member.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-member-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #f0f0f0;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
  display: block;
}

.team-member:hover .team-member-image {
  transform: scale(1.05);
}

.team-member-info h3 {
  margin: 0 0 8px;
  font-family: "Klavika", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.team-member-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-member-department {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #ffffff;
  background: var(--accent);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.team-member-bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Team Filters */
.team-filters {
  margin: 48px 0 72px;
  text-align: center;
}

.team-filters h2 {
  margin: 0 0 28px;
  font-family: "Klavika", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Legal Page Styles */
.legal-section {
  max-width: 900px;
  margin: 64px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.legal-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-section-header {
  margin-bottom: 32px;
}

.legal-section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.legal-article {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0f0f0;
}

.legal-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-article h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.legal-article p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 16px 0;
  padding-left: 28px;
  list-style: disc;
  color: var(--muted);
  line-height: 1.75;
}

.legal-list li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.legal-list li strong {
  color: var(--text);
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-footer-info {
  max-width: 900px;
  margin: 64px 0 40px;
  padding: 32px;
  background: #f8f8f8;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
}

.legal-footer-info p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.legal-footer-info p:last-child {
  margin-bottom: 0;
}

.legal-footer-info strong {
  color: var(--text);
}

/* Updated Footer with Legal Links */
.legal-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.footer-legal-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
}

.footer-legal-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

.footer-legal-links a:first-child {
  text-decoration: underline;
}

.footer-legal-links a:last-child {
  text-decoration: underline;
}

/* Responsive Legal Page */
@media (max-width: 768px) {
  .legal-section {
    margin: 48px 0;
    padding: 32px 0;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-article h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .legal-article p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .legal-list {
    padding-left: 24px;
  }

  .legal-footer-info {
    padding: 24px;
    margin: 48px 0 32px;
  }

  .footer-legal-links {
    font-size: 0.85rem;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .legal-section {
    margin: 36px 0;
    padding: 24px 0;
  }

  .legal-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .legal-article {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .legal-article h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .legal-article p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .legal-list {
    padding-left: 20px;
    font-size: 0.9rem;
  }

  .legal-list li {
    margin-bottom: 10px;
  }

  .legal-footer-info {
    padding: 20px;
    margin: 36px 0 24px;
    font-size: 0.85rem;
  }

  .footer-legal-links {
    font-size: 0.8rem;
    gap: 6px;
    flex-wrap: wrap;
  }
}

/* Verify Page Styles */

/* Profile View Section */
.profile-view-section {
  max-width: 600px;
  margin: 64px auto;
  display: none;
}

.profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease-out;
}

.profile-content {
  display: none;
}

.profile-content.active {
  display: flex;
  flex-direction: column;
}

.profile-header {
  padding: 40px 32px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #1f2937 100%);
  color: #ffffff;
  position: relative;
}

.profile-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.profile-badge.staff {
  background: rgba(255, 255, 255, 0.25);
}

.profile-name {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-body {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 100px;
}

.info-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  flex: 1;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.verify-btn {
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.verify-btn.primary {
  background: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
}

.verify-btn.primary:hover {
  background: #111111;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.25);
  transform: translateY(-2px);
}

.verify-btn.primary:active {
  transform: translateY(0);
}

.verify-btn.secondary {
  background: #f0f0f0;
  color: var(--text);
  border: 1px solid var(--border);
}

.verify-btn.secondary:hover {
  background: #e8e8e8;
  border-color: var(--muted);
}

/* QR Code Generator Section */
.qr-generator-section {
  max-width: 800px;
  margin: 64px 0;
  padding: 0;
}

.qr-generator-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.qr-generator-container h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.qr-generator-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.qr-generator-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: #f8f8f8;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.qr-generator-form .form-group {
  margin-bottom: 0;
}

.qr-generator-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text);
  background: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-generator-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.qr-generator-form select:hover {
  border-color: var(--accent);
}

.generate-qr-btn {
  padding: 14px 32px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  margin-top: 8px;
}

.generate-qr-btn:hover {
  background: #111111;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.2);
  transform: translateY(-2px);
}

.generate-qr-btn:active {
  transform: translateY(0);
}

/* QR Code Output */
.qr-output {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: fadeIn 0.3s ease-in-out;
}

.qr-output.active {
  display: grid;
}

.qr-display {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

#qrcodeContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrcodeContainer canvas {
  display: block;
  border-radius: 8px;
}

.qr-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-details h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.qr-url {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
  font-family: "Courier New", monospace;
  max-height: 80px;
  overflow-y: auto;
}

.copy-btn,
.download-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover,
.download-btn:hover {
  background: #111111;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.15);
  transform: translateY(-2px);
}

.copy-btn:active,
.download-btn:active {
  transform: translateY(0);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text);
  background: #ffffff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.form-group input::placeholder {
  color: #bfbfbf;
}

/* Success Message */
.verify-success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.verify-success.active {
  opacity: 1;
  visibility: visible;
}

.success-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 20px;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-content h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.success-content p {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.success-btn {
  padding: 12px 32px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-btn:hover {
  background: #111111;
  transform: translateY(-2px);
}

/* Mobile Responsive: 768px */
@media (max-width: 768px) {
  .profile-view-section {
    margin: 40px 0;
  }

  .profile-header {
    padding: 32px 24px 24px;
  }

  .profile-name {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .profile-body {
    padding: 32px 24px;
    gap: 24px;
  }

  .profile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .verify-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .qr-output {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qr-generator-container h2 {
    font-size: 1.2rem;
  }

  .qr-generator-form {
    padding: 24px;
  }

  .success-content {
    padding: 40px 32px;
  }
}

/* Mobile Responsive: 480px */
@media (max-width: 480px) {
  .profile-view-section {
    margin: 32px 0;
  }

  .profile-card {
    border-radius: 16px;
  }

  .profile-header {
    padding: 24px 20px 20px;
  }

  .profile-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    margin-bottom: 12px;
  }

  .profile-name {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .profile-body {
    padding: 24px 20px;
    gap: 20px;
  }

  .info-row {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    align-items: flex-start;
  }

  .info-label {
    font-size: 0.85rem;
    min-width: auto;
  }

  .info-value {
    font-size: 0.95rem;
    text-align: left;
  }

  .profile-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .verify-btn {
    padding: 13px 16px;
    font-size: 0.85rem;
  }

  .qr-generator-section {
    margin: 32px 0;
  }

  .qr-generator-container {
    gap: 24px;
  }

  .qr-generator-container h2 {
    font-size: 1.1rem;
  }

  .qr-generator-form {
    padding: 20px;
    gap: 16px;
  }

  .qr-output {
    padding: 20px;
    gap: 20px;
  }

  .qr-display {
    padding: 16px;
  }

  #qrcodeContainer canvas {
    width: 100% !important;
    height: auto !important;
  }

  .qr-details h4 {
    font-size: 1rem;
  }

  .qr-url {
    font-size: 0.75rem;
    padding: 12px;
  }

  .copy-btn,
  .download-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .success-content {
    padding: 32px 24px;
    width: 85%;
  }

  .success-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .success-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .success-content p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .success-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }
}
