/* =========================================================
   CAMPUSKART — TERMS & PRIVACY
   Modern, app-styled layout
========================================================= */

:root {
  --bg: #10140F;
  --bg-elevated: #161C12;
  --surface: #1B221A;
  --surface-hover: #232B20;
  --border: rgba(246, 245, 240, 0.08);
  --border-strong: rgba(246, 245, 240, 0.14);
  --brand-green: #3E8E32;
  --brand-green-dark: #2C6624;
  --brand-green-soft: rgba(62, 142, 50, 0.16);
  --accent-gold: #E8B84B;
  --accent-gold-dark: #C99A34;
  --text-primary: #F6F5F0;
  --text-secondary: #A6B0A2;
  --text-muted: #6D766A;
  --text-dark: #1B221A;
  --danger: #E15B4D;
  --warning: #F59E0B;
  --success: #34D399;
  --info: #60A5FA;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 58px;
  --bottom-nav-h: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* =========================================================
   RESET / BASE
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 14px);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
}

a:hover {
  color: var(--accent-gold-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 14px 30px;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-button {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  transform: rotate(90deg);
}

.header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-title i {
  color: var(--accent-gold);
  margin-right: 8px;
}

/* =========================================================
   TABS
========================================================= */

.tab-container {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.tab:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.tab.active {
  background: var(--accent-gold);
  color: var(--bg);
}

/* =========================================================
   CONTENT
========================================================= */

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  min-height: 400px;
}

.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section h2 i {
  color: var(--accent-gold);
  margin-right: 8px;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.section h3 i {
  color: var(--accent-gold);
  margin-right: 8px;
}

.section p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.section ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
}

.section li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  padding: 6px 0 6px 24px;
  position: relative;
}

.section li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-gold);
}

.section .highlight {
  background: rgba(232, 184, 75, 0.08);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* =========================================================
   CONTACT INFO
========================================================= */

.contact-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(232, 184, 75, 0.08);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.contact-info:hover {
  background: rgba(232, 184, 75, 0.15);
  text-decoration: none;
}

.contact-info i {
  font-size: 14px;
}

/* =========================================================
   BOTTOM BUTTON
========================================================= */

.bottom-button {
  width: 100%;
  padding: 14px 24px;
  margin-top: 20px;
  background: var(--accent-gold);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bottom-button:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 184, 75, 0.25);
}

.bottom-button:active {
  transform: translateY(0);
}

/* =========================================================
   BOTTOM NAV
========================================================= */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--bottom-nav-h);
  padding-bottom: var(--safe-bottom);
  background: rgba(22, 28, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.3s;
}

.bottom-nav-item.active {
  color: var(--accent-gold);
}

.bottom-nav-icon {
  font-size: 19px;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 500;
}

.bottom-nav-logo-container {
  flex: 0 0 56px;
  cursor: default;
}

.bottom-nav-logo {
  width: 46px;
  height: 46px;
  margin-top: -26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(62, 142, 50, 0.45), 0 0 0 5px var(--bg);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 640px) {
  body {
    max-width: 768px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .bottom-nav {
    max-width: 768px;
  }

  .container {
    padding: 20px 20px 30px;
  }
}

@media (min-width: 1024px) {
  body {
    max-width: 1200px;
  }

  .bottom-nav {
    max-width: 1200px;
  }

  .container {
    padding: 24px 24px 40px;
  }

  .header-title {
    font-size: 24px;
  }

  .content {
    padding: 30px 28px;
  }

  .section h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 12px 12px 20px;
  }

  .header {
    padding: 12px 0 12px;
  }

  .header-title {
    font-size: 17px;
  }

  .close-button {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .tab {
    font-size: 12px;
    padding: 8px 12px;
  }

  .content {
    padding: 18px 16px;
  }

  .section h2 {
    font-size: 19px;
  }

  .section h3 {
    font-size: 15px;
  }

  .section p,
  .section li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px 10px 16px;
  }

  .header-title {
    font-size: 15px;
  }

  .tab-container {
    flex-direction: row;
  }

  .tab {
    font-size: 11px;
    padding: 6px 8px;
  }

  .content {
    padding: 14px 12px;
  }

  .section h2 {
    font-size: 17px;
  }

  .section h3 {
    font-size: 14px;
  }

  .section p,
  .section li {
    font-size: 12px;
  }

  .bottom-button {
    font-size: 14px;
    padding: 12px 20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}