/* Privacy Policy Specific Styles */
/* Matching the 'Premium' theme from term_styles.css */

:root {
  --bg-color: #f3f4f6;
  --surface-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --heading-color: #0f172a;
  --accent-color: #0ea5e9;
  /* Sky 500 */
  --accent-hover: #0284c7;
  --border-color: #e2e8f0;
  --contact-bg: #f8fafc;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Header */
.page-header {
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 3rem;
  text-align: center;
}

.last-updated {
  display: inline-block;
  background-color: #f0f9ff;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  border: 1px solid #bae6fd;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Sections */
section {
  margin-bottom: 4rem;
  scroll-margin-top: 8rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 5px solid var(--accent-color);
  /* Visual anchor */
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 2rem 0 1rem;
}

p,
li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* Lists */
.bullet-list,
.definition-list {
  list-style: none;
  padding-left: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.bullet-list li::before {
  content: "→";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.definition-list li {
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--border-color);
  padding-left: 1.25rem;
  transition: border-color 0.2s;
}

.definition-list li:hover {
  border-left-color: var(--accent-color);
}

.subsection {
  margin-left: 0;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.note {
  font-size: 0.95rem;
  background-color: #f0f9ff;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  margin-top: 1.5rem;
  color: var(--text-primary);
}

/* Contact Box */
.contact-section {
  margin-top: 5rem;
}

.contact-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-color);
}

.contact-box p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-item .value {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-all;
}

.contact-item a.value {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a.value:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* Utilities */
.mt-4 {
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .contact-details {
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
  }

  .contact-item {
    flex-direction: column;
  }
}

/* Sticky Header specific imports/overrides since we need them here too */
.sticky-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.logo-placeholder svg {
  color: var(--accent-color);
}

.sticky-header nav {
  display: flex;
  gap: 2rem;
}

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

.sticky-header nav a:hover,
.sticky-header nav a.active {
  color: var(--accent-color);
}

/* Sidebar TOC from privacy page setup */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  position: relative;
}

.sidebar-toc {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar-toc {
    display: block;
    position: sticky;
    top: 7rem;
    height: fit-content;
    max-height: calc(100vh - 9rem);
    overflow-y: auto;
  }
}

.sidebar-toc h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.sidebar-toc ul {
  list-style: none;
  border-left: 2px solid var(--border-color);
}

.sidebar-toc li a {
  display: block;
  padding: 0.625rem 0 0.625rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.2s;
}

.sidebar-toc li a:hover,
.sidebar-toc li a.active {
  color: var(--accent-color);
  border-left-color: var(--accent-color);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
}

.main-content {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 1023px) {
  .page-layout {
    display: block;
  }

  .main-content {
    margin: 0 auto;
    padding: 2rem;
  }
}