/* ==========================================================================
   RKEMS Privacy Policy & Account Deletion Portal
   Developed for Automate IT Limited
   ========================================================================== */

:root {
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-bn: 'Hind Siliguri', 'Inter', -apple-system, sans-serif;

  /* Color Palette */
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Accent status colors */
  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --emerald-800: #065f46;
  
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-800: #92400e;

  --rose-600: #e11d48;
  --rose-100: #ffe4e6;
  --rose-800: #9f1239;

  /* UI Tokens */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1160px;
}

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

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

body {
  font-family: var(--font-en);
  background-color: var(--slate-50);
  color: var(--navy-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-lang="bn"] {
  font-family: var(--font-bn);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 500;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-700);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  background-color: var(--slate-100);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-600);
  background: var(--rose-100);
  border: 1px solid rgba(225, 29, 72, 0.2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-danger-outline:hover {
  background: var(--rose-600);
  color: var(--white);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-100) 100%);
  border-bottom: 1px solid var(--slate-200);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.badge-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-verified {
  background-color: var(--emerald-100);
  color: var(--emerald-800);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.88rem;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-200);
  padding-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Layout: Main Content & Sidebar */
.main-wrapper {
  max-width: var(--max-width);
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Single Column Layout for standalone pages like delete-account */
.main-wrapper.single-column {
  grid-template-columns: 1fr;
  max-width: 880px;
}

/* Sidebar Navigation */
.toc-sidebar {
  position: sticky;
  top: 105px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 4px;
}

.toc-list::-webkit-scrollbar {
  width: 4px;
}
.toc-list::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 4px;
}

.toc-link {
  display: block;
  font-size: 0.88rem;
  color: var(--slate-600);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  border-left-color: var(--primary);
  text-decoration: none;
}

/* Content Container */
.content-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
}

/* Policy Section Styling */
.policy-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.4px;
}

.policy-section p {
  color: var(--navy-700);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.policy-section h4 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-900);
  margin: 1.35rem 0 0.6rem;
}

.policy-section ul, 
.policy-section ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--navy-700);
}

.policy-section li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

/* Callout Box Styles */
.callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
}

.callout-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-info {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: #1e3a8a;
}

.callout-warning {
  background-color: var(--amber-100);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber-800);
}

.callout-success {
  background-color: var(--emerald-100);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-800);
}

.callout-danger {
  background-color: var(--rose-100);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--rose-800);
}

.callout-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.data-table th {
  background-color: var(--slate-100);
  color: var(--navy-900);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--navy-700);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) td {
  background-color: var(--slate-50);
}

/* Step list for account deletion */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Contact Badges Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-card {
  padding: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details span {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-500);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-details strong, 
.contact-details a {
  font-size: 0.98rem;
  color: var(--navy-900);
  font-weight: 600;
}

/* Account Deletion Interactive Form */
.deletion-form-container {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1rem;
}

.form-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
}

.form-header p {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-top: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}

.form-label .required {
  color: var(--rose-600);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy-900);
  background-color: var(--white);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--navy-800);
  border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
  background-color: var(--slate-200);
  text-decoration: none;
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  color: var(--white);
  text-decoration: none;
}

/* Feedback alert */
.form-feedback {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-feedback.show {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--navy-900);
  color: var(--slate-400);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--navy-800);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--navy-800);
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--slate-400);
  line-height: 1.6;
  font-size: 0.88rem;
  max-width: 420px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--slate-400);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Toggle & Responsive */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-800);
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 960px) {
  .main-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .toc-sidebar {
    position: static;
    top: auto;
  }

  .toc-list {
    max-height: 250px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-card {
    padding: 1.75rem 1.5rem;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }

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

  .hero-meta {
    flex-direction: column;
    gap: 0.6rem;
  }

  .deletion-form-container {
    padding: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Language switching display control */
[data-content="en"],
[data-content="bn"] {
  display: block;
}

body[data-lang="en"] [data-content="bn"] {
  display: none !important;
}

body[data-lang="bn"] [data-content="en"] {
  display: none !important;
}
