


:root {
  color-scheme: light;
  --background: #f5f3ee;
  --foreground: #22211f;
  --card: #fffefa;
  --card-foreground: #22211f;
  --muted: #efede6;
  --muted-foreground: #77746d;
  --border: #e5dfd1;
  --input: #e5dfd1;
  --primary: #a87320;
  --primary-foreground: #fffefa;
  --ring: #c89b47;
  --radius: 0.75rem;
  --gold: #c99a3a;
  --gold-dark: #91651d;
  --ink: #1c1b19;
  --navy: #101820;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: #ead6a8; color: #211a0d; }

.legal-app { min-height: 100vh; padding: 0 5.2%; background: radial-gradient(ellipse at 50% 0%, #fbf8ef 0, #f5f3ee 38rem); }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(173, 141, 75, .2); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid #d6ae58; box-shadow: 0 3px 12px #99762d20; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; letter-spacing: .12em; font-weight: 600; }
.brand-copy strong span { color: var(--gold-dark); }
.brand-copy small { color: #888277; font-size: 8px; letter-spacing: .18em; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.secure-label { display: inline-flex; align-items: center; gap: 7px; color: #716b5f; font-size: 12px; }
.secure-label svg { color: #a57a2c; }
.profile-button { width: 34px; height: 34px; border-radius: 50%; background: #e8ddc6; border: 1px solid #d7c69f; color: #70541f; font-family: Georgia, serif; font-weight: 700; }
.hero { padding: 54px 0 31px; text-align: center; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 11px; color: #a27b35; font-size: 9px; letter-spacing: .22em; font-weight: 700; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: #d7bd82; }
.hero h1 { margin: 18px 0 12px; color: #24221e; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 51px); font-weight: 400; line-height: 1.13; letter-spacing: -.035em; }
.hero h1 em { color: #a67a2a; font-weight: 400; }
.hero > p { margin: 0; color: #77736b; font-size: 14px; line-height: 1.7; }
.hero-stats { margin: 21px auto 0; display: flex; align-items: center; justify-content: center; gap: 17px; color: #7b766b; font-size: 11px; }
.hero-stats b { color: #3b3933; font-weight: 600; }
.hero-stats i { width: 3px; height: 3px; border-radius: 50%; background: #c5a25e; }
.search-panel { max-width: 1000px; margin: 0 auto; padding: 21px 23px 17px; border: 1px solid #d8c18d; border-radius: 12px; background: rgba(255, 254, 250, .92); box-shadow: 0 9px 32px rgba(75, 59, 26, .055), 0 1px 2px rgba(51, 44, 27, .04); }
.panel-topline { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.assistant-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #eadcb8; border-radius: 10px; color: #9c7025; background: #faf5e8; }
.panel-topline > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.panel-topline strong { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; font-weight: 600; }
.panel-topline > div:nth-child(2) span { color: #88847b; font-size: 11px; }
.online-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #878277; font-size: 8px; letter-spacing: .12em; }
.online-status i, .demo-tag > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9ca17b; }
.composer { border: 1px solid #e7e0d1; border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: #caa450; box-shadow: 0 0 0 3px #caa4501c; }
.composer textarea { display: block; width: 100%; min-height: 136px; padding: 15px 16px 10px; resize: vertical; border: 0; outline: 0; background: transparent; color: #34312a; font-size: 13px; line-height: 1.75; }
.composer textarea::placeholder { color: #aaa59b; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 11px; color: #a09b91; font-size: 9px; }
kbd { padding: 2px 5px; border: 1px solid #e5e1d8; border-radius: 4px; background: #fbfaf7; color: #77736a; font-family: inherit; font-size: 9px; }
.hint-divider { margin: 0 5px; color: #c4bfae; }
.court-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.gold-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 17px; border: 1px solid #aa7c28; border-radius: 6px; background: linear-gradient(135deg, #c9a24f, #ad7d27); color: white; font-size: 12px; font-weight: 600; box-shadow: 0 2px 4px #92702c22; transition: filter .18s, transform .18s; }
.gold-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.court-divider { width: 1px; height: 24px; margin: 0 4px; background: #e4dece; }
.court-button { min-height: 34px; padding: 0 13px; border: 1px solid #dfd7c5; border-radius: 5px; background: #fffefa; color: #716c61; font-size: 11px; transition: all .18s; }
.court-button:hover, .court-button.active { border-color: #bd913e; background: #fbf6e9; color: #815d1f; }
.court-button.active { box-shadow: inset 0 0 0 1px #bd913e; }
.court-hint { margin-left: auto; color: #aaa59a; font-size: 10px; }
.notice { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: #795e2a; font-size: 11px; line-height: 1.5; }
.notice svg { flex: 0 0 auto; margin-top: 1px; }
.results-section { max-width: 1240px; margin: 46px auto 0; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-kicker { margin-bottom: 8px; color: #a27b35; font-size: 8px; font-weight: 700; letter-spacing: .19em; }
.results-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.result-count { display: inline-grid; min-width: 25px; height: 22px; padding: 0 5px; place-items: center; border: 1px solid #e5d8b9; border-radius: 4px; color: #97702c; font-family: Arial, sans-serif; font-size: 10px; }
.results-tools { display: flex; align-items: center; gap: 12px; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; color: #817b70; font-size: 8px; letter-spacing: .11em; }
.demo-tag > span { width: 5px; height: 5px; background: #d4aa52; }
.sort-button { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 9px; border: 1px solid #e3ddcf; border-radius: 5px; background: #fbfaf6; color: #777267; font-size: 10px; }
.table-shell { overflow: hidden; border: 1px solid #d9c38f; border-radius: 9px; background: #fffefa; box-shadow: 0 3px 14px #55451d0b; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 980px; border-collapse: collapse; text-align: left; }
thead { background: linear-gradient(90deg, #f4efe2, #f8f5ed); }
th { height: 40px; padding: 0 13px; border-bottom: 1px solid #dbc99e; color: #82765d; font-size: 8px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
th span { color: #aaa08d; font-size: 8px; font-weight: 400; letter-spacing: 0; }
td { position: relative; padding: 13px; border-bottom: 1px solid #eee9dc; color: #5d5a53; font-size: 10px; line-height: 1.65; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:not(:has(.empty-cell)) { cursor: pointer; transition: background .15s; }
tbody tr:not(:has(.empty-cell)):hover { background: #fcf8ed; }
tbody tr:focus-visible { outline: 2px solid #b88a36; outline-offset: -2px; }
.court-tag { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border: 1px solid #e6d9b9; border-radius: 4px; background: #f9f5eb; color: #866525; font-size: 8px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.court-danistay { border-color: #d8e0e0; background: #f1f5f4; color: #58706a; }
.court-aym { border-color: #d9d8e5; background: #f4f3f9; color: #65617d; }
.court-aihm { border-color: #d8dfeb; background: #f1f5fa; color: #526b88; }
.court-resmigazete { border-color: #e3d3ae; background: #f8f1e2; color: #8a6a1f; }
.chamber-cell { min-width: 145px; color: #37352f; font-weight: 600; }
.number-cell { color: #785d2c; font-family: Georgia, 'Times New Roman', serif; font-size: 11px; font-weight: 600; white-space: nowrap; }
.muted-number { color: #78736a; font-weight: 400; }
.subject-cell { min-width: 145px; color: #716950; }
.summary-cell { min-width: 290px; max-width: 370px; padding-right: 32px; color: #77736b; }
.row-open { position: absolute; top: 13px; right: 11px; color: #b08b48; opacity: 0; transition: opacity .15s; }
tr:hover .row-open { opacity: 1; }
.empty-cell { height: 145px; text-align: center; color: #89847a; }
.empty-cell svg, .empty-cell strong, .empty-cell span { display: block; margin: 0 auto 7px; }
.empty-cell svg { color: #b19254; }
.empty-cell strong { color: #4c4942; font-size: 12px; }
.empty-cell span { font-size: 10px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-top: 1px solid #eee8d9; color: #959084; font-size: 9px; }
.table-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.table-foot svg { color: #b28a3e; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1240px; margin: 29px auto 0; padding: 16px 0 21px; border-top: 1px solid #e6e0d3; color: #979186; font-size: 9px; }
.page-footer > span:first-child { letter-spacing: .09em; }
.page-footer a { display: inline-flex; align-items: center; gap: 4px; color: #84734d; text-decoration: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(17, 20, 22, .56); backdrop-filter: blur(3px); }
.decision-modal { width: min(700px, 100%); max-height: min(850px, calc(100vh - 48px)); overflow-y: auto; padding: 28px 32px; border: 1px solid #d7bf89; border-radius: 12px; background: #fffefa; box-shadow: 0 22px 70px #0004; }
.modal-top { display: flex; align-items: center; justify-content: space-between; }
.close-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #e8e1d3; border-radius: 6px; background: transparent; color: #6d685f; }
.close-button:hover { background: #f7f2e7; }
.modal-kicker { margin-top: 22px; color: #8a7b5a; font-size: 10px; letter-spacing: .04em; }
.modal-kicker span { padding: 0 5px; color: #c5a65f; }
.decision-modal h2 { margin: 10px 0 20px; color: #28251f; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 500; line-height: 1.3; }
.decision-meta { display: flex; flex-wrap: wrap; gap: 30px; padding: 14px 0; border-top: 1px solid #eee8dc; border-bottom: 1px solid #eee8dc; }
.decision-meta > div { display: flex; flex-direction: column; gap: 5px; }
.decision-meta span { color: #9a907a; font-size: 8px; letter-spacing: .12em; }
.decision-meta strong { color: #48443b; font-family: Georgia, 'Times New Roman', serif; font-size: 12px; font-weight: 600; }
.gold-rule { width: 44px; height: 2px; margin: 23px 0; background: #c59a45; }
.decision-modal h3 { margin: 18px 0 8px; color: #38342d; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 600; }
.decision-modal > p, .decision-modal blockquote { color: #69655d; font-size: 12px; line-height: 1.9; }
.decision-modal blockquote { margin: 0; padding: 13px 16px; border-left: 2px solid #c49a47; background: #faf7f0; }
.source-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; padding: 12px; border: 1px solid #eee4cb; border-radius: 6px; background: #fcf9f1; color: #79715f; font-size: 10px; line-height: 1.6; }
.source-note svg { flex: 0 0 auto; color: #a67d30; }
.modal-done { margin-top: 19px; }
.modal-done svg { transform: rotate(180deg); }

@media (min-width: 1500px) { .legal-app { padding-right: 7%; padding-left: 7%; } .search-panel { max-width: 1080px; } }
@media (max-width: 700px) {
  .legal-app { padding: 0 5%; }
  .topbar { height: 72px; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 7px; }
  .secure-label { display: none; }
  .hero { padding: 42px 0 25px; }
  .hero > p { max-width: 340px; margin: 0 auto; font-size: 12px; }
  .hero-stats { gap: 9px; font-size: 9px; }
  .search-panel { padding: 16px 13px 13px; }
  .panel-topline > div:nth-child(2) span { max-width: 245px; line-height: 1.45; }
  .composer textarea { min-height: 126px; font-size: 12px; }
  .court-actions { gap: 6px; }
  .gold-button { min-height: 36px; padding: 0 12px; font-size: 11px; }
  .court-button { min-height: 33px; padding: 0 10px; font-size: 10px; }
  .court-hint { width: 100%; margin: 1px 0 0; }
  .results-section { margin-top: 33px; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .results-tools { width: 100%; justify-content: space-between; }
  .table-foot { align-items: flex-start; gap: 7px; flex-direction: column; }
  .page-footer { align-items: flex-start; flex-wrap: wrap; font-size: 8px; }
  .page-footer > span:nth-child(2) { order: 3; width: 100%; }
  .decision-modal { padding: 22px 19px; }
  .decision-modal h2 { font-size: 22px; }
  .decision-meta { gap: 17px; }
}
